Re: [RFC][PATCH 1/6] memcg: free all at rmdir
From: KAMEZAWA Hiroyuki
Date: Wed Nov 12 2008 - 21:49:59 EST
On Wed, 12 Nov 2008 16:07:58 -0800
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> If we do this then we can make the above "keep" behaviour non-optional,
> and the operator gets to choose whether or not to drop the caches
> before doing the rmdir.
>
> Plus, we get a new per-memcg drop_caches capability. And it's a nicer
> interface, and it doesn't have the obvious races which on_rmdir has,
> etc.
>
> hm?
>
Balbir, how would you want to do ?
I planned to post shrink_uage patch later (it's easy to be implemented) regardless
of acceptance of this patch.
So, I think we should add shrink_usage now and drop this is a way to go.
I think I can prepare patch soon. But I'd like to push handle-swap-cache patch
before introducing shrink_usage.
Then, posting following 2 patch for this week is my current intention.
[1/2] handle swap cache
[2/2] shrink_usage patch (instead of this patch)
Objection ?
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/