[Backgroundrb-devel] limiting processor usage
Eden Li
eden at mojiti.com
Tue Jul 10 00:30:11 EDT 2007
You could also try adjusting the niceness of the process via nice(1):
nice -n 19 ./script/backgroundrb start
which makes the kernel assign a lower priority to backgroundrb
processes. You'll have to experiment to find the right nice number,
it ranges [-20, 19] where -20 is the meanest (least nice, highest
chance to get run).
You can change the niceness of a process that's already running via renice(1).
On 7/9/07, Charlie Bowman <charlesmbowman at gmail.com> wrote:
> I have a very intensive background process that keeps taking up loads of the
> cpu. If I have 2 of these going at once, I can't even ssh to the box much
> less get a page to load. Is there something I can do to limit this. I dont
> mind if the process takes longer to run, I just dont want to freeze my box
> every time it runs. Thanks for any advice!
>
>
> Charlie
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>
More information about the Backgroundrb-devel
mailing list