From owner-freebsd-hackers Tue May 13 01:10:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA08437 for hackers-outgoing; Tue, 13 May 1997 01:10:23 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA08432 for ; Tue, 13 May 1997 01:10:21 -0700 (PDT) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA26209 for ; Tue, 13 May 1997 10:11:22 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id KAA03359 for freebsd-hackers@freefall.cdrom.com; Tue, 13 May 1997 10:10:53 +0200 (MEST) Date: Tue, 13 May 1997 10:10:53 +0200 (MEST) From: Christoph Kukulies Message-Id: <199705130810.KAA03359@gil.physik.rwth-aachen.de> To: freebsd-hackers@freefall.FreeBSD.org Subject: top / nice level problem Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I'm running the bovrc client (http://vex.net/rsa) at nice level 20 and a colleague is running another job at nice level 5. Now he asks me: why does my job only get 50% of CPU while yours (at nice level 20 also gets 50%)? last pid: 11815; load averages: 1.99, 1.97, 1.92 10:00:06 30 processes: 3 running, 27 sleeping CPU states: 0.0% user, 100% nice, 0.0% system, 0.0% interrupt, 0.0% idle Mem: 13M Active, 1648K Inact, 9256K Wired, 5924K Cache, 3559K Buf, 1140K Free Swap: 123M Total, 4556K Used, 119M Free, 4% Inuse PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 10983 physicist 105 5 14148K 2028K CPU0 0 421:00 51.38% 51.38% bsd_di 7415 kuku 105 20 164K 264K CPU0 0 969:38 47.61% 47.61% bovrc- 11781 kuku 18 0 648K 1012K pause 0 0:00 0.00% 0.00% tcsh 10982 physicist 18 5 468K 236K pause 0 0:00 0.00% 0.00% csh 10981 physicist 18 5 464K 232K pause 0 0:00 0.00% 0.00% csh 141 root 18 0 368K 156K pause 0 0:03 0.00% 0.00% cron 25 roo Killing bovrc gives the following picture after a while: last pid: 11824; load averages: 1.28, 1.75, 1.84 10:07:20 29 processes: 2 running, 27 sleeping CPU states: 0.4% user, 98.4% nice, 0.0% system, 1.2% interrupt, 0.0% idle Mem: 13M Active, 1828K Inact, 9316K Wired, 5948K Cache, 3557K Buf, 788K Free Swap: 123M Total, 4352K Used, 119M Free, 3% Inuse PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 10983 physicist 105 5 14148K 2028K CPU0 0 425:22 98.23% 98.23% bsd_di 11781 kuku 18 0 648K 1012K pause 0 0:00 0.00% 0.00% tcsh 10982 physicist 18 5 468K 236K pause 0 0:00 0.00% 0.00% csh 10981 physicist 18 5 464K 232K pause 0 0:00 0.00% 0.00% csh 141 root 18 0 368K 176K pause 0 0:03 0.00% 0.00% cron 25 root 18 0 208K 8K pause 0 0:00 0.00% 0.00% adjker 1 root 10 0 496K 68K wait 0 0:00 0.00% 0.00% init 125 root 10 0 212K 8K nfsidl0 0:08 0.00% 0.00% nfsiod 126 root 10 0 212K 8K nfsidl0 0:06 0.00% 0.00% nfsiod FreeBSD bach.physik.rwth-aachen.de 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sun May 4 18:01:24 CEST 1997 root@bach.physik.rwth-aachen.de:/usr/src/sys/ compile/NEWBACH i386 -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de