From mboxrd@z Thu Jan 1 00:00:00 1970 From: jamal Subject: Re: [PATCH net-next-2.6] net: speedup udp receive path Date: Thu, 29 Apr 2010 09:37:38 -0400 Message-ID: <1272548258.4258.185.camel@bigi> References: <1272010378-2955-1-git-send-email-xiaosuo@gmail.com> <20100427.150817.84390202.davem@davemloft.net> <1272406693.2343.26.camel@edumazet-laptop> <1272454432.14068.4.camel@bigi> <1272458001.2267.0.camel@edumazet-laptop> <1272458174.14068.16.camel@bigi> <1272463605.2267.70.camel@edumazet-laptop> <1272498293.4258.121.camel@bigi> <1272514176.2201.85.camel@edumazet-laptop> <1272540952.4258.161.camel@bigi> <1272545108.2222.65.camel@edumazet-laptop> <1272547061.4258.174.camel@bigi> <1272547307.2222.83.camel@edumazet-laptop> Reply-To: hadi@cyberus.ca Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Changli Gao , David Miller , therbert@google.com, shemminger@vyatta.com, netdev@vger.kernel.org, Eilon Greenstein , Brian Bloniarz To: Eric Dumazet Return-path: Received: from mail-iw0-f202.google.com ([209.85.223.202]:64602 "EHLO mail-iw0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932828Ab0D3ROK (ORCPT ); Fri, 30 Apr 2010 13:14:10 -0400 Received: by iwn40 with SMTP id 40so486585iwn.1 for ; Fri, 30 Apr 2010 10:14:09 -0700 (PDT) In-Reply-To: <1272547307.2222.83.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2010-04-29 at 15:21 +0200, Eric Dumazet wrote: > > You could try following program : > Will do later today (test machine is not on the network and is about 20 minutes from here; so worst case i will get you results by end of day) I guess this program is good enough since it tells me the system wide ipi count - what my patch did was also to break it down by which cpu got how many IPIs (served to check if there was uneven distribution) > > Is your application mono threaded and receiving data to 8 sockets ? > I fork one instance per detected cpu and bind to different ports each time. Example bind to port 8200 on cpu0, 8201 on cpu1, etc. cheers, jamal