Created
October 12, 2018 15:50
-
-
Save major/d4a5cacdbad56a437af855ab4dfb126f to your computer and use it in GitHub Desktop.
Getting accurate cgroup CPU core counts in OpenShift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CPU_SHARES=$(cat /sys/fs/cgroup/cpu/cpu.shares) | |
export RPM_BUILD_NCPUS=$(expr $CPU_SHARES / 1024) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment