kswap consume a lot of cpu.

From: Peter Enderborg (pme@ufh.se)
Date: Thu Apr 27 2000 - 15:44:28 EST


 10:37pm up 1:08, 4 users, load average: 3.56, 4.24, 2.44
104 processes: 102 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 2.1% user, 132.7% system, 0.1% nice, 0.0% idle
Mem: 125672K av, 123532K used, 2140K free, 0K shrd, 572K buff

Swap: 261496K av, 17992K used, 243504K free 73776K
cached

  PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME
COMMAND
    3 root 16 0 0 0 0 RW 0 77.2 0.0 9:04
kswapd
 4257 pme 15 0 404 404 344 D 0 53.3 0.3 0:07 cp
    4 root 0 0 0 0 0 SW 0 1.5 0.0 0:11
kflushd
 2526 root 3 0 672 620 436 R 0 1.3 0.4 0:31 top
  445 root 0 0 13188 10M 1244 S 0 0.9 8.7 1:03 X
  356 root 0 0 364 352 276 S 0 0.1 0.2 0:03
rpc.rstatd
  455 pme 10 10 524 416 292 S N 0 0.1 0.3 0:00
xclock
    1 root 0 0 108 108 44 S 0 0.0 0.0 0:01 init
    2 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 khubd

    5 root 0 0 0 0 0 SW 0 0.0 0.0 0:00
kupdate
  201 root 0 0 360 300 276 S 0 0.0 0.2 0:00
syslogd
  208 root 0 0 144 84 20 S 0 0.0 0.0 0:00 klogd

  217 daemon 0 0 300 232 232 S 0 0.0 0.1 0:00 atd

This is on a dual Pentium II. I have just made an upgrade to 2.3.99pre6,

but I have seen it for while now. Is this realy the way it should be?
It's the cp of a big file on ext2 filesystem that causes the kswapd to
use 77% CPU. But any heavy disk usage gives the same result.



-
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/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST