Re: [RFC PATCH] page_cgroup: Reduce allocation overhead for page_cgroup array for CONFIG_SPARSEMEM
From: Michal Hocko <hidden>
Date: 2011-02-24 09:33:09
Also in:
lkml
From: Michal Hocko <hidden>
Date: 2011-02-24 09:33:09
Also in:
lkml
On Wed 23-02-11 10:19:22, Dave Hansen wrote:
On Wed, 2011-02-23 at 16:10 +0100, Michal Hocko wrote:quoted
We can reduce this internal fragmentation by splitting the single page_cgroup array into more arrays where each one is well kmalloc aligned. This patch implements this idea.How about using alloc_pages_exact()? These things aren't allocated often enough to really get most of the benefits of being in a slab.
Yes, you are right. alloc_pages_exact (which I wasn't aware of) is much simpler solution and it gets comparable results. I will prepare the patch for review. Thanks for pointing this out. -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- 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>