From owner-freebsd-questions Fri Jul 17 03:45:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA15843 for freebsd-questions-outgoing; Fri, 17 Jul 1998 03:45:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA15836 for ; Fri, 17 Jul 1998 03:45:45 -0700 (PDT) (envelope-from cejkar@dcse.fee.vutbr.cz) Received: from kazi.dcse.fee.vutbr.cz (kazi.dcse.fee.vutbr.cz [147.229.9.51]) by boco.fee.vutbr.cz (8.9.1/8.9.1) with ESMTP id MAA02731 for ; Fri, 17 Jul 1998 12:45:30 +0200 (MET DST) Received: (from cejkar@localhost) by kazi.dcse.fee.vutbr.cz (8.8.8/8.8.8) id MAA11466 for freebsd-questions@freebsd.org; Fri, 17 Jul 1998 12:45:28 +0200 (CEST) From: Cejka Rudolf Message-Id: <199807171045.MAA11466@kazi.dcse.fee.vutbr.cz> Subject: Re: Bug in the process-scheduler & niceness of 20? To: freebsd-questions@FreeBSD.ORG (freebsd-questions@freebsd.org) Date: Fri, 17 Jul 1998 12:45:28 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have found old discussion about task scheduler: > On Mon, 9 Mar 1998, Hrvoje Husic wrote: > > > >Make sure the process is set to idle priority then. > > > > So what is niceness used for in FreeBSD, if it does not make processes nice? > > Process priority in FreeBSD is two-dimensional: there are three main > queues, realtime, normal, and idle. Realtime processes will never be > preempted except by a process with higher priority, an idle processes will > never run unless there are no processes ready to run in the realtime or > normal queues. See idprio(8) for info. Niceness controls scheduling > within in each queue. > > Doug White | University of Oregon Yes, ok. But why is niceness control _so very_ insensitive? How can I increase nice sensitivity? Example: 1. process with nice = 0: CPU = 65 % 2. process with nice = 20: CPU = 30 % Ratio 2:1 is _too_ small. How can I reach ratio 5:1 or bigger? idprio is unusable for this purpose. Time ratio reacheble with idprio is 1:1 or infinity:none. -------------------------------------------------------------------------- Rudolf Cejka (cejkar@dcse.fee.vutbr.cz; http://www.fee.vutbr.cz/~cejkar) Technical University of Brno, Faculty of El. Engineering and Comp. Science Bozetechova 2, 612 66 Brno, Czech Republic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message