Skip to content

Move mlocked pages off the LRU and track them V1

Christoph Lameter linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Make try_to_unmap return a special exit codedrivers/base/node.c fs/proc/proc_misc.c include/linux/mmzone.h +11 more+177 -190 replies
2/7Add PageMlocked() page state bit and lru infrastructureinclude/linux/page-flags.h include/linux/pagevec.h include/linux/swap.h +1 more+60 -06 replies
3/7Add NR_MLOCK ZVCdrivers/base/node.c fs/proc/proc_misc.c include/linux/mmzone.h +1 more+6 -20 replies
4/7Logic to move mlocked pagesmm/memory.c mm/migrate.c mm/mlock.c +1 more+36 -24 replies
5/7Consolidate new anonymous page code pathsmm/memory.c+15 -80 replies
6/7Avoid putting new mlocked anonymous pages on LRUmm/memory.c+10 -10 replies
7/7Opportunistically move mlocked pages off the LRUmm/memory.c+33 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Move mlocked pages off the LRU and track them V1

[PATCH Remove mlocked pages from the LRU and track them V1

The patchset removes mlocked pages from the LRU and maintains a counter for the number of discovered mlocked pages.

This is a lazy scheme for accounting for mlocked pages. The pages may only be discovered to be mlocked during reclaim. However, we attempt to detect mlocked pages at various other opportune moments. So in general the mlock counter is not far off the number of actual mlocked pages in the system.

Patch against 2.6.20-git9

Changes: RFC->V1
- Fixup a series of issues: PageActive handling, page migration etc.
- Tested on SMP and UP.

Tested on:
- IA64 NUMA 12p
- x86_64 NUMA emulation
- x86_64 SMP
- x86_64 UP

--
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>