Re: [patch 07/19] split anon & file LRUs for memcontrol code

From: KAMEZAWA Hiroyuki
Date: Mon Jan 07 2008 - 05:02:02 EST


On Wed, 02 Jan 2008 17:41:51 -0500
linux-kernel@xxxxxxxxxxxxxxx wrote:

> Index: linux-2.6.24-rc6-mm1/mm/vmscan.c
> ===================================================================
> --- linux-2.6.24-rc6-mm1.orig/mm/vmscan.c 2008-01-02 15:55:55.000000000 -0500
> +++ linux-2.6.24-rc6-mm1/mm/vmscan.c 2008-01-02 15:56:00.000000000 -0500
> @@ -1230,13 +1230,13 @@ static unsigned long shrink_zone(int pri
>
> get_scan_ratio(zone, sc, percent);
>

I'm happy if this calclation can be following later.
==
if (scan_global_lru(sc)) {
get_scan_ratio(zone, sc, percent);
} else {
get_scan_ratio_cgroup(sc->cgroup, sc, percent);
}
==
To do this,
mem_cgroup needs to have recent_rotated_file and recent_rolated_anon ?

Thanks,
-Kame

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