Skip to content

mprotect() and working set sampling optimizations

Ingo Molnar linux-mm lkml 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: Count the number of pages affected in change_protection()include/linux/hugetlb.h include/linux/mm.h mm/hugetlb.c +1 more+47 -180 replies
2/3sched, numa, mm: Count WS scanning against present PTEs, not virtual memory rangeskernel/sched/fair.c+21 -160 replies
3/3mm: Optimize the TLB flush of sys_mprotect() and change_protection() usersmm/mprotect.c+4 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/3, v2] mprotect() and working set sampling optimizations

Ok, people suggested to split out the change_protection() modification into a third patch.

This series implements an mprotect() optimization that also helps improve the quality of working set scanning:

- working set scanning gets faster

- we can scan with a touched-page rate, instead of with a virtual-memory proportional rate (within limits).

This is already part of numa/core, but wanted to send it out separately as well, to get specific feedback for the mprotect() bits.

Thanks,

Ingo

---
Ingo Molnar (1):
mm: Optimize the TLB flush of sys_mprotect() and change_protection()
users

Peter Zijlstra (2):
mm: Count the number of pages affected in change_protection() sched, numa, mm: Count WS scanning against present PTEs, not virtual
memory ranges

 include/linux/hugetlb.h |  8 ++++++--
 include/linux/mm.h      |  6 +++---
 kernel/sched/fair.c     | 37 +++++++++++++++++++++----------------
 mm/hugetlb.c            | 10 ++++++++--
 mm/mprotect.c           | 46 ++++++++++++++++++++++++++++++++++------------
 5 files changed, 72 insertions(+), 35 deletions(-)
Signature · 7 lines
1.7.11.7

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>