Hi, See https://github.com/systemd/systemd/issues/38436, recent versions of nproc should work.
Cheers, Nils On Sun, Dec 28, 2025, 12:45 Sietse van Zanen <[email protected]> wrote: > Hi, > > > > When running a systemd nspawn container configured with: AllowedCPUs=x-y > > Running getconf _NPROCESSORS_ONLN in the container returns the nr. of > processors in the system instead of the nr of allowed cpus. > > Is this by design? If so how can I get the nr of cpu’s the container is > actually allowed to use? > > > > -Sietse > > > > >
