Re: [PATCH v7 5/5] mm/page_alloc: reuse tail struct pages for compound devmaps

2022-03-04 Thread Joao Martins
On 3/4/22 03:27, Muchun Song wrote: > On Fri, Mar 4, 2022 at 5:33 AM Joao Martins wrote: >> >> Currently memmap_init_zone_device() ends up initializing 32768 pages >> when it only needs to initialize 128 given tail page reuse. That >> number is worse with 1GB compound pages, 262144 instead of 128.

Re: [PATCH v7 5/5] mm/page_alloc: reuse tail struct pages for compound devmaps

2022-03-03 Thread Muchun Song
On Fri, Mar 4, 2022 at 5:33 AM Joao Martins wrote: > > Currently memmap_init_zone_device() ends up initializing 32768 pages > when it only needs to initialize 128 given tail page reuse. That > number is worse with 1GB compound pages, 262144 instead of 128. Update > memmap_init_zone_device() to ski

[PATCH v7 5/5] mm/page_alloc: reuse tail struct pages for compound devmaps

2022-03-03 Thread Joao Martins
Currently memmap_init_zone_device() ends up initializing 32768 pages when it only needs to initialize 128 given tail page reuse. That number is worse with 1GB compound pages, 262144 instead of 128. Update memmap_init_zone_device() to skip redundant initialization, detailed below. When a pgmap @vme