From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH] macvtap: Fix macvtap_get_queue to use rxhash first Date: Sun, 27 Nov 2011 19:14:59 +0200 Message-ID: <20111127171458.GB31987@redhat.com> References: <20111124081714.26635.68141.sendpatchset@krkumar2.in.ibm.com> <20111124095902.GD14491@redhat.com> <4ECE18D5.3060605@redhat.com> <20111124103449.GA16031@redhat.com> <4ECE3F0D.3090908@redhat.com> <20111124161430.GC26770@redhat.com> <4ECF09D5.4010700@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Krishna Kumar2 Cc: arnd@arndb.de, netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, levinsasha928@gmail.com, davem@davemloft.net List-Id: virtualization@lists.linuxfoundation.org On Fri, Nov 25, 2011 at 09:39:11AM +0530, Krishna Kumar2 wrote: > Jason Wang wrote on 11/25/2011 08:51:57 AM: > > > > My description is not clear again :( > > I mean the same vhost thead: > > > > vhost thread #0 transmits packets of flow A on processor M > > ... > > vhost thread #0 move to another process N and start to transmit packets > > of flow A > > Thanks for clarifying. Yes, binding vhosts to CPU's > makes the incoming packet go to the same vhost each > time. Interesting, but still not sure why. What if you bind the VCPUs but not the vhost thread? > BTW, are you doing any binding and/or irqbalance > when you run your tests? I am not running either at > this time, but thought both might be useful. > > - KK Either pinning or irqbalance is a good idea. Doing neither means you get a random CPU handling interrupts. -- MST