From: Eric Auger <eric.auger@linaro.org>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>,
qemu list <qemu-devel@nongnu.org>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [question] virtio-net-device and multi-queue option
Date: Fri, 19 Sep 2014 04:23:20 +0200 [thread overview]
Message-ID: <541B9398.8050002@linaro.org> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF1902086DD7FC7@SZXEMA503-MBS.china.huawei.com>
On 09/19/2014 03:42 AM, Gonglei (Arei) wrote:
>> Subject: [Qemu-devel] [question] virtio-net-device and multi-queue option
>>
>> Hi,
>>
>>
>> I am currently doing some benchmarks using virtio-net-device using
>> virtio-mmio (non PCI) with qemu_system_arm with KVM. Purpose is to
>> compare with device passthrough performance.
>>
>> I heard about the availability of a multi-queue option that greatly
>> improves the performance but I currently fail in enabling it.
>>
>> Please could someone explain me how to turn that feature on? My current
>> virtio-net options simply are:
>>
>> -netdev tap,id=tap0,ifname="tap0" \
>> -device virtio-net-device,netdev=tap0
>>
>
> There are some steps:
>
> 1. create multi-queue netdev device, such as tap device (you can
> use "ip tuntap" command, or libvirt), something like as below:
> ip tuntap add tap_1 mode tap multi_queue
> 2. pass corresponding parameters in QEMU command line:
> -netdev type=tap,ifname=tap_q,id=net1,vhost=on,vhostforce=on,queues=4,script= \
> -device virtio-net-device,netdev=net1,mq=on,vectors=9
Hi Gonglei,
Thanks for your quick reply.
Definitively I have not gone through step 1! Nethertheless I am a but
dubious about the fact the mq property does not seem to exist for my
virtio-net-device. I get
qemu-system-arm: -device
virtio-net-device,netdev=tap0,mq=on,mac=52:54:00:12:34:56: Property
'.mq' not found
Best Regards
Eric
>
>> Also are there any "easy" tunings I can play with to try to reach the
>> best performance.
>>
>
> You can consider that using irq binding, core binding, vhost-net? etc..
>
> Best regards,
> -Gonglei
>
>> Thank you in advance
>>
>> Best Regards
>>
>> Eric
>
next prev parent reply other threads:[~2014-09-19 2:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 0:10 [Qemu-devel] [question] virtio-net-device and multi-queue option Eric Auger
2014-09-19 1:42 ` Gonglei (Arei)
2014-09-19 2:23 ` Eric Auger [this message]
2014-09-19 2:30 ` Gonglei (Arei)
2014-09-19 17:09 ` Eric Auger
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=541B9398.8050002@linaro.org \
--to=eric.auger@linaro.org \
--cc=arei.gonglei@huawei.com \
--cc=mst@redhat.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).