-
Notifications
You must be signed in to change notification settings - Fork 2k
Performance test for vhost-user-blk #4190
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4190 +/- ##
==========================================
- Coverage 82.22% 82.20% -0.03%
==========================================
Files 236 236
Lines 29203 29203
==========================================
- Hits 24013 24007 -6
- Misses 5190 5196 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
35ab459
to
6f96450
Compare
tests/integration_tests/performance/test_block_vhost_user_ab.py
Outdated
Show resolved
Hide resolved
aaff3d6
to
bc13498
Compare
9bea3f1
to
d558c32
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.
LGTM, apart from a nit
So far, FilesystemFile was only creating drives in the default /srv location, which is mounted as tmpfs. Since Qemu vhost-user-blk backend always uses O_DIRECT when opening drive files, it cannot work with files on tmpfs. If the path argument is not provided to the FilesystemFile constructor, the drive file is created with a random name in /tmp. Signed-off-by: Nikita Kalyazin <[email protected]>
Extracted spawn_vhost_user_backend() into util_vhost_user_backend.py as it will be used by multiple test files. Signed-off-by: Nikita Kalyazin <[email protected]>
The test spins the qemu vhost-user-blk backend and runs the same tests as for the virtio block device. It also emits metrics as test_block_vhost_user_performance. Signed-off-by: Nikita Kalyazin <[email protected]>
This is to run vhost-user-blk performance tests along with other performance tests. Signed-off-by: Nikita Kalyazin <[email protected]>
Changes
This adds a performance test for the vhost-user-blk device.
Reason
vhost-user-blk device is added in #4170 .
We need to include performance tests for the new device.
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
- [ ] If a specific issue led to this PR, this PR closes the issue.- [ ] Any required documentation changes (code and docs) are included in this PR.- [ ] API changes follow the Runbook for Firecracker API changes.- [ ] User-facing changes are mentioned inCHANGELOG.md
.- [ ] NewTODO
s link to an issue.rust-vmm
.