-
Notifications
You must be signed in to change notification settings - Fork 154
As unikraft, we increase the ringbuffer to have a better throughput on our network device #596
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
base: main
Are you sure you want to change the base?
Conversation
…n our network device
| #include "virtio_pci.h" | ||
|
|
||
| /* | ||
| * There is no official max queue size. But we've seen 4096, so let's use the |
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.
The comment should probably also be adjusted (or dropped) to reflect the change.
|
I’ve added |
|
I need to check but I'm currently on several fronts and mostly about on I also would like to ping @ricarkol who did the initial implementation of |
Yes, I have similar results (included below), including the non-significant difference for this PR. Now keep in mind this specific benchmark measures a relatively narrow use case (mostly receiving data), and different tests might bring more significant improvements out. |
|
The value (or macro really) solo5/bindings/virtio/virtio_ring.c Line 101 in ff63477
So I think this change doesn't affect performance in any way. |
|
I tried to follow the unikraft code to figure out where the value |


As spotted here: https://github.com/unikraft/unikraft/blob/staging/drivers/virtio/ring/virtio_ring.c#L54. The throughput up to ~300MB/s instead of 260MB/s (/cc @shym who did some benchmarks on
hvt).