Skip to content

RFC mm: thp: split time allocation of page table for THPs

Usama Arif linux-mm linuxppc-dev lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: thp: allocate PTE page tables lazily at split timeinclude/linux/huge_mm.h mm/huge_memory.c mm/khugepaged.c +2 more+156 -5311 replies
2/2mm: thp: add THP_SPLIT_PMD_PTE_ALLOC_FAILED counterinclude/linux/vm_event_item.h mm/huge_memory.c mm/rmap.c +1 more+6 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] mm: thp: split time allocation of page table for THPs

This is an RFC patch to allocate the PTE page table at split time only and not do pre-deposit for THPs as suggested by David [1].
The core patch is the first one. The second one is not needed and its just vmstat counters I used to show that split doesn't fail. Its going to be 0 all the time and won't include it in future revisions.

It would have been ideal if all pre-deposit code was removed but its not possible due to PowerPC. The rationale and further details are covered in the commit message of the first patch, including why the patch is safe.

[1] https://lore.kernel.org/all/[email protected]/

Usama Arif (2):
mm: thp: allocate PTE page tables lazily at split time
mm: thp: add THP_SPLIT_PMD_PTE_ALLOC_FAILED counter

 include/linux/huge_mm.h       |   4 +-
 include/linux/vm_event_item.h |   1 +
 mm/huge_memory.c              | 145 ++++++++++++++++++++++++----------
 mm/khugepaged.c               |   7 +-
 mm/migrate_device.c           |  15 ++--
 mm/rmap.c                     |  42 +++++++++-
 mm/vmstat.c                   |   1 +
 7 files changed, 162 insertions(+), 53 deletions(-)
Signature · 1 line
2.47.3