Re: [PATCH v7 3/5] mm/hugetlb_vmemmap: move comment block to Documentation/vm

2022-03-04 Thread Jonathan Corbet
Joao Martins writes: > In preparation for device-dax for using hugetlbfs compound page tail > deduplication technique, move the comment block explanation into a > common place in Documentation/vm. > > Cc: Muchun Song > Cc: Mike Kravetz > Suggested-by: Dan Williams > Signed-off-by: Joao Martins

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 4/5] mm/sparse-vmemmap: improve memory savings for compound devmaps

2022-03-04 Thread Joao Martins
On 3/4/22 03:09, Muchun Song wrote: > On Fri, Mar 4, 2022 at 5:33 AM Joao Martins wrote: >> A compound devmap is a dev_pagemap with @vmemmap_shift > 0 and it >> means that pages are mapped at a given huge page alignment and utilize >> uses compound pages as opposed to order-0 pages. >> >> Take adv