Re: [PATCH] total_free_shortage() using zone_free_shortage()

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed Aug 08 2001 - 02:24:54 EST


On Wed, 8 Aug 2001, Marcelo Tosatti wrote:
>
> Having "zone->pages_low" as the low water mark to when start kswapd does
> _not_ mean we want "zone->pages_low" as the freetarget (or the "free
> shortage" indicator).

Right. We want the free target to obviously be larger than the low target,
to avoid hysteresis around it. And at the same time the free target
obviously has to be smaller than the more-than-enough "plenty" case.

So we actually have _three_ numbers, not two.

> Could you be more verbose ?

I already was, our mails crossed. I think the main thing I have decided to
be a "Good Feature (tm)" is to consider the free target to be more of a
global thing, and not a per-zone thing. While the low water mark and
"plenty" mark obviously have to be per-zone decisions.

And we've actually done exactly this - this is how "inactive_target" works
already, and how "global_free_shortage()" ends up working too. We just
didn't write it down explicitly.

                Linus

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



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:15 EST