Re: [PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2013-01-09 Thread Michal Hocko
On Sat 05-01-13 18:52:12, Sha Zhengju wrote: > On Wed, Jan 2, 2013 at 8:27 PM, Michal Hocko wrote: > > On Wed 26-12-12 01:27:27, Sha Zhengju wrote: [...] > >> @@ -5396,18 +5406,70 @@ static inline void > >> mem_cgroup_lru_names_not_uptodate(void) > >> BUILD_BUG_ON(ARRAY_SIZE(mem_cgroup_lru_

Re: [PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2013-01-05 Thread Sha Zhengju
On Wed, Jan 2, 2013 at 8:27 PM, Michal Hocko wrote: > On Wed 26-12-12 01:27:27, Sha Zhengju wrote: >> From: Sha Zhengju >> >> If memcg is enabled and no non-root memcg exists, all allocated pages >> belongs to root_mem_cgroup and go through root memcg statistics routines >> which brings some over

Re: [PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2013-01-04 Thread Sha Zhengju
On Fri, Dec 28, 2012 at 9:04 AM, Kamezawa Hiroyuki wrote: > (2012/12/26 2:27), Sha Zhengju wrote: >> From: Sha Zhengju >> >> If memcg is enabled and no non-root memcg exists, all allocated pages >> belongs to root_mem_cgroup and go through root memcg statistics routines >> which brings some overh

Re: [PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2013-01-02 Thread Michal Hocko
On Wed 26-12-12 01:27:27, Sha Zhengju wrote: > From: Sha Zhengju > > If memcg is enabled and no non-root memcg exists, all allocated pages > belongs to root_mem_cgroup and go through root memcg statistics routines > which brings some overheads. So for the sake of performance, we can give > up acc

Re: [PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2012-12-27 Thread Kamezawa Hiroyuki
(2012/12/26 2:27), Sha Zhengju wrote: > From: Sha Zhengju > > If memcg is enabled and no non-root memcg exists, all allocated pages > belongs to root_mem_cgroup and go through root memcg statistics routines > which brings some overheads. So for the sake of performance, we can give > up accounting

[PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju If memcg is enabled and no non-root memcg exists, all allocated pages belongs to root_mem_cgroup and go through root memcg statistics routines which brings some overheads. So for the sake of performance, we can give up accounting stats of root memcg for MEM_CGROUP_STAT_FILE_MAPP