From owner-freebsd-questions@FreeBSD.ORG Tue Jun 2 23:11:08 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 6279C106568A for ; Tue, 2 Jun 2009 23:11:08 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8278FC12 for ; Tue, 2 Jun 2009 23:11:07 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n52NB34e045742; Wed, 3 Jun 2009 01:11:03 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n52NB39E045739; Wed, 3 Jun 2009 01:11:03 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 3 Jun 2009 01:11:03 +0200 (CEST) From: Wojciech Puchar To: Steve Bertrand In-Reply-To: <4A25B029.1030608@ibctech.ca> Message-ID: References: <4A25B029.1030608@ibctech.ca> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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:11:08 -0000 > 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? generally single program could not make that - FreeBSD schedules tasks well. in certain cases it may be like that. For example - programs that runs for long time constantly and uses CPU gets automatically "downgraded" so your newly run backup task can make them really out of CPU power. man nice will help you - get your backup program priority down. Actually i don't know if "downgrading" (called autorenice) can be disabled for certain processes. If would make sense for - say - database servers. Anyone know?