Skip to content

mm: improve pte updates and dirty/accessed

Nicholas Piggin linux-arch linux-mips linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 4 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/cow: don't bother write protecting already write-protected huge pagesmm/huge_memory.c mm/hugetlb.c+11 -50 replies
2/3mm/cow: optimise pte accessed bit handling in forkmm/huge_memory.c mm/memory.c mm/vmscan.c+5 -30 replies
3/3mm: optimise pte dirty/accessed bit setting by demand based pte insertionarch/mips/include/asm/pgtable.h include/linux/pgtable.h mm/huge_memory.c +4 more+12 -283 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/3] mm: improve pte updates and dirty/accessed

Time to get this old series out again. Since last time, Bibo found a couple of the same cases I did (for MIPS only) which I extend to all archs, and I dropped the "make the pte dirty if the fork parent was dirty" due to Linus pointing out a dirty PTE costs more to unmap. It didn't seem to help a great deal anyway on the access-side fortunately.

Thanks,
Nick

Nicholas Piggin (3):
mm/cow: don't bother write protecting already write-protected huge
pages
mm/cow: optimise pte accessed bit handling in fork
mm: optimise pte dirty/accessed bit setting by demand based pte
insertion

 arch/mips/include/asm/pgtable.h |  2 --
 include/linux/pgtable.h         | 16 ----------------
 mm/huge_memory.c                | 16 ++++++++++------
 mm/hugetlb.c                    |  2 +-
 mm/memory.c                     | 15 +++++++--------
 mm/migrate.c                    |  1 +
 mm/shmem.c                      |  1 +
 mm/userfaultfd.c                |  2 +-
 mm/vmscan.c                     |  5 +++++
 9 files changed, 26 insertions(+), 34 deletions(-)
Signature · 1 line
2.23.0