From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with SMTP id 0FF1B6B004D for ; Sun, 22 Nov 2009 05:38:28 -0500 (EST) Date: Sun, 22 Nov 2009 12:35:11 +0200 From: "Michael S. Tsirkin" Subject: Re: [PATCHv9 3/3] vhost_net: a kernel-level virtio server Message-ID: <20091122103511.GB13644@redhat.com> References: <20091109172230.GD4724@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: "Xin, Xiaohui" Cc: "netdev@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mingo@elte.hu" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "hpa@zytor.com" , "gregory.haskins@gmail.com" , Rusty Russell , "s.hetze@linux-ag.com" , Daniel Walker , Eric Dumazet , mashirle@us.ibm.com List-ID: On Wed, Nov 18, 2009 at 01:42:43PM +0800, Xin, Xiaohui wrote: > Michael, > >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: email@kvack.org