lkml.org 
[lkml]   [2022]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH 3/3] hugetlb: Lazy page table copies in fork()
From
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@redhat.com>

--
Thanks,

David / dhildenb

\
 
 \ /
  Last update: 2022-05-31 19:26    [W:0.168 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site