From: "Michael S. Tsirkin" <mst@redhat.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: virtualization@lists.linux-foundation.org,
Anthony Liguori <anthony@codemonkey.ws>,
avi@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH 0/3] qemu-kvm: vhost net support
Date: Thu, 20 Aug 2009 20:00:28 +0300 [thread overview]
Message-ID: <20090820170028.GA8908@redhat.com> (raw)
In-Reply-To: <200908201649.48082.rusty@rustcorp.com.au>
On Thu, Aug 20, 2009 at 04:49:47PM +0930, Rusty Russell wrote:
> On Thu, 13 Aug 2009 03:05:48 am Michael S. Tsirkin wrote:
> > On Mon, Aug 10, 2009 at 03:51:12PM -0500, Anthony Liguori wrote:
> > > Any rough idea on performance? Better or worse than userspace?
> >
> > Well, I definitely see some gain in latency.
> ...
> > Part of it might be that tx mitigation does not come into play with vhost. I
> > need to disable it in qemu and see.
>
> A simple test I've found reasonably indicative when looking at base performance (before stuff like TSO get involved) is to do pings. Throughput with "ping -s 1024 -l 120 -c 1000000 -f -q" and latency with "ping -c 1000000 -f -q".
>
> (You may need to cut -l down if your ring is too small).
>
> Cheers,
> Rusty.
Surprisingly, I seem to get better-than-userspace throughput with this
benchmark as well. Here's a test run locally, host-to-guest,
over a veth link:
vhost:
[root@qus19 ~]# ping -c 1000000 -f -q 11.0.0.4
PING 11.0.0.4 (11.0.0.4) 56(84) bytes of data.
--- 11.0.0.4 ping statistics ---
1000000 packets transmitted, 1000000 received, 0% packet loss, time 10230ms
rtt min/avg/max/mdev = 0.005/0.006/0.035/0.000 ms, ipg/ewma 0.010/0.006 ms
[root@qus19 ~]# ping -s 1024 -l 120 -c 1000000 -f -q 11.0.0.4
PING 11.0.0.4 (11.0.0.4) 1024(1052) bytes of data.
--- 11.0.0.4 ping statistics ---
1000000 packets transmitted, 1000000 received, 0% packet loss, time 11270ms
rtt min/avg/max/mdev = 0.006/0.006/0.022/0.002 ms, pipe 120, ipg/ewma 0.011/0.007 ms
qemu:
[root@qus19 ~]# ping -c 1000000 -f -q 12.0.0.2
PING 12.0.0.2 (12.0.0.2) 56(84) bytes of data.
--- 12.0.0.2 ping statistics ---
1000000 packets transmitted, 1000000 received, 0% packet loss, time 59974ms
rtt min/avg/max/mdev = 0.025/0.044/8.076/0.012 ms, pipe 2, ipg/ewma 0.059/0.045 ms
[root@qus19 ~]# ping -s 1024 -l 120 -c 1000000 -f -q 12.0.0.2
PING 12.0.0.2 (12.0.0.2) 1024(1052) bytes of data.
--- 12.0.0.2 ping statistics ---
1000000 packets transmitted, 833496 received, 16% packet loss, time 38841ms
rtt min/avg/max/mdev = 0.133/4.482/9.728/0.771 ms, pipe 120, ipg/ewma 0.038/4.144 ms
Will try over an external link next week when I get access to
a back-to-back setup (don't want to bother with external
switches at this point).
--
MST
next prev parent reply other threads:[~2009-08-20 17:01 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
2009-08-12 17:35 ` Michael S. Tsirkin
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 [this message]
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 20:27 ` Gregory Haskins
2009-08-12 20:27 ` Gregory Haskins
2009-08-13 5:59 ` Michael S. Tsirkin
2009-08-13 5:59 ` Michael S. Tsirkin
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 11:35 ` Gregory Haskins
-- 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=20090820170028.GA8908@redhat.com \
--to=mst@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--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.