The parallel code works out how many CPUs are on the system by checking
the quota it has been assigned in the Linux cgroup. The existing code
works under cgroups v1 but the file structure changed in cgroups v2.
From [1]:
"cpu.cfs_quota_us" and "cpu.cfs_period_us" are replaced by "cpu.max"
which contains both quota and period.
This commit add support to parallel so it will read from the cgroups v2
location. v1 support is still retained.
Resolves #25284
[1] 0d5936344f
pull/25285/head
parent
fc34554475
commit
7f1140b48b
1 changed files with 21 additions and 3 deletions
Loading…
Reference in new issue