From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Martin_Dra=c5=a1ar?= Subject: Re: Running multiple threads on a single core Date: Tue, 22 Sep 2015 10:37:08 +0200 Message-ID: <56011334.2050603@ics.muni.cz> References: <560015C5.6080101@ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable To: "dev@dpdk.org" Return-path: Received: from minas.ics.muni.cz (minas.ics.muni.cz [147.251.4.46]) by dpdk.org (Postfix) with ESMTP id 0547F8D96 for ; Tue, 22 Sep 2015 10:37:13 +0200 (CEST) Received: from [147.251.17.24] (dhcp17-24.ics.muni.cz [147.251.17.24]) (authenticated user=98998@is.muni.cz bits=0) by minas.ics.muni.cz (8.14.4/8.14.4/Debian-4) with ESMTP id t8M8bCEd042655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 22 Sep 2015 10:37:13 +0200 In-Reply-To: <560015C5.6080101@ics.muni.cz> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Dne 21.9.2015 v 16:35 Martin Dra=B9ar napsal(a): > Hi, >=20 > I have a hard time understanding the configuration of multiple pthreads > in eal initialization. >=20 > Let's say I have a 4 lcore machine (2 phys. cores with HT) and I want t= o > run 7 threads on it. >=20 > I thought that these options would help me: >=20 > -c 0xf -l 0-6 --lcores=3D'0,(1,3)@2,(2,4)@3,(5,6)@1' >=20 > But all I am getting is "EAL: invalid parameter for --lcores". >=20 > So my question is - how can I tell EAL to start 7 threads, pin them to > given CPUs and made them accessible as lcores for issuing > rte_eal_remote_launch? >=20 > Thanks in advance, > Martin >=20 Ok, figured it out... I am feeding the options by manually constructing the argv and the option must not be passed with quotes. So: argv[x] =3D "--lcores=3D0,(1,3)@2,(2,4)@3,(5,6)@1" Martin