Skip to content

RFC Move mlocked pages off the LRU and track them

Christoph Lameter linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Make try_to_unmap return a special exit codeinclude/linux/rmap.h mm/rmap.c mm/vmscan.c+17 -60 replies
2/7Add PageMlocked() page state bit and lru infrastructureinclude/linux/page-flags.h include/linux/pagevec.h include/linux/swap.h +1 more+59 -00 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+35 -20 replies
5/7Consolidate new anonymous page code pathsmm/memory.c+15 -80 replies
6/7Avoid putting new mlocked anonymous pages on LRUmm/memory.c+9 -10 replies
7/7Opportunistically move mlocked pages off the LRUmm/memory.c+28 -00 replies

Reviews trailers per patch

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

Read the v1 thread

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

[RFC] Remove mlocked pages from the LRU and track them

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

Known problems to be resolved:
- Page state bit used to mark a page mlocked is not available on i386 with NUMA.
- Note tested on SMP, UP. Need to catch a plane in 2 hours.

Tested on:
IA64 NUMA 12p

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