Re: lowmem_reserve (replaces protection)

From: Andrew Morton
Date: Tue Oct 26 2004 - 22:49:31 EST


Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:
>
> It actually can overscan lower zones a little bit, because
> whenever any higher zone in the pgdat is low on memory, then
> it and all zones below it get scanned too.

Because we know that all of the eligible zones are below pages_low. kswapd
will then work to bring all the relevant zones back to pages_high.

When working on this code it is very very easy to break the zone levelling:
you *have* to run a workload mix and monitor the numbers in /proc/vmstat to
ensure that all zones are undergoing page scanning at frequencies which are
proportional to their sizes. It's easy to screw up the zone levelling so
all allocations end up coming from ZONE_NORMAL and pagecache pages in, say,
ZONE_DMA end up just sitting there.

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