* [dpdk-dev] Running multiple threads on a single core
@ 2015-09-21 14:35 Martin Drašar
2015-09-22 8:37 ` Martin Drašar
0 siblings, 1 reply; 2+ messages in thread
From: Martin Drašar @ 2015-09-21 14:35 UTC (permalink / raw)
To: dev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] Running multiple threads on a single core
2015-09-21 14:35 [dpdk-dev] Running multiple threads on a single core Martin Drašar
@ 2015-09-22 8:37 ` Martin Drašar
0 siblings, 0 replies; 2+ messages in thread
From: Martin Drašar @ 2015-09-22 8:37 UTC (permalink / raw)
To: dev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-22 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-21 14:35 [dpdk-dev] Running multiple threads on a single core Martin Drašar
2015-09-22 8:37 ` Martin Drašar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).