Skip to content

attempt to map anonymous pte-mapped THPs by pmds

Xu Yu linux-mm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 3 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Use folios in the new code, as suggested by David.
- Handle folio refcount and rmap properly, as suggested by David.
- minor modification includes 1) advance vma write lock, 2) remove redundant rollback logic, 3) clear old ptes in pgtable before deposit.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/khugepaged: map RO non-exclusive pte-mapped anon THPs by pmdsmm/khugepaged.c+212 -00 replies
2/2mm/khugepaged: map exclusive anonymous pte-mapped THPs by pmdsmm/khugepaged.c+20 -30 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] attempt to map anonymous pte-mapped THPs by pmds

Result of tools/testing/selftests/mm/cow.c tests:
# [RUN] Basic COW after fork() when collapsing before fork() ok 145 No leak from parent into child
# [RUN] Basic COW after fork() when collapsing after fork() (fully shared) ok 146 No leak from parent into child
# [RUN] Basic COW after fork() when collapsing after fork() (lower shared) ok 147 No leak from parent into child
# [RUN] Basic COW after fork() when collapsing after fork() (upper shared) ok 148 No leak from parent into child

A long run (w/ CONFIG_DEBUG_VM enabled) shows no panic or memory leaks.

Changes since v2:
- Use folios in the new code, as suggested by David.
- Handle folio refcount and rmap properly, as suggested by David.
- minor modification includes 1) advance vma write lock, 2) remove redundant rollback logic, 3) clear old ptes in pgtable before deposit.

Changes since v1:
- Deal with PageAnonExclusive properly, as suggested by David.

Xu Yu (2):
mm/khugepaged: map RO non-exclusive pte-mapped anon THPs by pmds mm/khugepaged: map exclusive anonymous pte-mapped THPs by pmds

 mm/khugepaged.c | 229 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 229 insertions(+)
Signature · 1 line
2.37.1