-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Increase virtio-net queue size to 512 #4875
Conversation
5d48ede
to
ba3d75e
Compare
baed8d5
to
565258f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4875 +/- ##
==========================================
- Coverage 84.10% 84.09% -0.01%
==========================================
Files 251 251
Lines 28083 28074 -9
==========================================
- Hits 23619 23610 -9
Misses 4464 4464
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0d6c513
to
61fec0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainly nits. but first commit message body needs a bit of rewording.
d6cff6f
to
42aacca
Compare
Add a const generic parameter to specify the length of the IovDeque. This way different devices can use different sizes for the queue. Signed-off-by: Egor Lazarchuk <[email protected]>
Increase of the queue size helps with keeping both vmm thread and guest busy at high network load and improves performance. Signed-off-by: Egor Lazarchuk <[email protected]>
6366bcb
to
de35bb7
Compare
Changes
Make
IovDeque
to have configurable size and increasevirtio-net
queue size to 512. This helps with keeping bothvmm
thread and guest busy at high network load and improves performance.The increased queue size also leads to increased memory usage by 4 pages which is negligible compared to the overall VM memory usage.
Reason
Improved performance.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
PR.
CHANGELOG.md
.TODO
s link to an issue.contribution quality standards.
rust-vmm
.