From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dub0-omc4-s21.dub0.hotmail.com (dub0-omc4-s21.dub0.hotmail.com [157.55.2.96]) by dpdk.org (Postfix) with ESMTP id 791DF684A for ; Fri, 4 Apr 2014 19:33:02 +0200 (CEST) Received: from DUB111-W115 ([157.55.2.72]) by dub0-omc4-s21.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 4 Apr 2014 10:34:38 -0700 X-TMN: [uboKcEVcfyZbblUxNwzn3QctmNmkkLQ0XzxqxU8BeP0=] X-Originating-Email: [mauroannarumma@hotmail.it] Message-ID: From: Mauro Annarumma To: "dev@dpdk.org" Date: Fri, 4 Apr 2014 19:34:38 +0200 Importance: Normal In-Reply-To: References: , <59AF69C657FD0841A61C55336867B5B01A9F7CAC@IRSMSX103.ger.corp.intel.com>, MIME-Version: 1.0 X-OriginalArrivalTime: 04 Apr 2014 17:34:38.0661 (UTC) FILETIME=[2762E750:01CF502C] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] FW: Issues on FDIR and multi-processes 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: Fri, 04 Apr 2014 17:33:02 -0000 Hi Bruce=2C thanks for the reply=3B I'm trying to do what you suggest=2C in particular = I set the value of the lcore_id variable with this instruction: RTE_PER_LCORE(_lcore_id) =3D temp_lcore_id=3B where temp_lcore_id is a unique id strictly less then RTE_MAX_LCORE=3B the = instruction is placed just after the "rte_eal_init" call in my main functio= n. I still have the same problem whit the secondary processes. Do you think= there could be other issues with the secondary-processes on the some core?= Did I do something wrong in the _lcore_id setting? Regards. Mauro=20 > From: bruce.richardson@intel.com > To: mauroannarumma@hotmail.it=3B dev@dpdk.org > Subject: RE: [dpdk-dev] Issues on FDIR and multi-processes > Date: Wed=2C 2 Apr 2014 15:33:09 +0000 >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Mauro Annarumma > > Sent: Wednesday=2C April 02=2C 2014 4:02 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] Issues on FDIR and multi-processes > >=20 > > Hi everyone=2C > > we are working with Flow DIRector on a multiprocess application. This a= pplication consists of N secondary processes=2C=20 > > each one receiving packets directly from its own queue on the NIC. It w= orks fine when each secondary process runs on > > a different CPU core=3B instead=2C if we try to run two secondary proce= sses on the same CPU core=2C these processes aren't=20 > > able to read from their respectively queue. >=20 > Running two co-operating Intel DPDK processes on the same lcore is not a = supported configuration of Intel DPDK multiprocess. [Please see section 20.= 3 of the Intel DPDK Programmer's Guide document=2C which lists out some lim= itations of multi-process support]. Basically=2C each process in a multipro= cess configuration is equivalent to a thread in a normal application deploy= ment=2C so just as having two threads on the same core causes problems with= mempools and other objects which use an "lcore_id" value unique in each th= read to work correctly=2C so running two processes on the same lcore can ca= use exactly the same issues.=20 > If you really do want to use this model and have multiple threads on the = same lcore=2C at minimum you need to ensure that each thread/process has a = unique lcore_id value <=3D RTE_MAX_LCORE. >=20 > /Bruce =