Re: Is this bad?

Richard B. Johnson (root@chaos.analogic.com)
Tue, 4 May 1999 11:20:14 -0400 (EDT)


On Tue, 4 May 1999, Mike Panetta wrote:

> I did a ps -aux on a machine here and I noticed a line that looked like
> this in the process list (copied down):
>
> root 2 0.4 0.0 0 0 ? SW Apr 27 71224914:52 (kflushd)
>
> There is a similer line for kswapd. This looks suspicious to me.
> Is it normal for a process to have a CPU time this high? Espically
> if the machine has only been up for 6 and a half days? The machine is
> running a 2.0.36 kernel.
>
> Thanks,
> Mike Panetta
>

This brings up an interesting question. When the system is idle, who
gets charged for the CPU time? Is it kflushd? It reads zero on my system.

USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
lp 65 0.0 0.0 864 296 ? S 21:49 0:00 /usr/sbin/rpc.portmap
nobody 110 0.0 0.0 1364 4 ? S 21:49 0:00 (httpd)
root 1 0.0 0.0 220 40 ? S 21:49 0:00 init [5]
root 2 0.0 0.0 0 0 ? SW 21:49 0:00 (kflushd)
root 3 0.0 0.0 0 0 ? SW 21:49 0:00 (kpiod)
root 4 0.0 0.0 0 0 ? SW 21:49 0:00 (kswapd)
root 18 0.0 0.0 800 44 ? S 21:49 0:01 update (bdflush)
root 42 0.0 0.0 844 80 ? S 21:49 0:00 /usr/sbin/crond
root 61 0.0 0.0 1000 0 ? SW 21:49 0:00 (klogd)
root 63 0.0 0.0 284 104 ? S 21:49 0:00 /usr/sbin/syslogd
root 67 0.0 0.0 776 152 ? S 21:49 0:00 /usr/sbin/inetd
root 69 0.0 0.0 772 220 ? S 21:49 0:00 /usr/sbin/rwhod -t -s
root 71 0.0 0.0 232 0 ? SW 21:49 0:00 (lpd)
root 81 0.0 0.0 896 68 ? S 21:49 0:00 /usr/sbin/rpc.mountd
root 83 0.0 0.0 992 68 ? S 21:49 0:07 /usr/sbin/rpc.nfsd
root 85 0.0 0.0 840 0 ? SW 21:49 0:00 (rpc.pcnfsd)
root 89 0.0 0.1 1400 368 ? S 21:49 0:00 sendmail: accepting c
root 97 0.0 0.0 804 0 ? SW 21:49 0:00 (rmtadm)
root 99 0.0 0.0 704 44 ? S 21:49 0:00 -Keep alive
root 103 0.0 0.0 1364 52 ? S 21:49 0:01 /usr/sbin/httpd
root 104 0.0 0.2 1184 776 1 S 21:49 0:00 -bash
root 105 0.0 0.0 732 0 2 SW 21:49 0:00 (agetty)
root 106 0.0 0.0 732 0 3 SW 21:49 0:00 (agetty)
root 107 0.0 0.0 732 0 4 SW 21:49 0:00 (agetty)
root 108 0.0 0.0 732 0 5 SW 21:49 0:00 (agetty)
root 109 0.0 0.0 732 0 6 SW 21:49 0:00 (agetty)
root 1235 0.0 0.2 1816 656 1 S 10:50 0:00 xinit
root 1236 1.2 1.1 7548 3724 ? S 10:50 0:21 X :0
root 1238 0.0 0.2 1456 704 1 S 10:50 0:00 rxvt -C -T CONSOLE -f
root 1239 0.0 0.2 2068 880 1 S 10:50 0:00 fvwm
root 1242 0.0 0.3 2096 1132 1 S 10:50 0:00 xclock -update 1 -geo
root 1243 0.8 0.3 1588 1004 1 S 10:50 0:14 xsysinfo -geometry 37
root 1246 0.0 0.5 3496 1932 1 S 10:50 0:00 nxterm -T chaos -sb -
root 1247 0.0 0.2 1964 844 1 S 10:50 0:00 /usr/lib/X11/fvwm/Goo
root 1248 0.0 0.2 1904 708 1 S 10:50 0:00 /usr/lib/X11/fvwm/Fvw
root 1249 0.0 0.2 1172 744 ? S 10:50 0:00 /bin/bash
root 1253 0.0 0.3 2104 1140 1 S 10:50 0:00 xclock -bg Grey20 -fg
root 1254 0.0 0.4 3088 1440 1 S 10:50 0:00 xbiff -bg Grey20 -fg
root 1255 0.0 0.2 1184 776 ? S 10:50 0:00 -bash
root 1304 0.0 0.4 2600 1500 ? S 11:13 0:00 pine
root 1312 0.0 0.2 1460 724 1 S 11:17 0:00 rxvt -bg Black -fg Wh
root 1313 0.0 0.2 1176 760 ? S 11:17 0:00 /bin/bash
root 1320 0.0 0.1 812 476 ? R 11:19 0:00 ps -aux

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/