3

I've noticed my computer gets sluggish when the load increases past 1 (ie, the first number after "load average:" from the "uptime" command).

Heavy-duty processes (like rsync) often raise the load above 1, even if I renice them lowest priority (+19). Renicing them helps a little, but not a lot.

Can I tell nice (or another program) to completely stop (kill -STOP) any +19 processes when the load increases over 1 (and resume when the load decreases to .75 or something)?

1 Answers1

0

FreeBSD has IDLE process class - see rtprio(1) manual page - so you can assign IDLE priority to rsync so it won't get timeslices when there are normal processes active.

http://www.freebsd.org/cgi/man.cgi?query=rtprio&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&arch=default&format=html

Linux has ionice(1) for CFQ io scheduler: http://linux.die.net/man/1/ionice Very similar concept, but for I/O.