Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 237 forks source link

Something changes the process niceness to 10 during brew install #697

Closed arkanoid87 closed 6 years ago

arkanoid87 commented 6 years ago

I am working into a clustered environment. Brew install will takes ages if any configure or make is launched with niceness 10 instead of 0 without asking (I'm being eated by other users)

It is not an OS feature, i can launch multiple embedded stress -c 10 without experiencing the problem.

screen shot 2018-05-04 at 05 23 38

arkanoid87 commented 6 years ago

found https://github.com/Linuxbrew/brew/blob/8bd8aa231cf2812ba7538f2e74b6c32e5fb567b8/Library/Homebrew/formula_installer.rb#L722

this line should be an option

sjackman commented 6 years ago

Linuxbrew/brew is a fork of Homebrew/brew that adds support for Linux. I'll close this issue, since it's not related specifically to Linux. If you had a proposed fix, you could open a PR at Homebrew/brew. In the mean time, you could simply delete nice from this line, commit the file, and from then on your installation of Linuxbrew should work as desired. brew update should retain your fix (I believe).

arkanoid87 commented 6 years ago

Thank you

For other users, you also need to apply same change into the postinstall ruby call