Re: [PATCH 0/4] Memory controller soft limit patches (v3)

From: KAMEZAWA Hiroyuki
Date: Mon Mar 02 2009 - 02:18:49 EST


On Mon, 2 Mar 2009 16:06:02 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> Considering above 2, it's not bad to find victim by proper logic
> from balance_pgdat() by using mem_cgroup_select_victim().
> like this:
> ==
> struct mem_cgroup *select_vicitim_at_soft_limit_via_balance_pgdat(int nid, int zid)
> {
> while (?) {
> vitcim = mem_cgroup_select_victim(init_mem_cgroup); #need some modification.

Another choice is that when a user set soft-limit via interface, add it to
our own private list and scan it here. (of course, remove at rmdir.)

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/