| From: |
| KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> |
| To: |
| "linux-mm@kvack.org" <linux-mm@kvack.org> |
| Subject: |
| [RFC] [PATCH 0/6 v3] memcg: page cgroup diet |
| Date: |
| Mon, 6 Feb 2012 19:06:27 +0900 |
| Message-ID: |
| <20120206190627.7313ff82.kamezawa.hiroyu@jp.fujitsu.com> |
| Cc: |
| "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"hannes@cmpxchg.org" <hannes@cmpxchg.org>,
Michal Hocko <mhocko@suse.cz>, Ying Han <yinghan@google.com>,
Hugh Dickins <hughd@google.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org> |
| Archive-link: |
| Article, Thread
|
Here is my page_cgroup diet series v3. Since v2, "remove PCG_CACHE" is alread
merged.
This series changes page-stat-accounting per memcg
from:
if (change page's state)
mem_cgroup_update_page_state()
to:
mem_cgroup_begin_update_page_state()
if (change page's state)
mem_cgroup_update_page_state()
mem_cgroup_end_update_page_state()
(see patch 4 for details.) This allows us not to duplicate page struct's
information in page_cgroup's flag field.
Because above sequence adds 2 extra calls to hot-path, performance will be problem.
Patch 6 is a fix for performance, and I don't see performance regression in my
small test. (see patch 6 for details.)
Thanks,
-Kame
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/