Re: [PATCH net-next 0/2] vsock: avoid queuing on workqueue if possible

2024-06-14 Thread Stefano Garzarella
On Fri, Jun 14, 2024 at 03:55:41PM GMT, Luigi Leonardi wrote: This patch series introduces an optimization for vsock/virtio to reduce latency: When the guest sends a packet to the host, and the workqueue is empty, if there is enough space, the packet is put directly in the virtqueue. Thanks for

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

2024-06-14 Thread Stefano Garzarella
On Fri, Jun 14, 2024 at 03:55:43PM GMT, Luigi Leonardi wrote: From: Marco Pinna This introduces an optimization in virtio_transport_send_pkt: when the work queue (send_pkt_queue) is empty the packet is put directly in the virtqueue reducing latency. In the following benchmark (pingpong mode) t

Re: [PATCH net-next 1/2] vsock/virtio: refactor virtio_transport_send_pkt_work

2024-06-14 Thread Stefano Garzarella
On Fri, Jun 14, 2024 at 03:55:42PM GMT, Luigi Leonardi wrote: From: Marco Pinna This is a preliminary patch to introduce an optimization to the enqueue system. All the code used to enqueue a packet into the virtqueue is removed from virtio_transport_send_pkt_work() and moved to the new virtio_

[PATCH net-next 0/2] vsock: avoid queuing on workqueue if possible

2024-06-14 Thread Luigi Leonardi
This patch series introduces an optimization for vsock/virtio to reduce latency: When the guest sends a packet to the host, and the workqueue is empty, if there is enough space, the packet is put directly in the virtqueue. The first one contains some code refactoring. More details and some perform

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

2024-06-14 Thread Luigi Leonardi
From: Marco Pinna This introduces an optimization in virtio_transport_send_pkt: when the work queue (send_pkt_queue) is empty the packet is put directly in the virtqueue reducing latency. In the following benchmark (pingpong mode) the host sends a payload to the guest and waits for the same payl

[PATCH net-next 1/2] vsock/virtio: refactor virtio_transport_send_pkt_work

2024-06-14 Thread Luigi Leonardi
From: Marco Pinna This is a preliminary patch to introduce an optimization to the enqueue system. All the code used to enqueue a packet into the virtqueue is removed from virtio_transport_send_pkt_work() and moved to the new virtio_transport_send_skb() function. Co-developed-by: Luigi Leonardi

Re: [PATCH net-next v2] virtio_net: add support for Byte Queue Limits

2024-06-14 Thread Jason Xing
Hello Jiri, On Thu, Jun 13, 2024 at 1:08 AM Jiri Pirko wrote: > > From: Jiri Pirko > > Add support for Byte Queue Limits (BQL). > > Tested on qemu emulated virtio_net device with 1, 2 and 4 queues. > Tested with fq_codel and pfifo_fast. Super netperf with 50 threads is > running in background. N