Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nice emerges?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Zarathustra[H]
Guru
Guru


Joined: 30 Dec 2002
Posts: 389
Location: Cambridge, MA, USA

PostPosted: Thu Mar 13, 2003 1:19 am    Post subject: Nice emerges? Reply with quote

Hey..

Could someone please tell me how to make emerge / make / etc. nice? I'm running a dedicated HLDS server and my updates cant take too much cpu power.

I would like to set emerge to compile stuff at nice 19.

Is there any convenient way to do this?

Thanks,
Matt
_________________
----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
----
Back to top
View user's profile Send private message
gwydion
Apprentice
Apprentice


Joined: 26 Nov 2002
Posts: 151
Location: Michigan, USA

PostPosted: Thu Mar 13, 2003 3:36 am    Post subject: Reply with quote

I think just doing a
Code:
nice -19 emerge <arguments>
will take care of it - anyone care to confirm this? I know I've done it before, but I can't remember if this is the method that worked :)

also, maybe setting up an alias for emerge would help? something along the lines of:
Code:
alias emerge="nice -19 emerge"
in a .bashrc or .profile? Again - could somebody please back me up on this, or shoot me down for being an idiot?
_________________
Linux User #223670
Back to top
View user's profile Send private message
hertog
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 138
Location: Enschede/The Netherlands/Europe

PostPosted: Thu Mar 13, 2003 3:47 am    Post subject: Reply with quote

both will work, technically....

Altho it seems that somehow the whole job prioritation of jobs that are nices and not nices has gone bonkers....

No matter how nice you renice, cpu intensive stuff still gets (on a loaded system) too much CPU....
Back to top
View user's profile Send private message
Zarathustra[H]
Guru
Guru


Joined: 30 Dec 2002
Posts: 389
Location: Cambridge, MA, USA

PostPosted: Thu Mar 13, 2003 9:43 am    Post subject: Reply with quote

ahh My worry was that since the emerge command laucnes soo many other proceses, that if I did a nice 19 emerge it would only mae the parent process nice, but not the children, so to speak.

casue after all when you monitor the cpu util under top during an emerge, most of the cpu us taken by the likes of cc1, cc2, python, etc. Not emerge itself.

Any thoughts on that?
_________________
----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
----
Back to top
View user's profile Send private message
hertog
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 138
Location: Enschede/The Netherlands/Europe

PostPosted: Thu Mar 13, 2003 2:15 pm    Post subject: Reply with quote

all children of a niced command have the same nice level as the parent
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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