Thread (8 messages) flat view 8 messages, 4 authors, 2009-12-11

Re: [PATCHv9 3/3] vhost_net: a kernel-level virtio server

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2009-11-22 10:39:48
Also in: kvm, linux-mm, lkml

On Wed, Nov 18, 2009 at 01:42:43PM +0800, Xin, Xiaohui wrote:
Michael,
quoted
From the http://www.linux-kvm.org/page/VhostNet, we can see netperf with TCP_STREAM can get more than 4GMb/s for the receive side, and more than 5GMb/s for the send side.
Is it the result from the raw socket or through tap?
I want to duplicate such performance with vhost on my side. I can only get more than 1GMb/s with following conditions:
1) disabled the GRO feature in the host 10G NIC driver
2) vi->big_packet in guest is false
3) MTU is 1500.
4) raw socket, not the tap
5) using your vhost git tree

Is that the reasonable result with such conditions or maybe I have made some silly mistakes somewhere I don't know yet?
May you kindly describe your test environment/conditions in detail to have much better performance in your website (I really need the performance)?

Thanks
Xiaohui
These results where sent by Shirley Ma (Cc'd).
I think they were with tap, host-to-guest/guest-to-host
And I have tested the tun support with vhost now, and may you share your /home/mst/ifup script here?
These are usually pretty simple, mine looks like this:

#!/bin/sh -x
/sbin/ifconfig tap0 0.0.0.0 up
brctl addif br0 tap0

-- 
MST

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help