All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Xin, Xiaohui" <xiaohui.xin@intel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"virtualization@lists.linux-foundation.org" 
	<virtualization@lists.linux-foundation.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mingo@elte.hu" <mingo@elte.hu>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"gregory.haskins@gmail.com" <gregory.haskins@gmail.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	"s.hetze@linux-ag.com" <s.hetze@linux-ag.com>,
	Daniel Walker <dwalker@fifo99.com>,
	Eric Dumazet <eric.dumazet@gmail.com>,
	mashirle@us.ibm.com
Subject: Re: [PATCHv9 3/3] vhost_net: a kernel-level virtio server
Date: Sun, 22 Nov 2009 12:35:11 +0200	[thread overview]
Message-ID: <20091122103511.GB13644@redhat.com> (raw)
In-Reply-To: <C85CEDA13AB1CF4D9D597824A86D2B901925446AB4@PDSMSX501.ccr.corp.intel.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Xin, Xiaohui" <xiaohui.xin@intel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"virtualization@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mingo@elte.hu" <mingo@elte.hu>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"gregory.haskins@gmail.com" <gregory.haskins@gmail.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	"s.hetze@linux-ag.com" <s.hetze@linux-ag.com>,
	Daniel Walker <dwalker@fifo99.com>,
	Eric Dumazet <eric.dumazet@gmail.com>,
	mashirle@us.ibm.com
Subject: Re: [PATCHv9 3/3] vhost_net: a kernel-level virtio server
Date: Sun, 22 Nov 2009 12:35:11 +0200	[thread overview]
Message-ID: <20091122103511.GB13644@redhat.com> (raw)
In-Reply-To: <C85CEDA13AB1CF4D9D597824A86D2B901925446AB4@PDSMSX501.ccr.corp.intel.com>

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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-11-22 10:39 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1257786516.git.mst@redhat.com>
2009-11-09 17:22 ` [PATCHv9 1/3] tun: export underlying socket Michael S. Tsirkin
2009-11-09 17:22 ` Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-09 17:22 ` [PATCHv9 2/3] mm: export use_mm/unuse_mm to modules Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-09 17:22 ` Michael S. Tsirkin
2009-11-09 17:22 ` [PATCHv9 3/3] vhost_net: a kernel-level virtio server Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-09 17:22   ` Michael S. Tsirkin
2009-11-10  2:48   ` Rusty Russell
2009-11-10  2:48     ` Rusty Russell
2009-11-10  2:48   ` Rusty Russell
2009-11-10  3:19   ` Rusty Russell
2009-11-10  3:19     ` Rusty Russell
2009-11-10 11:36     ` Michael S. Tsirkin
2009-11-10 11:36     ` Michael S. Tsirkin
2009-11-10 11:36       ` Michael S. Tsirkin
2009-11-12  2:18       ` Rusty Russell
2009-11-12  2:18         ` Rusty Russell
2009-11-12  2:18       ` Rusty Russell
2009-11-10  3:19   ` Rusty Russell
2009-11-18  5:42   ` Xin, Xiaohui
2009-11-18  5:42     ` Xin, Xiaohui
2009-11-18  5:42     ` Xin, Xiaohui
2009-11-22 10:35     ` Michael S. Tsirkin [this message]
2009-11-22 10:35       ` Michael S. Tsirkin
2009-12-11 15:52       ` Shirley Ma
2009-12-11 15:52         ` Shirley Ma
2009-12-11 15:52       ` Shirley Ma
2009-11-22 10:35     ` Michael S. Tsirkin
2009-11-18  5:42   ` Xin, Xiaohui
2009-11-18  5:42   ` Xin, Xiaohui
2009-11-09 17:22 ` 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=20091122103511.GB13644@redhat.com \
    --to=mst@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=dwalker@fifo99.com \
    --cc=eric.dumazet@gmail.com \
    --cc=gregory.haskins@gmail.com \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mashirle@us.ibm.com \
    --cc=mingo@elte.hu \
    --cc=netdev@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=s.hetze@linux-ag.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=xiaohui.xin@intel.com \
    /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.