Re: [PATCH] mm/percpu.c: use smarter memory allocation for struct pcpu_alloc_info

From: Tejun Heo
Date: Tue Oct 03 2017 - 17:05:48 EST


On Tue, Oct 03, 2017 at 04:57:44PM -0400, Nicolas Pitre wrote:
> This can be much smaller than a page on very small memory systems.
> Always rounding up the size to a page is wasteful in that case, and
> required alignment is smaller than the memblock default. Let's round
> things up to a page size only when the actual size is >= page size, and
> then it makes sense to page-align for a nicer allocation pattern.

Isn't that a temporary area which gets freed later during boot?

Thanks.

--
tejun