From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo2.mail-out.ovh.net (mo2.mail-out.ovh.net [178.32.228.2]) by dpdk.org (Postfix) with ESMTP id 2119B5926 for ; Wed, 4 Dec 2013 22:05:32 +0100 (CET) Received: from mail422.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 06B2FFF930E for ; Wed, 4 Dec 2013 22:06:35 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 4 Dec 2013 23:06:42 +0200 Received: from lneuilly-152-23-9-75.w193-252.abo.wanadoo.fr (HELO pcdeff) (ff@ozog.com@193.252.40.75) by ns0.ovh.net with SMTP; 4 Dec 2013 23:06:41 +0200 From: =?iso-8859-1?Q?Fran=E7ois-Fr=E9d=E9ric_Ozog?= To: "'Michael Quicquaro'" References: In-Reply-To: Date: Wed, 4 Dec 2013 22:04:59 +0100 Message-ID: <03f701cef134$7e564720$7b02d560$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7xGcFP0fjZAneLS1CzqJvDpM9TwAAGXtrQ Content-Language: fr X-Ovh-Tracer-Id: 11052114961751267545 X-Ovh-Remote: 193.252.40.75 (lneuilly-152-23-9-75.w193-252.abo.wanadoo.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeiledrkeeiucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeiledrkeeiucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: dev@dpdk.org Subject: Re: [dpdk-dev] generic load balancing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 21:05:32 -0000 Hi, As far as I can tell, this is really hardware dependent. Some hash = functions allow uplink and downlink packets of the same "session" to go to the = same queue (I know Chelsio can do this). For the Intel card, you may find what you want in: http://www.intel.com/content/www/us/en/ethernet-controllers/82599-10-gbe-= con troller-datasheet.html Other cards require NDA or other agreements to get details of RSS. If you have a performance problem, may I suggest you use kernel 3.10 = then monitor system activity with "perf" command. For instance you can start = with "perf top -a" this will give you nice information. Then your creativity = will do the rest ;-) You may be surprised what comes on the top hot points... (the most unexpected hot function I found here was Linux syscall gettimeofday!!!) Fran=E7ois-Fr=E9d=E9ric > -----Message d'origine----- > De=A0: dev [mailto:dev-bounces@dpdk.org] De la part de Michael = Quicquaro > Envoy=E9=A0: mercredi 4 d=E9cembre 2013 18:53 > =C0=A0: dev@dpdk.org > Objet=A0: [dpdk-dev] generic load balancing >=20 > Hi all, > I am writing a dpdk application that will receive packets from one > interface and process them. It does not forward packets in the traditional > sense. However, I do need to process them at full line rate and = therefore > need more than one core. The packets can be somewhat generic in = nature and > can be nearly identical (especially at the beginning of the packet). = I've > used the rxonly function of testpmd as a model. >=20 > I've run into problems in processing a full line rate of data since = the > nature of the data causes all the data to be presented to only one = core. I > get a large percentage of dropped packets (shows up as Rx-Errors in = "port > stats") because of this. I've tried modifying the data so that = packets > have different UDP ports and that seems to work when I use --rss-udp >=20 > My questions are: > 1) Is there a way to configure RSS so that it alternates packets to = all > configured cores regardless of the packet data? >=20 > 2) Where is the best place to learn more about RSS and how to = configure > it? I have not found much in the DPDK documentation. >=20 > Thanks for the help, > - Mike