Subject: /bin/sh using impossible abount of cpu?
To: None <current-users@NetBSD.ORG>
From: Simon J. Gerraty <sjg@quick.com.au>
List: current-users
Date: 10/02/1997 18:27:48
NetBSD gate.quick.com.au 1.2G NetBSD 1.2G (GATE) #0:
Sat Aug 9 09:30:09 EST 1997
root@zen.quick.com.au:/usr/src/sys/arch/i386/compile/GATE i386
[uptime is 19 days since last panic - suspect faulty hardware]
Check this:
PID TT STAT TIME COMMAND
20144 ?? R 187:53.62 /bin/sh /etc/hourly.d/S10clean_junk start
that little script does:
:
test -d /var/spool/news/junk && (cd /var/spool/news && nice -n18 find
junk control -type f -print | nice -n18 xargs rm) &
and both the junk and control dirs are empty!
top shows:
load averages: 1.08, 1.16, 1.21 18:23:38
70 processes: 3 running, 66 sleeping, 1 zombie
CPU states: 33.5% user, 0.0% nice, 66.1% system, 0.0% interrupt, 0.4% idle
Memory: 5776K Act 3484K Inact 3728K Wired 1240K Free 24M Swap 104M Swap free
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
20144 root 89 0 320K 108K run - 193:26 93.90% sh
25223 root 30 0 260K 612K run - 0:00 0.98% top
Rats, kill -6 did not get me a core file...
--sjg