From: Don Zickus on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2370#note_1319...
@mh21 - the man pages say nproc returns the number of cpus for the _process_
which works well for containers. Contrast this with /proc/cpuinfo which gives
all available cpus.
This article showed a good example
https://www.flamingspork.com/blog/2020/11/25/why-you-should-use-nproc-and...
grep-proc-cpuinfo/
Are you seeing something different? this works correctly for me instead of 8
cpus, i see 3.
sudo podman run --cpuset-cpus=0-2 --rm -ti quay.io/cki/builder-eln:production
nproc