From: Jason Wang <jasowang@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Cc: Patrik Hermansson <phermansson@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] virtio-net: allow increasing rx queue size
Date: Fri, 12 Aug 2016 09:56:17 +0800 [thread overview]
Message-ID: <41e90683-abeb-d4c8-39c6-4df9f570a75b@redhat.com> (raw)
In-Reply-To: <20160811134831.768a9c2e.cornelia.huck@de.ibm.com>
On 2016年08月11日 19:48, Cornelia Huck wrote:
> On Wed, 10 Aug 2016 17:47:16 +0300
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
>
>> This allows increasing the rx queue size up to 1024: unlike with tx,
>> guests don't put in huge S/G lists into RX so the risk of running into
>> the max 1024 limitation due to some off-by-one seems small.
>>
>> It's helpful for users like OVS-DPDK which don't do any buffering on the
>> host - 1K roughly matches 500 entries in tun + 256 in the current rx
>> queue, which seems to work reasonably well. We could probably make do
>> with ~750 entries but virtio spec limits us to powers of two.
>> It might be a good idea to specify an s/g size limit in a future
>> version.
>>
>> It also might be possible to make the queue size smaller down the road, 64
>> seems like the minimal value which will still work (as guests seem to
>> assume a queue full of 1.5K buffers is enough to process the largest
>> incoming packet, which is ~64K). No one actually asked for this, and
>> with virtio 1 guests can reduce ring size without need for host
>> configuration, so don't bother with this for now.
>>
>> Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
>> Cc: Jason Wang <jasowang@redhat.com>
>> Suggested-by: Patrik Hermansson <phermansson@gmail.com>
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>> ---
>>
>> changes from v1:
>> add macros as suggested by Cornelia
>>
>> include/hw/virtio/virtio-net.h | 1 +
>> hw/net/virtio-net.c | 26 +++++++++++++++++++++++++-
>> 2 files changed, 26 insertions(+), 1 deletion(-)
> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
>
>
>
Queued in net-next (for 2.8)
Thanks
prev parent reply other threads:[~2016-08-12 1:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-10 14:47 [Qemu-devel] [PATCH v2] virtio-net: allow increasing rx queue size Michael S. Tsirkin
2016-08-11 11:48 ` Cornelia Huck
2016-08-12 1:56 ` Jason Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41e90683-abeb-d4c8-39c6-4df9f570a75b@redhat.com \
--to=jasowang@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=mst@redhat.com \
--cc=phermansson@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).