From owner-freebsd-current@FreeBSD.ORG Wed Dec 10 15:10:59 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 350A816A4CE for ; Wed, 10 Dec 2003 15:10:59 -0800 (PST) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B94643D09 for ; Wed, 10 Dec 2003 15:10:51 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (udsl-3-062.QLD.dft.com.au [202.168.108.62])hBANAjZu081354; Thu, 11 Dec 2003 10:10:45 +1100 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.17])hBANAiGw013709; Thu, 11 Dec 2003 09:10:44 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Thu, 11 Dec 2003 09:10:43 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Jeff Roberson In-Reply-To: <20031208132102.R88168@hewey.af.speednet.com.au> Message-ID: <20031211085336.O13173@hewey.af.speednet.com.au> References: <20031207082612.D4201-100000@mail.chesapeake.net> <20031208132102.R88168@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: ULE and current. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 23:10:59 -0000 The scheduling of nice processes seems to be broken: team2# nice -7 sh -c "while :; do echo -n;done" & team2# nice -7 sh -c "while :; do echo -n;done" & team2# sleep 120; top -S PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 675 root 133 -7 1576K 952K CPU1 1 1:52 75.78% 75.78% sh 676 root 133 -7 1576K 952K RUN 1 1:39 73.44% 73.44% sh 12 root -16 0 0K 12K RUN 0 18:46 55.47% 55.47% idle: cpu0 11 root -16 0 0K 12K RUN 1 7:00 0.00% 0.00% idle: cpu1 Adding a third nice process eliminates the idle time, but cpu% is still bad: team2# nice -7 sh -c "while :; do echo -n;done" & team2# sleep 120; top -S PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 705 root 133 -7 1576K 952K CPU0 0 1:53 100.78% 100.78% sh 675 root 133 -7 1576K 952K RUN 1 12:12 51.56% 51.56% sh 676 root 133 -7 1576K 952K RUN 1 11:30 49.22% 49.22% sh 729 root 76 0 2148K 1184K CPU1 1 0:00 0.78% 0.78% top 12 root -16 0 0K 12K RUN 0 24:00 0.00% 0.00% idle: cpu0 11 root -16 0 0K 12K RUN 1 7:00 0.00% 0.00% idle: cpu1 The box is a dual P133 running -current from 8th Dec. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/