Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-08 Thread Glauber Costa
On 04/07/2013 12:44 PM, Li Zefan wrote: > Hi, > > I'm rebasing this patchset against latest linux-next, and it conflicts with > "[PATCH v2] memcg: debugging facility to access dangling memcgs." slightly. > > That is a debugging patch and will never be pushed into mainline, so should I > still

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-08 Thread Glauber Costa
On 04/07/2013 12:44 PM, Li Zefan wrote: Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with [PATCH v2] memcg: debugging facility to access dangling memcgs. slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 14:00:24, Li Zefan wrote: > On 2013/4/4 20:00, Michal Hocko wrote: > > On Wed 03-04-13 17:11:15, Li Zefan wrote: > >> (I'll be off from my office soon, and I won't be responsive in the > >> following > >> 3 days.) > >> > >> I'm working on converting memcg to use cgroup->id, and

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 16:44:07, Li Zefan wrote: > Hi, > > I'm rebasing this patchset against latest linux-next, and it conflicts with > "[PATCH v2] memcg: debugging facility to access dangling memcgs." slightly. > > That is a debugging patch and will never be pushed into mainline, so should I > still

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with "[PATCH v2] memcg: debugging facility to access dangling memcgs." slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this patchset on that debugging patch? Also that

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
On 2013/4/4 20:00, Michal Hocko wrote: > On Wed 03-04-13 17:11:15, Li Zefan wrote: >> (I'll be off from my office soon, and I won't be responsive in the following >> 3 days.) >> >> I'm working on converting memcg to use cgroup->id, and then we can kill >> css_id. >> >> Now memcg has its own

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
On 2013/4/4 20:00, Michal Hocko wrote: On Wed 03-04-13 17:11:15, Li Zefan wrote: (I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with [PATCH v2] memcg: debugging facility to access dangling memcgs. slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this patchset on that debugging patch? Also that

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 16:44:07, Li Zefan wrote: Hi, I'm rebasing this patchset against latest linux-next, and it conflicts with [PATCH v2] memcg: debugging facility to access dangling memcgs. slightly. That is a debugging patch and will never be pushed into mainline, so should I still base this

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 14:00:24, Li Zefan wrote: On 2013/4/4 20:00, Michal Hocko wrote: On Wed 03-04-13 17:11:15, Li Zefan wrote: (I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-04 Thread Michal Hocko
On Wed 03-04-13 17:11:15, Li Zefan wrote: > (I'll be off from my office soon, and I won't be responsive in the following > 3 days.) > > I'm working on converting memcg to use cgroup->id, and then we can kill > css_id. > > Now memcg has its own refcnt, so when a cgroup is destroyed, the memcg

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-04 Thread Michal Hocko
On Wed 03-04-13 17:11:15, Li Zefan wrote: (I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a cgroup is destroyed, the memcg can still

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Tejun Heo
On Wed, Apr 03, 2013 at 05:11:15PM +0800, Li Zefan wrote: > (I'll be off from my office soon, and I won't be responsive in the following > 3 days.) > > I'm working on converting memcg to use cgroup->id, and then we can kill > css_id. > > Now memcg has its own refcnt, so when a cgroup is

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Glauber Costa
On 04/03/2013 01:11 PM, Li Zefan wrote: > The historical reason that memcg didn't use css_get in some cases, is that > cgroup couldn't be removed if there're still css refs. The situation has > changed so that rmdir a cgroup will succeed regardless css refs, but won't > be freed until css refs

[RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Li Zefan
(I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup->id, and then we can kill css_id. Now memcg has its own refcnt, so when a cgroup is destroyed, the memcg can still be alive. This patchset converts memcg to always

[RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Li Zefan
(I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a cgroup is destroyed, the memcg can still be alive. This patchset converts memcg to always

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Glauber Costa
On 04/03/2013 01:11 PM, Li Zefan wrote: The historical reason that memcg didn't use css_get in some cases, is that cgroup couldn't be removed if there're still css refs. The situation has changed so that rmdir a cgroup will succeed regardless css refs, but won't be freed until css refs goes

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Tejun Heo
On Wed, Apr 03, 2013 at 05:11:15PM +0800, Li Zefan wrote: (I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a cgroup is destroyed, the