Skip to content

maps3: pagemap monitoring v3

Matt Mackall lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 27 repliesIn review

Changes in this series from the cover letter

- headers gone again (as recommended by Dave Hansen and Alan Cox)
- 64-bit entries (as per discussion with Andi Kleen)
- swap pte information exported (from Dave Hansen)
- page walker callback for holes (from Dave Hansen)
- direct put_user I/O (as suggested by Rusty Russell)
- split kpagemap into kpagecount and kpageflags

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11maps3: add proportional set size accounting in smapsfs/proc/task_mmu.c+28 -13 replies
2/11maps3: introduce task_size_of for all archesinclude/asm-ia64/processor.h include/asm-mips/processor.h include/asm-parisc/processor.h +3 more+17 -35 replies
3/11maps3: move is_swap_pteinclude/linux/swapops.h mm/migrate.c+6 -50 replies
4/11maps3: introduce a generic page walkerinclude/linux/mm.h mm/Makefile mm/pagewalk.c+132 -15 replies
5/11maps3: use pagewalker in clear_refs and smapsfs/proc/task_mmu.c+17 -781 reply
6/11maps3: simplify interdependence of maps and smapsfs/proc/task_mmu.c+26 -260 replies
7/11maps3: move clear_refs code to task_mmu.cfs/proc/base.c fs/proc/internal.h fs/proc/task_mmu.c +1 more+37 -501 reply
8/11maps3: regroup task_mmu by interfacefs/proc/task_mmu.c+206 -2050 replies
9/11maps3: add /proc/pid/pagemap interfacefs/proc/base.c fs/proc/internal.h fs/proc/task_mmu.c+204 -20 replies
10/11maps3: add /proc/kpagecount and /proc/kpageflags interfacesfs/proc/proc_misc.c+103 -07 replies
11/11maps3: make page monitoring /proc file optionalfs/proc/base.c fs/proc/proc_misc.c fs/proc/task_mmu.c +2 more+19 -35 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchDavid Rientjes
1/11
2/11A-b
3/11
4/11
5/11A-b
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/11] maps3: pagemap monitoring v3

This patchset is version 3 of my /proc/pid/pagemaps code.

Rather than submit about 30 incremental patches atop an existing 20 or so where many of the intermediate states are broken and get undone anyway, I've respun this as a much smaller set of 11 patches.

Changes in this series:

- headers gone again (as recommended by Dave Hansen and Alan Cox)
- 64-bit entries (as per discussion with Andi Kleen)
- swap pte information exported (from Dave Hansen)
- page walker callback for holes (from Dave Hansen)
- direct put_user I/O (as suggested by Rusty Russell)
- split kpagemap into kpagecount and kpageflags

I've dropped one cleanup patch from Rusty from the current series, mmaps2-vma-out-of-mem_size_stats.patch, which I didn't find to be an improvement.

Andrew, please replace the current maps2* patches with this set at your convenience. I've included the above change list in the relevant patches.