Skip to content

VM pageout scalability improvements

[email protected] linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19move isolate_lru_page() to vmscan.cinclude/linux/migrate.h mm/internal.h mm/mempolicy.c +2 more+61 -420 replies
2/19free swap space on swap-in/activationinclude/linux/pagevec.h mm/swap.c mm/vmscan.c+26 -00 replies
3/19define page_file_cache() functioninclude/linux/mm_inline.h include/linux/page-flags.h mm/memory.c +4 more+38 -00 replies
4/19debugging checks for page_file_cache()include/linux/mm_inline.h mm/shmem.c+12 -20 replies
5/19Use an indexed array for LRU variablesinclude/linux/mm_inline.h include/linux/mmzone.h mm/page_alloc.c +3 more+109 -930 replies
6/19split LRU lists into anon & file setsdrivers/base/node.c fs/cifs/file.c fs/nfs/dir.c +20 more+533 -3601 reply
7/19split anon & file LRUs for memcontrol codeinclude/linux/memcontrol.h mm/memcontrol.c mm/vmscan.c+86 -1193 replies
8/19SEQ replacement for anonymous pagesinclude/linux/mm_inline.h include/linux/mmzone.h mm/page_alloc.c +2 more+92 -80 replies
9/19add newly swapped in pages to the inactive listmm/swap_state.c+1 -10 replies
10/19No Reclaim LRU Infrastructureinclude/linux/mm_inline.h include/linux/mmzone.h include/linux/page-flags.h +9 more+309 -290 replies
11/19Non-reclaimable page statisticsdrivers/base/node.c fs/proc/proc_misc.c mm/page_alloc.c +1 more+30 -10 replies
12/19scan noreclaim list for reclaimable pagesdrivers/base/node.c include/linux/swap.h kernel/sysctl.c +1 more+171 -00 replies
13/19ramfs pages are non-reclaimabledrivers/block/brd.c fs/ramfs/inode.c include/linux/pagemap.h +1 more+40 -00 replies
14/19SHM_LOCKED pages are nonreclaimableinclude/linux/pagemap.h include/linux/swap.h mm/shmem.c +1 more+99 -190 replies
15/19non-reclaimable mlocked pagesinclude/linux/page-flags.h include/linux/rmap.h mm/Kconfig +7 more+509 -440 replies
16/19mlock vma pages under mmap_sem held for readmm/internal.h mm/mlock.c+64 -120 replies
17/19handle mlocked pages during map/unmap and truncatemm/filemap.c mm/mmap.c mm/mremap.c +2 more+59 -90 replies
18/19account mlocked pagesdrivers/base/node.c fs/proc/proc_misc.c include/linux/mmzone.h +3 more+55 -130 replies
19/19cull non-reclaimable anon pages from the LRU at fault timemm/memory.c mm/swap_state.c+9 -60 replies

Reviews trailers per patch

1 of 19 patches has a Reviewed-by or Acked-by.

PatchKOSAKI Motohiro
1/19
2/19
3/19
4/19
5/19
6/19
7/19
8/19R-b
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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 00/19] VM pageout scalability improvements

On large memory systems, the VM can spend way too much time scanning through pages that it cannot (or should not) evict from memory. Not only does it use up CPU time, but it also provokes lock contention and can leave large systems under memory presure in a catatonic state.

Against 2.6.24-rc6-mm1

This patch series improves VM scalability by:

1) making the locking a little more scalable

2) putting filesystem backed, swap backed and non-reclaimable pages onto their own LRUs, so the system only scans the pages that it can/should evict from memory

3) switching to SEQ replacement for the anonymous LRUs, so the number of pages that need to be scanned when the system starts swapping is bound to a reasonable number

The noreclaim patches come verbatim from Lee Schermerhorn and Nick Piggin. I have made a few small fixes to them and left out the bits that are no longer needed with split file/anon lists.

The exception is "Scan noreclaim list for reclaimable pages", which should not be needed but could be a useful debugging tool.

Signature · 1 line
All Rights Reversed