From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 01:15:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B04CD106564A for ; Wed, 3 Jun 2009 01:15:01 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 3716D8FC0A for ; Wed, 3 Jun 2009 01:15:00 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by fg-out-1718.google.com with SMTP id e12so869760fga.12 for ; Tue, 02 Jun 2009 18:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=Ooh4FLbG9AYxYCPt/R+lmyfkZFG7l8vmMPktU7op3oM=; b=Cfv6URWUPPCGmA6koBF1172FcFOO3EyReJXnKNOWXPv1ASmIZyDt2zFR72woDoozd/ S+6ecXWxwt0dPvyPITxlE5fvQ8h/8h7SzdwEhpbxrEtA5QUlDzFeNLpBvgPwUZB6+bpP /HKzEZCTnrfVuQT+Bb1xKjk9s/p/tnycy2QIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Hfh/m0H85yLLYNKr9jwR/Btf04JtHZgA+5baou+KJvmvqhGshkFb7p1ZHAR4arPky0 DlT2z7YAtPyRyRAJQT5Gp6KkssZ5uL8AoYLQ+lPNj39xH84Ar9G5PP7L+BOvkNtVxS7P UQKwIjETwCbvji7KTiI8qRBfXwGqlmxTcbbpg= Received: by 10.86.36.11 with SMTP id j11mr490442fgj.56.1243991700255; Tue, 02 Jun 2009 18:15:00 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 4sm823345fgg.3.2009.06.02.18.14.57 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Jun 2009 18:14:59 -0700 (PDT) Date: Wed, 3 Jun 2009 02:14:26 +0100 From: RW To: freebsd-questions@freebsd.org 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> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Set task priority X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 01:15:01 -0000 On Tue, 02 Jun 2009 19:19:49 -0400 Greg Larkin 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.