Zoned VM stats
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | Add some consts for inlines in mm.hinclude/ | +10 | 0 replies | |
| 2/14 | Basic counter functionalityinclude/ include/ include/ +2 more | +335 | 0 replies | |
| 3/14 | Convert nr_mappeddrivers/ fs/ include/ +6 more | +14 | 0 replies | |
| 4/14 | Convert nr_pagecachearch/ arch/ fs/ +7 more | +11 | 0 replies | |
| 5/14 | Resurrect scan_control.may_swapmm/ | +7 | 0 replies | |
| 6/14 | Zone Reclaiminclude/ include/ mm/ +1 more | +85 | 0 replies | |
| 7/14 | Expanded node and zone statisticsdrivers/ mm/ | +14 | 0 replies | |
| 8/14 | Convert nr_slabdrivers/ fs/ include/ +4 more | +10 | 0 replies | |
| 9/14 | Convert nr_page_tabledrivers/ fs/ include/ +3 more | +8 | 0 replies | |
| 10/14 | Convert nr_dirtyarch/ drivers/ fs/ +12 more | +22 | 0 replies | |
| 11/14 | Convert nr_writebackarch/ drivers/ fs/ +5 more | +13 | 0 replies | |
| 12/14 | Convert nr_unstablefs/ fs/ include/ +4 more | +11 | 0 replies | |
| 13/14 | Remove get_page_state functionsarch/ drivers/ fs/ +3 more | +0 | 0 replies | |
| 14/14 | Remove wbsmm/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC3 00/14] Zoned VM stats
Zone based VM statistics are necessary to be able to determine what the state of memory in one zone is. In a NUMA system this can be helpful to do local reclaim and other memory optimizations by shifting VM load to optimize page allocation. It is also helpful to know how the computing load affects the memory allocations on various zones.
The patchset introduces a framework for counters that is a cross between the existing page_stats --which are simply global counters split per cpu-- and the approach of deferred incremental updates implemented for nr_pagecache.
Small per cpu 8 bit counters are introduced in struct zone. If counting exceeds certain threshold then the counters are accumulated in an array in the zone of the page and in a global array. This means that access to VM counter information for a zone and for the whole machine is possible by simply indexing an array. [Thanks to Nick Piggin for pointing me at that approach].
The new statistics are then used to realize zone reclaim.
Patchset is against 2.6.15-rc5-mm2. The patches after zone reclaim are optional.
This is expanding and I hope its complete. But I have not tested it in UP and SMP yet. There may be yet unforeseen consequences to the changes to various counters.
1 Add some consts for inlines in mm.h
2 Basic counter functionality
3 Convert nr_mapped
4 Convert nr_pagecache
5 Resurrect scan_control.may_swap
6 Zone Reclaim
7 Expanded node and zone statistics
8 Convert nr_slab
9 Convert nr_page_table
10 Convert nr_dirty
11 Convert nr_writeback
12 Convert nr_unstable
13 Remove get_page_state functions
14 Remove wbs