From: "Michael S. Tsirkin" <mst@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: avi@redhat.com, kvm@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH 0/3] qemu-kvm: vhost net support
Date: Wed, 12 Aug 2009 20:35:48 +0300 [thread overview]
Message-ID: <20090812173548.GA29981@redhat.com> (raw)
In-Reply-To: <4A808840.70704@codemonkey.ws>
On Mon, Aug 10, 2009 at 03:51:12PM -0500, Anthony Liguori wrote:
> Michael S. Tsirkin wrote:
>> This adds support for vhost-net virtio kernel backend.
>>
>> This is RFC, but works without issues for me.
>>
>> Still needs to be split up, tested and benchmarked properly,
>> but posting it here in case people want to test drive
>> the kernel bits I posted.
>>
>
> Any rough idea on performance? Better or worse than userspace?
>
> Regards,
>
> Anthony Liguori
Well, I definitely see some gain in latency.
Here's a simple test over a 1G ethernet link (host to guest):
Native:
[root@qus18 ~]# netperf -H 11.0.0.1 -t udp_rr
UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 11.0.0.1 (11.0.0.1) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
126976 126976 1 1 10.00 10393.23
124928 124928
vhost virtio:
[root@qus18 ~]# netperf -H 11.0.0.3 -t udp_rr
UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 11.0.0.3 (11.0.0.3) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
126976 126976 1 1 10.00 8169.58
124928 124928
Userspace virtio:
[root@qus18 ~]# netperf -H 11.0.0.3 -t udp_rr
UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 11.0.0.3 (11.0.0.3) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
126976 126976 1 1 10.00 2029.49
124928 124928
Part of it might be that tx mitigation does not come into play with vhost. I
need to disable it in qemu and see.
--
MST
next prev parent reply other threads:[~2009-08-12 17:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-10 19:23 [PATCH 0/3] qemu-kvm: vhost net support Michael S. Tsirkin
2009-08-10 20:51 ` Anthony Liguori
2009-08-12 17:35 ` Michael S. Tsirkin [this message]
2009-08-19 8:11 ` Or Gerlitz
2009-08-19 8:11 ` Or Gerlitz
2009-08-20 7:19 ` Rusty Russell
2009-08-20 13:41 ` Michael S. Tsirkin
2009-08-20 13:41 ` Michael S. Tsirkin
2009-08-20 17:00 ` Michael S. Tsirkin
2009-08-20 17:24 ` Avi Kivity
2009-08-20 17:49 ` Michael S. Tsirkin
2009-08-20 17:49 ` Michael S. Tsirkin
2009-08-20 17:24 ` Avi Kivity
2009-08-20 17:00 ` Michael S. Tsirkin
2009-08-20 7:19 ` Rusty Russell
2009-08-12 17:35 ` Michael S. Tsirkin
2009-08-12 20:27 ` Gregory Haskins
2009-08-12 20:27 ` Gregory Haskins
2009-08-13 5:59 ` Michael S. Tsirkin
2009-08-13 11:35 ` Gregory Haskins
2009-08-13 11:35 ` Gregory Haskins
2009-08-13 11:53 ` Michael S. Tsirkin
2009-08-13 11:53 ` Michael S. Tsirkin
2009-08-13 5:59 ` Michael S. Tsirkin
-- strict thread matches above, loose matches on Subject: below --
2009-08-10 19:23 Michael S. Tsirkin
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=20090812173548.GA29981@redhat.com \
--to=mst@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.