Re: [RFC] [PATCH] cgroup: add "procs" control file

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Li Zefan <lizf@...>
Cc: Paul Menage <menage@...>, LKML <linux-kernel@...>, Linux Containers <containers@...>, Andrew Morton <akpm@...>, Balbir Singh <balbir@...>, Paul Jackson <pj@...>
Date: Wednesday, June 18, 2008 - 8:14 pm

On Wed, 18 Jun 2008 16:02:25 +0800
Li Zefan <lizf@cn.fujitsu.com> wrote:

I think this feature make sense. But not meets a theory that cgroup handles
a thread not a process. So, how about changing the definition of this interface
from
  - showing procs
to
  - showing threads which is thread-group-leader.

One possible problem is a case that thread-group-leader exits while other
members are alive. In such case, thread-group-leader calls cgroup_exit()
but will be still alive until all sub-threads exit. So, this interface
cannot show correct information. 
(right ??? please point out if I miss something)

So, how about this kind of interface ? showing both of TID and PID.

%/cat/procs
TID  PID
1001 1001
1234 1001
3856 1001
728  728
....
....

nonsense ?

Thanks,
-Kame





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

Messages in current thread:
[RFC] [PATCH] cgroup: add "procs" control file, Li Zefan, (Wed Jun 18, 4:02 am)
Re: [RFC] [PATCH] cgroup: add "procs" control file, Paul Menage, (Fri Jun 20, 1:37 am)
Re: [RFC] [PATCH] cgroup: add "procs" control file, KAMEZAWA Hiroyuki, (Wed Jun 18, 8:14 pm)
Re: [RFC] [PATCH] cgroup: add "procs" control file, Balbir Singh, (Fri Jun 20, 10:19 am)
Re: [RFC] [PATCH] cgroup: add "procs" control file, Li Zefan, (Wed Jun 18, 11:07 pm)
Re: [RFC] [PATCH] cgroup: add "procs" control file, KAMEZAWA Hiroyuki, (Wed Jun 18, 11:17 pm)