Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2009 02:14:26 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Set task priority
Message-ID:  <20090603021426.67acd729@gumby.homeunix.com>
In-Reply-To: <4A25B395.6060502@FreeBSD.org>
References:  <4A25B029.1030608@ibctech.ca> <4ad871310906021609y4b85025bwe16346b824df7bf3@mail.gmail.com> <4A25B1DA.10201@ibctech.ca> <4A25B395.6060502@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 02 Jun 2009 19:19:49 -0400
Greg Larkin <glarkin@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090603021426.67acd729>