Re: [PATCH 2/4] arm64/hugetlb: Implement arm64 specific hugetlb_mask_last_page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
- Subject: Re: [PATCH 2/4] arm64/hugetlb: Implement arm64 specific hugetlb_mask_last_page
- From: Muchun Song <songmuchun@xxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2022 16:26:23 +0800
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, Peter Xu <peterx@xxxxxxxxxx>, Naoya Horiguchi <naoya.horiguchi@xxxxxxxxx>, James Houghton <jthoughton@xxxxxxxxxx>, Mina Almasry <almasrymina@xxxxxxxxxx>, "Aneesh Kumar K . V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx>, Anshuman Khandual <anshuman.khandual@xxxxxxx>, Paul Walmsley <paul.walmsley@xxxxxxxxxx>, Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>, catalin.marinas@xxxxxxx, will@xxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
- In-reply-to: <20220616210518.125287-3-mike.kravetz@oracle.com>
- References: <20220616210518.125287-1-mike.kravetz@oracle.com> <20220616210518.125287-3-mike.kravetz@oracle.com>
On Thu, Jun 16, 2022 at 02:05:16PM -0700, Mike Kravetz wrote:
> From: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
>
> The HugeTLB address ranges are linearly scanned during fork, unmap and
> remap operations, and the linear scan can skip to the end of range mapped
> by the page table page if hitting a non-present entry, which can help
> to speed linear scanning of the HugeTLB address ranges.
>
> So hugetlb_mask_last_page() is introduced to help to update the address in
> the loop of HugeTLB linear scanning with getting the last huge page mapped
> by the associated page table page[1], when a non-present entry is encountered.
>
> Considering ARM64 specific cont-pte/pmd size HugeTLB, this patch implemented
> an ARM64 specific hugetlb_mask_last_page() to help this case.
>
> [1] https://lore.kernel.org/linux-mm/20220527225849.284839-1-mike.kravetz@xxxxxxxxxx/
>
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
Acked-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Thanks.
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]