Re: Why isn't shrink_slab more zone oriented ?

From: Dave Chinner
Date: Tue Sep 27 2011 - 20:04:36 EST


On Mon, Sep 26, 2011 at 05:21:12PM +0530, kautuk.c @samsung.com wrote:
> Hi,
>
> I was going through the do_try_to_free_pages(), balance_pgdat(),
> __zone_reclaim()
> functions and I see that shrink_zone and shrink_slab are called for each zone.
>
> But, shrink_slab() doesn't seem to bother about the zone from where it
> is freeing
> memory.

Work is in progress to do this.

http://lwn.net/Articles/456071/

Dirty slab objects are currently not tracked in a manner that makes
per-zone reclaim efficient to do, os that needs to be corrected
first. Once we have generic per-zone LRU infrastructure, then we
can easily push zone reclaim hints down into the shrinkers for them
to scan the appropriate LRU....

Cheers,

Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
--
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/