Cap storage hw queue count to 4#40975
Open
chemwolf6922 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Caps the Linux kernel storage driver hardware queue count (hv_storvsc.storvsc_max_hw_queues) for WSL’s HCS-based VM instances to reduce VM memory overhead on high-core-count machines, by appending the appropriate kernel command-line argument when CPU count exceeds a threshold.
Changes:
- Introduces a
MAX_STORAGE_HW_QUEUESconstant (set to 4). - Appends
hv_storvsc.storvsc_max_hw_queues=4to the VM kernel command line whenSettings->CpuCount > 4.
benhillis
reviewed
Jul 2, 2026
Member
|
Can you please clarify what the labels on the X and Y axis of the above graph represent? |
Contributor
Author
Graph updated. The X axis is the VM CPU count. The Y axis is the ram overhead measured with wsl-benchmarking. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Cap the hv_storvsc.storvsc_max_hw_queues to 4 to reduce memory overhead on CPUs with high core counts.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
Test platform
CPU: 13900, 32 logical cores.
Drive backing the vhd: WDC SN810 1T
RAM overhead comparison
RAM overhead measured with wsl-benchmarking. VM RAM = 2G, vhd size = 100G. Noise (std) ~= 5 - 10

IO performance comparison
IO performance measured with fio-bench. --numjobs = 32. VM CPU count = 32.