Re: zoned VM stats: Add NR_ANON

Christoph Lameter
2006-06-10T04:52:46Z

On Sat, 10 Jun 2006, KAMEZAWA Hiroyuki wrote:

> Can this accounting catch page migration ? TBD ?
> Now all coutners are counted per zone, migration should be cared.

Page migration removes the reverse mapping for the old page and installs
the mappings to the new page later. This means that the counters are taken
care of.

try_to_unmap_one removes the mapping and decrements the zone counter.

remove_migration_pte adds the mapping to the new page and increments the
relevant zone counter.