On Tue, 15 Oct 2024 17:41:39 +0800
"lihuisong (C)" <lihuis...@huawei.com> wrote:

> Hi Stephen,
> 
> Can you take a look at this reply so as to send out the next version ASAP?
> Thanks.😁
> 
> /Huisong
> 在 2024/10/14 20:19, lihuisong (C) 写道:

The biggest issue is that lcore is not the same as cpu as far as kernel is 
concerned.
DPDK support mapping lcore to a cpuset, and that is not necessarily the same 
one-to-one mapping
as values in sysfs. In documentation of eal see.


For example, "--lcores='1,2@(5-7),(3-5)@(0,2),(0,6),7-8'" which means start 9 
EAL thread;
    lcore 0 runs on cpuset 0x41 (cpu 0,6);
    lcore 1 runs on cpuset 0x2 (cpu 1);
    lcore 2 runs on cpuset 0xe0 (cpu 5,6,7);
    lcore 3,4,5 runs on cpuset 0x5 (cpu 0,2);
    lcore 6 runs on cpuset 0x41 (cpu 0,6);
    lcore 7 runs on cpuset 0x80 (cpu 7);
    lcore 8 runs on cpuset 0x100 (cpu 8).

This problem existed in power library and this new API still has it.

Reply via email to