From owner-freebsd-questions Sat Apr 19 16:25:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA22263 for questions-outgoing; Sat, 19 Apr 1997 16:25:27 -0700 (PDT) Received: from vital.bleeding.com (vital.bleeding.com [205.166.195.252]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA22258 for ; Sat, 19 Apr 1997 16:25:20 -0700 (PDT) Received: from crimson (crimson.bleeding.com [205.166.254.2]) by vital.bleeding.com (8.8.5/8.8.5) with SMTP id QAA12170 for ; Sat, 19 Apr 1997 16:22:58 -0700 (PDT) Received: by crimson with Microsoft Mail id <01BC4CDE.B02B2700@crimson>; Sat, 19 Apr 1997 16:28:18 -0700 Message-ID: <01BC4CDE.B02B2700@crimson> From: Justin Wolf To: "'freebsd-questions@freebsd.org'" Subject: Stuck loadavg revisited Date: Sat, 19 Apr 1997 16:28:15 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by freefall.freebsd.org id QAA22259 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I know there's been an ongoing discussion about this topic, but recently it happened to me again and I thought I'd share what I did. Essentially I did the following: # foreach i (`find . -name '*'`) chown root $i chgrp wheel $i chmod o-w $i end in one shell and several # ls -lR | grep root | wc in another to track the progress of the foreach in the first session. I have X running and for posterity I'll post my 'top' at the end of this message as well as an uptime. The path which this 'foreach' operated in contained about 2500 files, so this created several thousand new processes. As of this writing (about 10 minutes later), the load is still at 1.0. Hope this helps getting this annoying bug taken care of in the next release. -Justin (top follows) last pid: 12165; load averages: 1.03, 1.13, 1.18 16:20:46 49 processes: 1 running, 48 sleeping CPU states: 6.9% user, 0.0% nice, 4.2% system, 2.3% interrupt, 86.6% idle Mem: 14M Active, 1708K Inact, 8676K Wired, 4624K Cache, 3558K Buf, 2008K Free Swap: 27M Total, 12M Used, 15M Free, 43% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 12165 root 31 0 312K 836K RUN 0:00 4.48% 0.99% top 56 root 2 0 556K 460K select 157:21 0.80% 0.80% ppp 52 root 2 0 368K 216K select 0:31 0.04% 0.04% routed 5790 root 18 0 596K 1012K pause 0:01 0.00% 0.00% tcsh 4831 jjwolf 18 0 588K 1012K pause 0:00 0.00% 0.00% tcsh 4268 jjwolf 18 0 588K 956K pause 0:00 0.00% 0.00% tcsh 103 root 18 0 332K 288K pause 0:59 0.00% 0.00% cron 23 root 18 0 200K 12K pause 0:00 0.00% 0.00% adjkerntz 5199 root 10 0 320K 780K wait 0:00 0.00% 0.00% xdm 147 root 10 0 392K 400K wait 8:21 0.00% 0.00% httpd 29671 jjwolf 10 0 476K 200K wait 0:00 0.00% 0.00% sh 29669 jjwolf 10 0 476K 200K wait 0:00 0.00% 0.00% sh 1 root 10 0 384K 72K wait 0:03 0.00% 0.00% init 4281 root 3 0 1308K 1680K ttyin 2:40 0.00% 0.00% tcsh 5230 jjwolf 3 0 616K 740K ttyin 0:01 0.00% 0.00% tcsh 160 root 3 0 164K 172K ttyin 0:00 0.00% 0.00% getty 159 root 3 0 164K 172K ttyin 0:00 0.00% 0.00% getty 161 root 3 0 164K 172K ttyin 0:00 0.00% 0.00% getty 171 root 2 0 3780K 3032K select 55:17 0.00% 0.00% XF86_P9000 29662 jjwolf 2 0 460K 1648K select 0:01 0.00% 0.00% xterm 5214 jjwolf 2 0 924K 1448K select 1:46 0.00% 0.00% xfm 29672 jjwolf 2 0 268K 1432K select 0:14 0.00% 0.00% xload 5217 jjwolf 2 0 464K 1284K select 0:06 0.00% 0.00% xterm 18189 jjwolf 2 0 268K 1216K select 2:10 0.00% 0.00% xload 5219 jjwolf 2 0 624K 1196K select 0:02 0.00% 0.00% xman 29670 jjwolf 2 0 204K 1184K select 0:09 0.00% 0.00% oclock 5220 jjwolf 2 0 220K 1048K select 0:00 0.00% 0.00% xconsole 5210 jjwolf 2 0 372K 788K select 0:25 0.00% 0.00% fvwm 29668 jjwolf 2 0 252K 784K select 0:02 0.00% 0.00% GoodStuff 10175 jjwolf 2 0 216K 628K select 0:00 0.00% 0.00% FvwmWinList 4822 root 2 0 196K 608K select 0:01 0.00% 0.00% telnetd 5226 jjwolf 2 0 228K 596K select 0:01 0.00% 0.00% FvwmPager 4267 root 2 0 196K 556K select 0:04 0.00% 0.00% telnetd 335 nobody 2 0 428K 528K accept 0:00 0.00% 0.00% httpd 2790 nobody 2 0 428K 528K accept 0:00 0.00% 0.00% httpd 2789 nobody 2 0 428K 528K accept 0:00 0.00% 0.00% httpd 168 nobody 2 0 428K 528K accept 0:00 0.00% 0.00% httpd 443 nobody 2 0 428K 528K accept 0:00 0.00% 0.00% httpd 166 nobody 2 0 416K 528K accept 0:00 0.00% 0.00% httpd 169 nobody 2 0 428K 520K accept 0:00 0.00% 0.00% httpd 167 nobody 2 0 428K 520K accept 0:00 0.00% 0.00% httpd 111 root 2 0 528K 516K accept 0:48 0.00% 0.00% sendmail (uptime follows) 4:21PM up 9 days, 18:14, 4 users, load averages: 1.01, 1.11, 1.17