View previous topic :: View next topic |
Author |
Message |
KintaroBC n00b
Joined: 15 Feb 2014 Posts: 63 Location: Australia
|
Posted: Thu Mar 27, 2014 8:08 am Post subject: Can I set nice value of emerge build with MAKEOPTS? |
|
|
I run a server and running emerge can really make my users PHP sites crawl, and severely increase the load averages on the system. I was wondering if there is a way to use MAKEOPTS to set a nice value to lower the priority of compiler tasks when I emerge packages. If this can be done, I'd really like to know how to do it. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Thu Mar 27, 2014 8:25 am Post subject: |
|
|
Hello,
There is a PORTAGE_NICENESS variable to set in make.conf. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Mar 27, 2014 8:54 am Post subject: |
|
|
KintaroBC ...
to follow on from what XavierMiller has said ... you can also adjust IONICE via PORTAGE_IONICE_COMMAND ... eg:
Code: | PORTAGE_IONICE_COMMAND="ionice -c 3 schedtool -D \${PID}" |
best ... khay |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Thu Mar 27, 2014 8:58 am Post subject: |
|
|
You can also set the load-average threshold
man emerge, and search for load-average
If it's a multicore processor you can also adjust the "jobs" downward in MAKEOPTS _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu Mar 27, 2014 9:08 am Post subject: |
|
|
And, even more efficient, set the scheduling model to SCHED_IDLE. _________________
|
|
Back to top |
|
|
KintaroBC n00b
Joined: 15 Feb 2014 Posts: 63 Location: Australia
|
Posted: Thu Mar 27, 2014 3:02 pm Post subject: |
|
|
Thanks for all the useful tips in this thread.
Looking into them I've found a lot of options in the manual for make.conf - so this is very appreciated. It's good to use a distro where the community helps users learn rather than just wet nursing their systems like some other distro communities. |
|
Back to top |
|
|
|