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


Groups > linux.kernel > #1428908

Re: [PATCH 08/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps

From Vlastimil Babka <vbabka@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH 08/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps
Date 2016-06-22 17:40 +0200
Message-ID <rMSpX-5fh-13@gated-at.bofh.it> (permalink)
References <rMuGZ-6Vn-3@gated-at.bofh.it> <rMuGZ-6Vn-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/21/2016 04:15 PM, Mel Gorman wrote:
> kswapd goes through some complex steps trying to figure out if it
> should stay awake based on the classzone_idx and the requested order.
> It is unnecessarily complex and passes in an invalid classzone_idx to
> balance_pgdat().  What matters most of all is whether a larger order has
> been requsted and whether kswapd successfully reclaimed at the previous
> order. This patch irons out the logic to check just that and the end result
> is less headache inducing.
>
> Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
> Acked-by: Johannes Weiner <hannes@cmpxchg.org>

Acked-by: Vlastimil Babka <vbabka@suse.cz>

I'm just not entirely convinced that the direct full sleep bypass is worth the 
added complexity. I can even imagine it being counter productive in some 
situations. But it's not a big issue.

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


Thread

[PATCH 08/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps Mel Gorman <mgorman@techsingularity.net> - 2016-06-21 16:20 +0200
  Re: [PATCH 08/27] mm, vmscan: Simplify the logic deciding whether  kswapd sleeps Vlastimil Babka <vbabka@suse.cz> - 2016-06-22 17:40 +0200

csiph-web