[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3e4635bb-7c16-151a-d8ed-27742f0ae673@redhat.com>
Date: Tue, 31 May 2022 19:25:11 +0200
From: David Hildenbrand <david@...hat.com>
To: Mike Kravetz <mike.kravetz@...cle.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: Muchun Song <songmuchun@...edance.com>,
Michal Hocko <mhocko@...e.com>, Peter Xu <peterx@...hat.com>,
Naoya Horiguchi <naoya.horiguchi@...ux.dev>,
James Houghton <jthoughton@...gle.com>,
Mina Almasry <almasrymina@...gle.com>,
"Aneesh Kumar K . V" <aneesh.kumar@...ux.vnet.ibm.com>,
Anshuman Khandual <anshuman.khandual@....com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [RFC PATCH 3/3] hugetlb: Lazy page table copies in fork()
On 28.05.22 00:58, Mike Kravetz wrote:
> Lazy page table copying at fork time was introduced with commit
> d992895ba2b2 ("Lazy page table copies in fork()"). At the time,
> hugetlb was very new and did not support page faulting. As a result,
> it was excluded. When full page fault support was added for hugetlb,
> the exclusion was not removed.
>
> Simply remove the check that prevents lazy copying of hugetlb page
> tables at fork. Of course, like other mappings this only applies to
> shared mappings.
>
> Lazy page table copying at fork will be less advantageous for hugetlb
> mappings because:
> - There are fewer page table entries with hugetlb
> - hugetlb pmds can be shared instead of copied
>
> In any case, completely eliminating the copy at fork time shold speed
> things up.
+ make hugetlb less special, at least a tiny little bit
Acked-by: David Hildenbrand <david@...hat.com>
--
Thanks,
David / dhildenb
Powered by blists - more mailing lists