login
Header Space

 
 

Re: [RFC][-mm] Memory controller add mm->owner

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balbir Singh <balbir@...>
Cc: <linux-mm@...>, Hugh Dickins <hugh@...>, Sudhir Kumar <skumar@...>, YAMAMOTO Takashi <yamamoto@...>, <lizf@...>, <linux-kernel@...>, <taka@...>, David Rientjes <rientjes@...>, Pavel Emelianov <xemul@...>, Andrew Morton <akpm@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Date: Monday, March 24, 2008 - 11:03 am

On Mon, Mar 24, 2008 at 7:01 AM, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

This should probably be controlled by something like a CONFIG_MM_OWNER
that's selected by any Kconfig option (mem cgroup, etc) that needs
mm->owner to be maintained.


It seems to me that the code to setup/maintain mm->owner should be
independent of the control groups, but should be part of the generic
fork/exit code.

Also, if mm->owner exits but mm is still alive (unlikely, but could
happen with weird custom threading libraries?) then we need to
reassign mm->owner to one of the other users of the mm (by looking
first in the thread group, then among the parents/siblings/children,
and then among all processes as a last resort?)


I think we still need the rcu_read_lock(), since mm->owner can move
cgroups any time.


We shouldn't need reference counting on this pointer, since the
cgroups framework won't allow a subsystem to be freed while it has any
tasks in it.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 10:01 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Li Zefan, (Mon Mar 24, 9:26 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Tue Mar 25, 11:48 am)
Re: [RFC][-mm] Memory controller add mm->owner, Paul Menage, (Mon Mar 24, 11:03 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 12:21 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Mon Mar 24, 12:34 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Mon Mar 24, 1:33 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Mon Mar 24, 1:46 pm)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Tue Mar 25, 7:41 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Wed Mar 26, 6:29 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Wed Mar 26, 7:20 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Balbir Singh, (Wed Mar 26, 7:41 am)
Re: [RFC][-mm] Memory controller add mm-&gt;owner, Paul Menage, (Wed Mar 26, 11:21 am)
speck-geostationary