Re: [PATCH bpf-next v5] selftests/bpf: Add benchmark for bpf memory allocator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 6/10/2023 12:12 AM, Alexei Starovoitov wrote:
> On Thu, Jun 8, 2023 at 11:32 PM Hou Tao <houtao@xxxxxxxxxxxxxxx> wrote:
>>>> +                    --producers=8 --prod-affinity=0-7 "$@")"
>>> -a -p 8 should just work.
>>> No need to pick specific cpus.
>> No. For VM with only 8 CPUs, the affinity of the first producer will be
>> CPU 1 and the affinity of the last producer will be CPU 8, so the
>> benchmark will fail to run. But I think I can fix it, so the affinity of
>> the last producer will be 0 instead.
> Right. Noticed that too.
> That should probably be a separate patch to fix this cpu assignment
> issue in bench for all benchs.
>
> Andrii,
> when you wrote it did you really mean to start assigning cpus from 1
> or that was just an oversight?
I think the reason is that the CPU affinity of the consumer is CPU 0.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux