pysys.utils.osutils¶
Contains operating system helper utilities such as the getUsableCPUCount
function.
getUsableCPUCount¶
-
pysys.utils.osutils.
getUsableCPUCount
() → float[source]¶ The number of CPUs that are usable from this PySys process, as a floating point number.
This may be less than the total number of CPUs due to restrictions from the operating system such as the process affinity mask and container cgroup (
cpu.cfs_quota_us
/cpu.max
) limits.New in version 2.2.