|| ||Christoph Lameter <firstname.lastname@example.org>|
|| ||[RFC 0/6] Zoned VM stats|
|| ||Fri, 9 Dec 2005 16:54:40 -0800 (PST)|
|| ||Hugh Dickins <email@example.com>,
Nick Piggin <firstname.lastname@example.org>, email@example.com,
Andi Kleen <firstname.lastname@example.org>,
Marcelo Tosatti <email@example.com>,
Christoph Lameter <firstname.lastname@example.org>|
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.
Implements counter functionality but does not define any. Contains atomic_long_t hack.
Make nr_mapped a zone based counter.
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.
Convert nr_slab a zone to NR_SLAB.
Convert nr_page_table_pages to NR_PAGETABLE