in reply to Increasing CPU Usage/Decreasing Run Time
On linux/Unix you should be able to 'nice' the process to affect the scheduling priority of the process(how much cpu time).
You usually have to be root to nice upwards and increase priority. So try 'nice -19 script.pl' the max value for nice is -20 so that should give your script priority over whatever is hogging cpu. You can nice processes via 'top' interface as well. update as pointed out below nice rather annoyingly uses -20 as the highest priority
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Increasing CPU Usage/Decreasing Run Time
by anonymized user 468275 (Curate) on Jul 26, 2005 at 08:13 UTC | |
by hakkr (Chaplain) on Jul 26, 2005 at 09:50 UTC | |
by anonymized user 468275 (Curate) on Jul 26, 2005 at 13:10 UTC |