From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH 1/3] Kernel interfaces for multiqueue aware socket Date: Fri, 17 Dec 2010 07:50:34 +0100 Message-ID: <1292568634.2655.31.camel@edumazet-laptop> References: <46a08278c2ba21737528eb4b77391a7e8bc88000.1292405004.git.fenghua.yu@intel.com> <1292446118.2603.11.camel@edumazet-laptop> <20101216011425.GA17446@linux-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Changli Gao , Fenghua Yu , "David S. Miller" , "Fastabend, John R" , "Tang, Xinan" , netdev , linux-kernel To: Junchang Wang Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:60391 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081Ab0LQGuk (ORCPT ); Fri, 17 Dec 2010 01:50:40 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Le vendredi 17 d=C3=A9cembre 2010 =C3=A0 14:22 +0800, Junchang Wang a =C3= =A9crit : > On Thu, Dec 16, 2010 at 9:28 AM, Changli Gao wrot= e: > > On Thu, Dec 16, 2010 at 9:14 AM, Fenghua Yu = wrote: > >> > >> SKF_AD_QUEUE doesn't know number of rx queues. Thus user applicati= on can't > >> specify right SKF_AD_QUEUE. > > > > It is wrong. AFAIK, you can get the queue number through > > /sys/class/net/eth*/queues/ or /proc/interrupts > > >=20 > Valuable comment. Thanks. >=20 > > > > If you turn to SKF_AD_QUEUE, I think no patch for kernel is needed. > > > This patch set is about parallelization of socket interfaces to gain > performance boost (say, from 1Mpps to around 5Mpps), rather than > simply bounding socket to cpu/queue. Therefore, it does worth having. >=20 Definitely, but this needs to be designed so that it can be used by eve= n dumb applications :)