Skip to content

platform/kvm: prioritize less-recently-used vCPUs for stealing #11569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 20, 2025

platform/kvm: prioritize less-recently-used vCPUs for stealing

To minimize vCPU stealing between threads, prioritize stealing vCPUs that have
been least recently used. This avoids taking a vCPU from a thread that is
likely to use it again soon, reducing the overall number of steal operations.

cpu: Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
Before:
BenchmarkReusingVCPU-12 419172 15074 ns/op
After:
BenchmarkReusingVCPU-12 665013 8799 ns/op

@copybara-service copybara-service bot added the exported Issue was exported automatically label Mar 20, 2025
@copybara-service copybara-service bot force-pushed the test/cl738607537 branch 2 times, most recently from 28f394f to f001c07 Compare March 20, 2025 18:31
To minimize vCPU stealing between threads, prioritize stealing vCPUs that have
been least recently used. This avoids taking a vCPU from a thread that is
likely to use it again soon, reducing the overall number of steal operations.

cpu: Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
Before:
BenchmarkReusingVCPU-12    	  419172	     15074 ns/op
After:
BenchmarkReusingVCPU-12    	  665013	      8799 ns/op
PiperOrigin-RevId: 738607537
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant