From mboxrd@z Thu Jan 1 00:00:00 1970 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 To: "dev@dpdk.org" References: <560015C5.6080101@ics.muni.cz> From: =?UTF-8?Q?Martin_Dra=c5=a1ar?= Message-ID: <56011334.2050603@ics.muni.cz> Date: Tue, 22 Sep 2015 10:37:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <560015C5.6080101@ics.muni.cz> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Muni-Envelope-From: drasar@ics.muni.cz X-Muni-Spam-TestIP: 147.251.17.24 X-Muni-Local-IP: yes X-Muni-Local-Auth: yes X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (minas.ics.muni.cz [147.251.4.35]); Tue, 22 Sep 2015 10:37:13 +0200 (CEST) X-Virus-Scanned: clamav-milter 0.98.7 at minas X-Virus-Status: Clean Subject: Re: [dpdk-dev] Running multiple threads on a single core 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: Tue, 22 Sep 2015 08:37:14 -0000 Dne 21.9.2015 v 16:35 Martin Drašar napsal(a): > Hi, > > I have a hard time understanding the configuration of multiple pthreads > in eal initialization. > > Let's say I have a 4 lcore machine (2 phys. cores with HT) and I want to > run 7 threads on it. > > I thought that these options would help me: > > -c 0xf -l 0-6 --lcores='0,(1,3)@2,(2,4)@3,(5,6)@1' > > But all I am getting is "EAL: invalid parameter for --lcores". > > 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? > > Thanks in advance, > Martin > 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] = "--lcores=0,(1,3)@2,(2,4)@3,(5,6)@1" Martin