Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nice emerge for a server?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
dezydery
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 87

PostPosted: Mon Feb 07, 2005 11:07 am    Post subject: nice emerge for a server? Reply with quote

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
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Mon Feb 07, 2005 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message
dezydery
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 87

PostPosted: Mon Feb 07, 2005 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Wed Mar 09, 2005 9:14 pm    Post subject: Reply with quote

Moved from Portage & Programming in favour of https://forums.gentoo.org/viewtopic-t-67892.html
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum