RFC Zoned VM stats
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Frameworkinclude/ include/ include/ +2 more | +141 | 9 replies | |
| 2/6 | Make nr_mapped a per zone counterdrivers/ fs/ include/ +4 more | +12 | 0 replies | |
| 3/6 | Make nr_pagecache a per zone counterarch/ arch/ fs/ +6 more | +9 | 6 replies | |
| 4/6 | Expanded node and zone statisticsdrivers/ mm/ | +14 | 0 replies | |
| 5/6 | Make nr_slab a per zone counterdrivers/ fs/ include/ +3 more | +9 | 0 replies | |
| 6/6 | Make nr_pagecache a per zone counterdrivers/ fs/ include/ +3 more | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/6] 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 patchset currently consists of 6 pieces.
1. Framwork
Implements counter functionality but does not define any. Contains atomic_long_t hack.
2. nr_mapped
Make nr_mapped a zone based counter.
3. nr_pagecache
Make nr_pagecache a zone based counter.
4. Extend /proc output
Output the complete information contained in the global and zone statistics array to /proc files.
5. nr_slab
Convert nr_slab a zone to NR_SLAB.
6. nr_page_table_pages
Convert nr_page_table_pages to NR_PAGETABLE
--
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>