From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 00:19:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40D8D16A4B3 for ; Mon, 27 Oct 2003 00:19:19 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 885E343FA3 for ; Mon, 27 Oct 2003 00:19:18 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <3F9CD503.9040702@geminix.org> Date: Mon, 27 Oct 2003 09:19:15 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031019 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20031026231659.F52990@gaff.hhhr.ision.net> In-Reply-To: <20031026231659.F52990@gaff.hhhr.ision.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AE2ar-000N5s-00; Mon, 27 Oct 2003 09:19:17 +0100 Subject: Re: Process priority X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 08:19:19 -0000 Olaf Hoyer wrote: > On Sun, 26 Oct 2003, ghuul@email.cz wrote: > >>Is there some way ho to assign priority (cpu time) for each process ? >>I'm using Samba server for PDF printing and in case of big printouts it >>could "eat" whole cpu time for few seconds, so i'd like to control it >>and give to this process lower priority. > > nice and renice are the commands to give the process lower priority. > > in particular, whilst operating, you will want to check out renice(8). Or if you consider it appropriate to give Samba only the available idle time in this scenario you may also want to look at the idprio(1) command. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net