From owner-freebsd-questions Wed Mar 4 10:11:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA14786 for freebsd-questions-outgoing; Wed, 4 Mar 1998 10:11:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA14735 for ; Wed, 4 Mar 1998 10:11:27 -0800 (PST) (envelope-from H.Husic@Uni-Koeln.DE) Received: from nero (dialup125.zpr.Uni-Koeln.DE [134.95.219.125]) by Octopussy.MI.Uni-Koeln.DE (8.8.7/8.8.7) with SMTP id TAA14885 for ; Wed, 4 Mar 1998 19:11:21 +0100 (MET) Message-Id: X-Sender: aaz09@mail.rrz.uni-koeln.de X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Wed, 04 Mar 1998 14:55:17 +0100 To: questions@FreeBSD.ORG From: Hrvoje Husic Subject: Bug in the process-scheduler & niceness of 20? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The FreeBSD scheduler does not seem to respect the niceness 20 of a process. -----[snip]----------------------------------------------------------------- last pid: 4601; load averages: 1.91, 1.86, 1.57 00:58:47 37 processes: 3 running, 34 sleeping CPU states: 49.8% user, 46.7% nice, 3.5% system, 0.0% interrupt, 0.0% idle Mem: 22M Active, 7288K Inact, 15M Wired, 17M Cache, 7654K Buf, 532K Free Swap: 138M Total, 121M Used, 17M Free, 88% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 203 hhusic 105 20 860K 340K RUN 2519.7 49.17% 49.17% rc564 4595 hhusic 104 0 556K 416K RUN 3:06 47.76% 47.76% gzip -----------------------------------------------------------------[snap]----- As to my understanding, a niceness of 20 on BSD systems is supposed to set a process to some kind of "idle"-priority, leaving any potentially needed CPU-cycle to other applications. The machine has been up for 106 days, mostly doing nothing than running the rc5 client from distributed.net. It is not swaping or doing any other IO-intensive jobs, it's just those two processes. Btw, it is FreeBSD-2.2.1-RELEASE. cvsup is syncing sources with cvsup.de.freebsd.org, but no "make world" or new kernels have been build. -- Hrvoje Husic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message