Skip to content

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

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

kalyazin
Copy link
Contributor

@kalyazin kalyazin commented Oct 20, 2023

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.

  • The description of changes is clear and encompassing.
    - [ ] 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 in CHANGELOG.md.
  • All added/changed functionality is tested.
    - [ ] New TODOs link to an issue.
  • Commits meet contribution quality standards.

  • This functionality cannot be added in rust-vmm.

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8d1f58b) 82.22% compared to head (de87318) 82.20%.

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     
Flag Coverage Δ
4.14-c7g.metal 77.75% <ø> (ø)
4.14-m5d.metal 79.58% <ø> (ø)
4.14-m6a.metal 78.72% <ø> (ø)
4.14-m6g.metal 77.75% <ø> (ø)
4.14-m6i.metal 79.57% <ø> (+<0.01%) ⬆️
5.10-c7g.metal 80.64% <ø> (ø)
5.10-m5d.metal 82.23% <ø> (-0.02%) ⬇️
5.10-m6a.metal 81.47% <ø> (ø)
5.10-m6g.metal 80.64% <ø> (ø)
5.10-m6i.metal 82.23% <ø> (ø)
6.1-c7g.metal 80.64% <ø> (ø)
6.1-m5d.metal 82.23% <ø> (ø)
6.1-m6a.metal 81.47% <ø> (ø)
6.1-m6g.metal 80.64% <ø> (ø)
6.1-m6i.metal 82.23% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kalyazin kalyazin force-pushed the vu_perf branch 2 times, most recently from 35ab459 to 6f96450 Compare October 20, 2023 10:56
@kalyazin kalyazin force-pushed the vu_perf branch 2 times, most recently from aaff3d6 to bc13498 Compare November 1, 2023 18:27
@kalyazin kalyazin force-pushed the vu_perf branch 2 times, most recently from 9bea3f1 to d558c32 Compare November 8, 2023 11:23
@kalyazin kalyazin marked this pull request as ready for review November 8, 2023 11:44
@kalyazin kalyazin self-assigned this Nov 8, 2023
@kalyazin kalyazin added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Nov 8, 2023
Copy link
Contributor

@bchalios bchalios left a 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]>
@roypat roypat merged commit f3913e1 into firecracker-microvm:main Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants