View previous topic :: View next topic |
Author |
Message |
dezydery Tux's lil' helper
Joined: 23 Jul 2004 Posts: 87
|
Posted: Mon Feb 07, 2005 11:07 am Post subject: nice emerge for a server? |
|
|
I've set up Gentoo on a server that's soon to go into production. I don't expect it to struggle with load but it seems a good idea to have system updates running with low priority.
Here's the make.conf I built with:
Code: | CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
USE="mysql -X -gnome -gtk -gtk2 -kde -oss -alsa -qt -truetype -ipv6 -cups" |
There are "four" CPUs (dual Xeon with HT) so I've set MAKEOPTS -j5 during build. Am I right in thinking -j1 would be best for the stated purpose?
Also if I do all my upgrades with
Code: | nice emerge -u some-package |
will all the sub-processes be niced as well? |
|
Back to top |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Mon Feb 07, 2005 11:14 am Post subject: |
|
|
Recommended MAKEOPTS value is CPU(s)+1, but you can set it to -j1 if you want. Looks like -j1 is the best value in your case.
There is a variable called PORTAGE_NICENESS, take a look at the make.conf manpage. This is from /etc/make.conf.example:
Code: |
# PORTAGE_NICENESS provides a default increment to emerge's niceness level.
# Note: This is an increment. Running emerge in a niced environment will
# reduce it further. Default is unset.
#PORTAGE_NICENESS=3
|
Last edited by Deranger on Mon Feb 07, 2005 8:30 pm; edited 1 time in total |
|
Back to top |
|
|
dezydery Tux's lil' helper
Joined: 23 Jul 2004 Posts: 87
|
Posted: Mon Feb 07, 2005 8:24 pm Post subject: |
|
|
That's great, thanks for the confirmation & info.
I'll have some general niceness for my emerges then, saves putting nice on the front of every command. |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
|