Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect Linux
cgroup
CPU number for --threads
value
We want to respect `cgroup` constraints so that when we run in a container, the default max threads value is appropriately set to the maximum number of cores in this container rather than the host OS's. We check both `/sys/fs/cgroup/cpuset.cpus.effective` (`cgroup v2`) and `/sys/fs/cgroup/cpuset.cpus` (`cgroup v1`) to find the number of cores.
- Loading branch information