Building cmake launches too many parallel jobs and makes the computer unresponsive
#6841
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
https://docs.brew.sh/Manpage#:~:text=cache/Homebrew/Logs.-,HOMEBREW_MAKE_JOBS,-Use%20this%20value |
Beta Was this translation helpful? Give feedback.
Overriding
HOMEBREW_MAKE_JOBSdoes work for me when buildingcmake. Try setting it to 1 and you should observe that the build becomes de-parallelized.Note that having
HOMEBREW_MAKE_JOBSset to 12 means that 12 jobs are run concurrently, so all of your 12 cores will be busy buildingcmake. If you have other ongoing tasks, the slowness is sort of expected. If that's not desired, please adjust it to a lower value.If Homebrew doesn't use all cores, one can also complain like: "Why is Homebrew not using all my CPU cores even when my computer is idle? That makes it slow!" The choice is yours: set
HOMEBREW_MAKE_JOBSto whatever value that s…