View previous topic :: View next topic |
Author |
Message |
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Thu Mar 13, 2003 1:19 am Post subject: Nice emerges? |
|
|
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 |
|
|
gwydion Apprentice
Joined: 26 Nov 2002 Posts: 151 Location: Michigan, USA
|
Posted: Thu Mar 13, 2003 3:36 am Post subject: |
|
|
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 |
|
|
hertog Tux's lil' helper
Joined: 28 Jun 2002 Posts: 138 Location: Enschede/The Netherlands/Europe
|
Posted: Thu Mar 13, 2003 3:47 am Post subject: |
|
|
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 |
|
|
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Thu Mar 13, 2003 9:43 am Post subject: |
|
|
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 |
|
|
hertog Tux's lil' helper
Joined: 28 Jun 2002 Posts: 138 Location: Enschede/The Netherlands/Europe
|
Posted: Thu Mar 13, 2003 2:15 pm Post subject: |
|
|
all children of a niced command have the same nice level as the parent |
|
Back to top |
|
|
|