From owner-freebsd-questions@FreeBSD.ORG Tue Jun 2 23:09:35 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 33DAF106564A for ; Tue, 2 Jun 2009 23:09:35 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f163.google.com (mail-fx0-f163.google.com [209.85.220.163]) by mx1.freebsd.org (Postfix) with ESMTP id B90D18FC08 for ; Tue, 2 Jun 2009 23:09:34 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fxm7 with SMTP id 7so2249912fxm.43 for ; Tue, 02 Jun 2009 16:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mcORHFbTvn5Ph9Ro+r+BhDKLUptB9xV6Al5OQxLaM4g=; b=wT0pAIEtasOdg5e6zpZGI9d6jO8dY/gI4Tba7/l4J36TCBXltipky1GD1Bas9ok9n7 YMYYbeYIWJ4n708MjQ973TjJ9YFx7jEhnJ6ZCdSJkhuArCR99+zM8EbULleT50P8PWvd oyrwr2ponsTfNLquEtwmr84aXHJQ+pZG5EEqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CrNvL13qTkdMuDp66pY7dMlQGkSdf6nlMHHIKG6fBalxAY063MUaVzf8KraUdhnRWI 1jE9U9038oEKEn+gYozYVTAzo6gnQmVCJ96WuaVgdEU8xfutv+C0jKrrNbhCc8zoG5Gq QnjYjr02o0Br9aOUCQ+F8yvHIinP7GDhzBSjU= MIME-Version: 1.0 Received: by 10.204.97.204 with SMTP id m12mr229587bkn.185.1243984173250; Tue, 02 Jun 2009 16:09:33 -0700 (PDT) In-Reply-To: <4A25B029.1030608@ibctech.ca> References: <4A25B029.1030608@ibctech.ca> Date: Tue, 2 Jun 2009 19:09:33 -0400 Message-ID: <4ad871310906021609y4b85025bwe16346b824df7bf3@mail.gmail.com> From: Glen Barber To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org Questions -" 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: Tue, 02 Jun 2009 23:09:35 -0000 Hi Steve On Tue, Jun 2, 2009 at 7:05 PM, Steve Bertrand wrote: > Hi everyone, > > I'm attempting to "mysqldump" a database on a box that is hovering near > max CPU and mem usage. > > When I run the command, other critical programs fail to respond causing > an 'outage-like' situation. > > Normally, this is a time-of-day task and will run happily later into the > night, but I want to run it now. > > What is the best way to set priority on my task in order to ensure it > completes as quickly as possible, but does not cause a situation where > other programs and their children can't respond? > You can use nice(1) or renice(1) to set priorities, but I/O and bandwidth will end up being your bottleneck. -- Glen Barber http://www.dev-urandom.com http://www.linkedin.com/in/glenjbarber