Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-21 Thread Michael S. Tsirkin
On Wed, Sep 21, 2022 at 02:15:41PM +0800, Jason Wang wrote: > On Wed, Sep 21, 2022 at 11:57 AM Michael S. Tsirkin wrote: > > > > On Wed, Sep 21, 2022 at 10:59:50AM +0800, Jason Wang wrote: > > > On Tue, Sep 20, 2022 at 8:59 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Tue, Sep 20, 2022

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-21 Thread Jason Wang
On Wed, Sep 21, 2022 at 11:57 AM Michael S. Tsirkin wrote: > > On Wed, Sep 21, 2022 at 10:59:50AM +0800, Jason Wang wrote: > > On Tue, Sep 20, 2022 at 8:59 PM Michael S. Tsirkin wrote: > > > > > > On Tue, Sep 20, 2022 at 10:03:23AM +0800, Jason Wang wrote: > > > > On Tue, Sep 20, 2022 at 9:38 AM

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-20 Thread Michael S. Tsirkin
On Wed, Sep 21, 2022 at 10:59:50AM +0800, Jason Wang wrote: > On Tue, Sep 20, 2022 at 8:59 PM Michael S. Tsirkin wrote: > > > > On Tue, Sep 20, 2022 at 10:03:23AM +0800, Jason Wang wrote: > > > On Tue, Sep 20, 2022 at 9:38 AM Jason Wang wrote: > > > > > > > > On Tue, Sep 20, 2022 at 9:10 AM

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-20 Thread Jason Wang
On Tue, Sep 20, 2022 at 8:59 PM Michael S. Tsirkin wrote: > > On Tue, Sep 20, 2022 at 10:03:23AM +0800, Jason Wang wrote: > > On Tue, Sep 20, 2022 at 9:38 AM Jason Wang wrote: > > > > > > On Tue, Sep 20, 2022 at 9:10 AM liuhaiwei wrote: > > > > > > > > From: liuhaiwei > > > > > > > > the limit

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-20 Thread Michael S. Tsirkin
On Tue, Sep 20, 2022 at 10:03:23AM +0800, Jason Wang wrote: > On Tue, Sep 20, 2022 at 9:38 AM Jason Wang wrote: > > > > On Tue, Sep 20, 2022 at 9:10 AM liuhaiwei wrote: > > > > > > From: liuhaiwei > > > > > > the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as > > > to

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-19 Thread Jason Wang
On Tue, Sep 20, 2022 at 9:38 AM Jason Wang wrote: > > On Tue, Sep 20, 2022 at 9:10 AM liuhaiwei wrote: > > > > From: liuhaiwei > > > > the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as > > to affect our network performance when using the virtio-net and vhost , > > we

Re: [PATCH] virtio-net: set the max of queue size to 4096

2022-09-19 Thread Jason Wang
On Tue, Sep 20, 2022 at 9:10 AM liuhaiwei wrote: > > From: liuhaiwei > > the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as to > affect our network performance when using the virtio-net and vhost , > we cannot set the maximum size beyond 1k. > why not enlarge the maximum

[PATCH] virtio-net: set the max of queue size to 4096

2022-09-19 Thread liuhaiwei
From: liuhaiwei the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as to affect our network performance when using the virtio-net and vhost , we cannot set the maximum size beyond 1k. why not enlarge the maximum size (such as 4096) when using the vhost backend?

Re: [PATCH] virtio-net: set the max of queue size to 4096 according to the virtio specs, The maximum Queue Size value is 32768 : https://docs.oasis-open.org/virtio/virtio/v1.1/cs01/virtio-v1.1-cs01.h

2022-09-19 Thread Michael S. Tsirkin
subject is unreasonably long. limit it to 50 characters. esp links do not belong there. Looks like this is a repost, ignoring most comments on the previous version. This kind of thing is ok as a conversation starter but then pls add RFC in the subject. On Mon, Sep 19, 2022 at 08:28:22AM -0400,

[PATCH] virtio-net: set the max of queue size to 4096 according to the virtio specs, The maximum Queue Size value is 32768 : https://docs.oasis-open.org/virtio/virtio/v1.1/cs01/virtio-v1.1-cs01.html#x

2022-09-19 Thread liuhaiwei
the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as to affect our network performance when using the virtio-net and vhost , we cannot set the maximum size beyond 1k. why not enlarge the maximum size (such as 4096) when using the vhost backend? Signed-off-by: liuhaiwei ---