Thread (6 messages) 6 messages, 3 authors, 2024-06-21

Re: [PATCH net-next 2/2] vsock/virtio: avoid enqueue packets when work queue is empty

From: Luigi Leonardi <hidden>
Date: 2024-06-18 17:06:51
Also in: kvm, virtualization

Hi Stefano and Matias,

@Stefano Thanks for your review(s)! I'll send a V2 by the end of the week.

@Matias

Thanks for your feedback!
I think It would be interesting to know what exactly the test does
It's relatively easy: I used fio's pingpong mode. This mode is specifically
for measuring the latency, the way it works is by sending packets,
in my case, from the host to the guest. and waiting for the other side
to send them back. The latency I wrote in the commit is the "completion
latency". The total throughput on my system is around 16 Gb/sec.
if the test is triggering the improvement
Yes! I did some additional testing and I can confirm you that during this
test, the worker queue is never used!
If I understand correctly, this patch focuses on the
case in which the worker queue is empty
Correct!
I think the test can always send packets at a frequency so the worker queue
is always empty. but maybe, this is a corner case and most of the time the
worker queue is not empty in a non-testing environment.
I'm not sure about this, but IMHO this optimization is free, there is no
penalty for using it, in the worst case the system will work as usual.
In any case, I'm more than happy to do some additional testing, do you have
anything in mind?

Luigi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help