Re: [patch v2] mm, vmstat: print non-populated zones in zoneinfo

From: David Rientjes
Date: Fri Mar 17 2017 - 17:21:24 EST


On Fri, 17 Mar 2017, Michal Hocko wrote:

> > Does it really make sense to print any counters of that zone though?
> > Your follow up patch just suggests that we don't want some but what
> > about others?
> >

Managed and present pages needs to be emitted for userspace parsing of
memory hotplug, I chose not to suppress the five or six other members
since the risk of breaking existing parsers far outweighs any savings from
not emitting these lines. There is already plenty of opportunities to
clean /proc/zoneinfo up as described by Andrew that may be possible but
care needs to taken to ensure we don't break existing readers.