kswap consume a lot of cpu.

Peter Enderborg (pme@ufh.se)
Thu, 27 Apr 2000 22:44:28 +0200


This is a multi-part message in MIME format.
--------------080C3C0D189A94389681D906
Content-Type: multipart/alternative;
boundary="------------0AB39A267ACD6C14AC483B9D"

--------------0AB39A267ACD6C14AC483B9D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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.

--------------0AB39A267ACD6C14AC483B9D
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
 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. --------------0AB39A267ACD6C14AC483B9D-- --------------080C3C0D189A94389681D906 Content-Type: text/x-vcard; charset=us-ascii; name="pme.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Peter Enderborg Content-Disposition: attachment; filename="pme.vcf" begin:vcard n:Enderborg;Peter x-mozilla-html:FALSE org:; adr:;;;;;; version:2.1 email;internet:pme@ufh.se x-mozilla-cpt:;0 fn:Peter Enderborg end:vcard --------------080C3C0D189A94389681D906-- - 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/