2.4.13 (SMP): kswapd working furiously, to no effect

Les Schaffer (schaffer@optonline.net)
Mon, 29 Oct 2001 20:05:51 -0500


I noticed a problem for the last several days (2.4.13 Tyan PIII Dual)
but couldnt put my finger on it till i started paying attention:
kswapd is working furiously, but accomplishing nothing.

that is, kswapd is logging lots of CPU time, but no swap space is
being used. (see below).

i dont recall having problems until towards the end of the day (i
shutdown at nite). when i open or close a netscape session for
example, or do a dpkg blah-blah, the process hangs for a long time
before getting going. at one point prior to the 'top' below, i had
something like 500XXXK used, and still not a drop, err byte, of swap
used.

this behavior was not occuring with 2.4.12 (will check tmw) and
earlier versions.

les schaffer

================= INFO =================
speggy)~/: dmesg | grep swap
Starting kswapd
Adding Swap: 506036k swap-space (priority -1)

--------------

(speggy)~/: top

19:07:09 up 13:12, 3 users, load average: 1.68, 1.45, 1.24
69 processes: 66 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 14.4% user, 85.5% system, 0.0% nice, 0.1% idle
Mem: 513916K total, 443932K used, 69984K free, 7808K buffers
Swap: 506036K total, 0K used, 506036K free, 166992K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2873 godzilla 9 0 31984 30M 12272 S 0.0 6.0 0:00 mozilla-bin
[ mozilla-bin repeated ad infinitum)
356 godzilla 9 0 27528 26M 3688 S 0.0 5.3 4:16 xemacs
298 root 6 -10 202M 26M 4120 S < 0.9 5.1 9:04 XFree86
335 godzilla 9 0 7672 7668 6100 S 0.0 1.4 0:17 gabber
326 godzilla 9 0 4908 4908 3812 S 0.0 0.9 0:06 panel
[ etc ... ]
3 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU1
5 root 19 0 0 0 0 RW 95.9 0.0 282:40 kswapd
6 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush

--------------

(speggy)~/: ps uxwa // about 50 minutes after 'top' above

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 5 37.9 0.0 0 0 ? SW 05:54 315:56 [kswapd]

--------------

(speggy)/proc/: cat swaps
Filename Type Size Used Priority
/dev/hda4 partition 506036 0 -1

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