VM pageout scalability improvements (V5)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 5 repliesIn review
Changelog from the cover letter · 24 lines
- make page_alloc.c compile without CONFIG_NORECLAIM_MLOCK (minchan Kim)
- BUG() does not take an argument (minchan Kim)
- clean up is_active_lru and is_file_lru (Andy Whitcroft)
- clean up shrink_active_list temp list names (KOSAKI Motohiro)
- add total active & inactive memory totals for vmstat -a (KOSAKI Motohiro)
- only try global anon page aging on global lru scans (KOSAKI Motohiro)
- make function descriptions follow the kernel-doc format (Rik van Riel)
- simplify mlock_vma_pages_range and munlock_vma_pages_range (Lee Schermerhorn)
- remove some more arguments, rename to mlock_vma_pages_all (Lee Schermerhorn)
- many code cleanups (Lee Schermerhorn)
- pass correct vma arg to mlock_vma_pages_range from do_brk (Rik van Riel)
- port to 2.6.25-rc3-mm1
- pull the memcontrol lru arrayification earlier into the patch series
- use a pagevec array similar to the lru array
- clean up the code in various places
- improved pageout balancing and reduced pageout cpu use
- fix compilation on PPC and without memcontrol
- make page_is_pagecache more readable
- replace get_scan_ratio with correct version
- merge memcontroller split LRU code into the main split LRU patch, since it is not functionally different (it was split up only to help people who had seen the last version of the patch series review it)
- drop the page_file_cache debugging patch, since it never triggered
- reintroduce code to not scan anon list if swap is full
- add code to scan anon list if page cache is very small already
- use lumpy reclaim more aggressively for smaller order > 1 allocations
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | move isolate_lru_page() to vmscan.cinclude/ mm/ mm/ +2 more | +57 | 0 replies | |
| 2/20 | Use an indexed array for LRU variablesinclude/ include/ include/ +5 more | +146 | 1 reply | |
| 3/20 | use an array for the LRU pagevecsinclude/ include/ include/ +2 more | +83 | 0 replies | |
| 4/20 | free swap space on swap-in/activationinclude/ mm/ mm/ | +26 | 0 replies | |
| 5/20 | define page_file_cache() functioninclude/ include/ mm/ +4 more | +40 | 0 replies | |
| 6/20 | split LRU lists into anon & file setsdrivers/ fs/ fs/ +19 more | +481 | 0 replies | |
| 7/20 | SEQ replacement for anonymous pagesinclude/ include/ mm/ +2 more | +91 | 0 replies | |
| 8/20 | add some sanity checks to get_scan_ratioinclude/ mm/ mm/ +1 more | +86 | 0 replies | |
| 9/20 | add newly swapped in pages to the inactive listmm/ | +1 | 0 replies | |
| 10/20 | more aggressively use lumpy reclaimmm/ | +16 | 0 replies | |
| 11/20 | No Reclaim LRU Infrastructureinclude/ include/ include/ +8 more | +258 | 2 replies | |
| 12/20 | Non-reclaimable page statisticsdrivers/ fs/ mm/ +1 more | +30 | 0 replies | |
| 13/20 | scan noreclaim list for reclaimable pagesdrivers/ include/ kernel/ +1 more | +170 | 0 replies | |
| 14/20 | ramfs pages are non-reclaimabledrivers/ fs/ include/ +1 more | +41 | 0 replies | |
| 15/20 | SHM_LOCKED pages are nonreclaimableinclude/ include/ mm/ +1 more | +104 | 0 replies | |
| 16/20 | non-reclaimable mlocked pagesinclude/ include/ mm/ +7 more | +517 | 2 replies | |
| 17/20 | mlock vma pages under mmap_sem held for readmm/ mm/ mm/ | +67 | 0 replies | |
| 18/20 | handle mlocked pages during map/unmap and truncatemm/ mm/ mm/ +2 more | +55 | 0 replies | |
| 19/20 | account mlocked pagesdrivers/ fs/ include/ +3 more | +55 | 0 replies | |
| 20/20 | cull non-reclaimable anon pages from the LRU at fault timemm/ mm/ | +9 | 0 replies |
Reviews trailers per patch
1 of 20 patches has a Reviewed-by or Acked-by.
| Patch | KOSAKI Motohiro |
|---|---|
| 1/20 | |
| 2/20 | |
| 3/20 | |
| 4/20 | |
| 5/20 | |
| 6/20 | |
| 7/20 | R-b |
| 8/20 | |
| 9/20 | |
| 10/20 | |
| 11/20 | |
| 12/20 | |
| 13/20 | |
| 14/20 | |
| 15/20 | |
| 16/20 | |
| 17/20 | |
| 18/20 | |
| 19/20 | |
| 20/20 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch 00/20] VM pageout scalability improvements (V5)
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.25-rc3-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
More info on the overall design can be found at:
http://linux-mm.org/PageReplacementDesign
An all-in-one patch can be found at:
http://people.redhat.com/riel/splitvm/
Changelog:
- make page_alloc.c compile without CONFIG_NORECLAIM_MLOCK (minchan Kim)
- BUG() does not take an argument (minchan Kim)
- clean up is_active_lru and is_file_lru (Andy Whitcroft)
- clean up shrink_active_list temp list names (KOSAKI Motohiro)
- add total active & inactive memory totals for vmstat -a (KOSAKI Motohiro)
- only try global anon page aging on global lru scans (KOSAKI Motohiro)
- make function descriptions follow the kernel-doc format (Rik van Riel)
- simplify mlock_vma_pages_range and munlock_vma_pages_range (Lee Schermerhorn)
- remove some more arguments, rename to mlock_vma_pages_all (Lee Schermerhorn)
- many code cleanups (Lee Schermerhorn)
- pass correct vma arg to mlock_vma_pages_range from do_brk (Rik van Riel)
- port to 2.6.25-rc3-mm1
- pull the memcontrol lru arrayification earlier into the patch series
- use a pagevec array similar to the lru array
- clean up the code in various places
- improved pageout balancing and reduced pageout cpu use
- fix compilation on PPC and without memcontrol
- make page_is_pagecache more readable
- replace get_scan_ratio with correct version
- merge memcontroller split LRU code into the main split LRU patch, since it is not functionally different (it was split up only to help people who had seen the last version of the patch series review it)
- drop the page_file_cache debugging patch, since it never triggered
- reintroduce code to not scan anon list if swap is full
- add code to scan anon list if page cache is very small already
- use lumpy reclaim more aggressively for smaller order > 1 allocations
Signature · 7 lines
All Rights Reversed -- 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>