From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx200.postini.com [74.125.245.200]) by kanga.kvack.org (Postfix) with SMTP id B06D96B005A for ; Thu, 28 Jun 2012 14:31:50 -0400 (EDT) Received: by dakp5 with SMTP id p5so3965442dak.14 for ; Thu, 28 Jun 2012 11:31:50 -0700 (PDT) Date: Thu, 28 Jun 2012 11:31:45 -0700 From: Tejun Heo Subject: Re: memcg: cat: memory.memsw.* : Operation not supported Message-ID: <20120628183145.GE22641@google.com> References: <2a1a74bf-fbb5-4a6e-b958-44fff8debff2@zmail13.collab.prod.int.phx2.redhat.com> <34bb8049-8007-496c-8ffb-11118c587124@zmail13.collab.prod.int.phx2.redhat.com> <20120627154827.GA4420@tiehlicka.suse.cz> <20120627200926.GR15811@google.com> <20120627202430.GS15811@google.com> <4FEBD7C0.7090906@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FEBD7C0.7090906@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org List-ID: To: Kamezawa Hiroyuki Cc: David Rientjes , Michal Hocko , Zhouping Liu , linux-mm@kvack.org, Li Zefan , CAI Qian , LKML , Andrew Morton Hello, KAME. On Thu, Jun 28, 2012 at 01:04:16PM +0900, Kamezawa Hiroyuki wrote: > >I still wish it's folded into CONFIG_MEMCG and conditionalized just on > >CONFIG_SWAP tho. > > > > In old days, memsw controller was not very stable. So, we devided the config. > And, it makes size of memory for swap-device double (adds 2bytes per swapent.) > That is the problem. I see. Do you think it's now reasonable to drop the separate config option? Having memcg enabled but swap unaccounted sounds half-broken to me. > IIRC...at that time, we made decision, cgroup has no feature to > 'create files dynamically'. Then, we made it in static, decision was done > at compile time and ignores "do_swap_account". > > Now, IIUC, we have the feature. So, it's may be a time to create the file > with regard to "do_swap_account", making decision at boot time. Heh, yeah, maybe I'm confused about how it happened. Anyways, let's get it fixed. Thanks! -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org