Re: [PATCH v2 13/15] mm/memory: optimize fork() with PTE-mapped THP

2024-01-29 Thread Ryan Roberts
On 25/01/2024 19:32, David Hildenbrand wrote: > Let's implement PTE batching when consecutive (present) PTEs map > consecutive pages of the same large folio, and all other PTE bits besides > the PFNs are equal. > > We will optimize folio_pte_batch() separately, to ignore selected > PTE bits. This

Re: [PATCH v2 13/15] mm/memory: optimize fork() with PTE-mapped THP

2024-01-26 Thread David Hildenbrand
On 25.01.24 20:32, David Hildenbrand wrote: Let's implement PTE batching when consecutive (present) PTEs map consecutive pages of the same large folio, and all other PTE bits besides the PFNs are equal. We will optimize folio_pte_batch() separately, to ignore selected PTE bits. This patch is bas

[PATCH v2 13/15] mm/memory: optimize fork() with PTE-mapped THP

2024-01-25 Thread David Hildenbrand
Let's implement PTE batching when consecutive (present) PTEs map consecutive pages of the same large folio, and all other PTE bits besides the PFNs are equal. We will optimize folio_pte_batch() separately, to ignore selected PTE bits. This patch is based on work by Ryan Roberts. Use __always_inli