Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1559027

Re: [PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE

From Johannes Weiner <hannes@cmpxchg.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE
Date 2017-01-14 17:40 +0100
Message-ID <sZzwZ-8bu-11@gated-at.bofh.it> (permalink)
References <sYUWR-tD-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jan 12, 2017 at 10:12:21PM +0100, Michal Hocko wrote:
> From: Michal Hocko <mhocko@suse.com>
> 
> PGDEACTIVATE represents the number of pages moved from the active list
> to the inactive list. At least this sounds like the original motivation
> of the counter. move_active_pages_to_lru, however, counts pages which
> got freed in the mean time as deactivated as well. This is a very rare
> event and counting them as deactivation in itself is not harmful but it
> makes the code more convoluted than necessary - we have to count both
> all pages and those which are freed which is a bit confusing.
> 
> After this patch the PGDEACTIVATE should have a slightly more clear
> semantic and only count those pages which are moved from the active to
> the inactive list which is a plus.
> 
> Suggested-by: Vlastimil Babka <vbabka@suse.cz>
> Signed-off-by: Michal Hocko <mhocko@suse.com>

I bet it's a small inaccuracy in practice, but now that the trace
patches added a proper counter, might as well consolidate into the
correct one.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE Michal Hocko <mhocko@kernel.org> - 2017-01-12 22:20 +0100
  Re: [PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE Vlastimil Babka <vbabka@suse.cz> - 2017-01-13 11:00 +0100
  Re: [PATCH] mm, vmscan: do not count freed pages as PGDEACTIVATE Johannes Weiner <hannes@cmpxchg.org> - 2017-01-14 17:40 +0100

csiph-web