Set task priority

RW rwmaillists at googlemail.com
Wed Jun 3 01:15:01 UTC 2009


On Tue, 02 Jun 2009 19:19:49 -0400
Greg Larkin <glarkin at FreeBSD.org> wrote:


> I had the same situation here, and nice(1) wasn't cutting it for me.
> I finally switched to idprio(1):
> http://www.freebsd.org/cgi/man.cgi?query=idprio&sourceid=opensearch
> 
> idprio 31 mysqldump .....
> 
> will run only when other processes are idle.  That should prevent any
> further self-incurred DOS symptoms for you.

IIRC idprio can actually make things worse under heavy load, because it
can lead to priority inversion. I think that's why you have to be root
to set it.


More information about the freebsd-questions mailing list