public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Virtio network performance poorer than emulated e1000
@ 2010-07-22 23:53 Balachandar
  2010-07-23  0:18 ` Sridhar Samudrala
  0 siblings, 1 reply; 12+ messages in thread
From: Balachandar @ 2010-07-22 23:53 UTC (permalink / raw)
  To: kvm

I am resending this email as Freddie didn't use 'reply to all' when
replying to this message. I am also updating to answer Freddie's
questions..

I can see that virtio network performance is poorer than emaulated
e1000 nic. I did some simple ping test and with emulated e1000 the
average rtt is around 600 microsec. With virtio the average rtt is 800
microsec. I am using a tap + bridge configuration. I run kvm as
follows

kvm -m 512 -hda vdisk.img \
-net nic,model=virtio \
-net tap,ifname=tap0,script=qemu-ifup,downscript=no

I am running Debian squeeze distribution with guest and host kernel 2.6.34.

Does anyone else see some results like this or is it only me? Could
changing the distribution help as i am running a testing one?

Actually we are having a custom application which just measures
ping-pong latency. The results that i get with virtio is around 750
micro seconds. The result i get with emulated e1000 is around 250
micro sec. Also i tried to use vhost but the virtio latency remained
the same.

Also i tried the tests with guest and host 2.6.26 kernel. I get better
results for virtio than e1000. I get 550 for e1000 and 500 for virtio.

Actually my application needs as minimum latency as needed. I am ready
to trade-off throughput and cpu utilization. I was very excited when i
saw the vhost-net module with people claiming low latencies. I am
worried that i am missing some performance offered by virtio and
vhost.


Thanks,
Bala

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Virtio network performance poorer than emulated e1000
@ 2010-07-22 20:13 Balachandar
  2010-07-22 21:28 ` Freddie Cash
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Balachandar @ 2010-07-22 20:13 UTC (permalink / raw)
  To: kvm

I can see that virtio network performance is poorer than emaulated
e1000 nic. I did some simple ping test and with emulated e1000 the
average rtt is around 600 microsec. With virtio the average rtt is 800
microsec. I am using a tap + bridge configuration. I run kvm as
follows

kvm -m 512 -hda vdisk.img \
-net nic,model=virtio \
-net tap,ifname=tap0,script=qemu-ifup,downscript=no

I am running Debian squeeze distribution with guest and host kernel 2.6.34.

Does anyone else see some results like this or is it only me? Could
changing the distribution help as i am running a testing one?

Thanks,
Bala

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-07-26 14:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 23:53 Virtio network performance poorer than emulated e1000 Balachandar
2010-07-23  0:18 ` Sridhar Samudrala
2010-07-23  1:31   ` Balachandar
2010-07-23  7:11     ` Jes Sorensen
2010-07-24 15:04       ` Balachandar
2010-07-26  8:26         ` Jes Sorensen
2010-07-26 13:44           ` Michael Tokarev
2010-07-26 14:39             ` Balachandar
  -- strict thread matches above, loose matches on Subject: below --
2010-07-22 20:13 Balachandar
2010-07-22 21:28 ` Freddie Cash
2010-07-23 13:37 ` Sebastian Hetze
     [not found] ` <20100723133731.32ED2B0016@mail.linux-ag.de>
2010-07-23 14:47   ` Balachandar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox