Re: kswapd eating too much CPU on ac16/ac18

From: Goswin Brederlow (
Date: Mon Jun 19 2000 - 16:22:58 EST

>>>>> " " == Rik van Riel <> writes:

> I think the phenomenon you're seeing is not at all related to
> deferred/non-deferred swapout. That doesn't have anything to do
> with kswapd CPU usage.

> The changed feedback loop in do_try_to_free_pages, however may
> have something to do with this. It works well on machines with
> more than 1 memory zone, but I can envision it breaking on
> machines with just one zone...

> I'm thinking of a way to fix this cleanly, I'll keep you
> posted.

I have two boxes with 2.4.0-test1 kernels:

First one a Celeron 466 with 128 Mb ram:
BIOS-provided physical RAM map:
 e820: 000000000009f000 @ 0000000000000000 (usable)
 e820: 0000000007f00000 @ 0000000000100000 (usable)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.

Second one a P120 with 16 MB ram (probably in one zone, but its not in
reach at the moment).

On the Celeron 2.4.0-test1 runs fine (responsiveness is a bit low, but
kswapd useage is fine).

On the P120 kswapd needs 95-99% cpu time. and the system is realy
realy slow. I teste plain 2.4.0-test1 to 2.2.4-test1-ac19 with various
steps inbetween. The disk behaviour (how often the ide led blinks)
differs and the amount swap used is different, but the kswap allways
uses all cpu time.

This could realy be a "number of zones" problem, so pleas thing about


PS: I will add a zone mapping for the P120 when I get to it next time.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:18 EST