All of lore.kernel.org
 help / color / mirror / Atom feed
* [Experimental] [PATCH 0/5] page_cgroup->flags diet.
@ 2011-12-15  6:00 KAMEZAWA Hiroyuki
  2011-12-15  6:05 ` [RFC] [PATCH 1/5] memcg: simplify account moving check KAMEZAWA Hiroyuki
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: KAMEZAWA Hiroyuki @ 2011-12-15  6:00 UTC (permalink / raw)
  To: linux-mm@kvack.org
  Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, Michal Hocko,
	Balbir Singh, Hugh Dickins, Ying Han, nishimura@mxp.nes.nec.co.jp

For reducing size of page_cgroup, we need to reduce flags.

This patch is a trial to remove flags based on

linux-next + 
memcg-add-mem_cgroup_replace_page_cache-to-fix-lru-issue.patch +
4 patches for 'simplify LRU handling' I posted.

So, I don't ask anyone to test this but want to hear another idea
or comments on implemenation.

After this patch series, page_cgroup flags are 

enum {
        /* flags for mem_cgroup */
        PCG_LOCK,  /* Lock for pc->mem_cgroup and following bits. */
        PCG_USED, /* this object is in use. */
        PCG_MIGRATION, /* under page migration */
        __NR_PCG_FLAGS,
};

3bits. I thought I could remove PCG_MIGRATION ....but failed.

BTW, because of kmalloc()'s alignment, low 3bits of pc->mem_cgroup must be 0.
So, we can move these flags to low bits in pc->mem_cgroup...I guess.

(But in another thoughts, we need to track blkio per page finally. So, I'm
 not sure whether we can remove page_cgroup at the end.)

Anyway, I dump a current trial series. Please comment when you have time.
I'm not in hurry and will not be able to make a quick response.

Thanks,
-Kame


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-15 14:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15  6:00 [Experimental] [PATCH 0/5] page_cgroup->flags diet KAMEZAWA Hiroyuki
2011-12-15  6:05 ` [RFC] [PATCH 1/5] memcg: simplify account moving check KAMEZAWA Hiroyuki
2011-12-15 10:04   ` Johannes Weiner
2011-12-15 10:17     ` KAMEZAWA Hiroyuki
2011-12-15  6:06 ` [RFC][PATCH 2/5] memcg: safer page stat updating KAMEZAWA Hiroyuki
2011-12-15  6:07 ` [RFC][PATCH 3/5] memcg: remove PCG_FILE_MAPPED KAMEZAWA Hiroyuki
2011-12-15  6:08 ` [RFC][PATCH 4/5] memcg: remove PCG_CACHE bit KAMEZAWA Hiroyuki
2011-12-15 10:24   ` Johannes Weiner
2011-12-15 10:36     ` KAMEZAWA Hiroyuki
2011-12-15 12:04       ` KAMEZAWA Hiroyuki
2011-12-15 14:54         ` Johannes Weiner
2011-12-15  6:10 ` [RFC] [PATCH 5/5] memcg: remove PCG_MOVE_LOCK KAMEZAWA Hiroyuki
2011-12-15  8:44 ` [Experimental] [PATCH 0/5] page_cgroup->flags diet KAMEZAWA Hiroyuki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.