Messages in this thread | | | Date | Tue, 31 Aug 2010 11:14:48 +0900 | From | Daisuke Nishimura <> | Subject | Re: [PATCH 3/5] memcg: use ID instead of pointer in page_cgroup |
| |
On Wed, 25 Aug 2010 17:09:00 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > > Now, addresses of memory cgroup can be calculated by their ID without complex. > This patch relplaces pc->mem_cgroup from a pointer to a unsigned short. > On 64bit architecture, this offers us more 6bytes room per page_cgroup. > Use 2bytes for blkio-cgroup's page tracking. More 4bytes will be used for > some light-weight concurrent access. > > We may able to move this id onto flags field but ...go step by step. > > Changelog: 20100824 > - fixed comments, and typo. > Changelog: 20100811 > - using new rcu APIs, as rcu_dereference_check() etc. > Changelog: 20100804 > - added comments to page_cgroup.h > Changelog: 20100730 > - fixed some garbage added by debug code in early stage > > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
| |