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


Groups > linux.kernel > #1430522

Re: [PATCH] mm, vmscan: Make kswapd reclaim no more than needed

From Mel Gorman <mgorman@techsingularity.net>
Newsgroups linux.kernel
Subject Re: [PATCH] mm, vmscan: Make kswapd reclaim no more than needed
Date 2016-06-24 11:40 +0200
Message-ID <rNvKF-6jN-1@gated-at.bofh.it> (permalink)
References <rNvhF-6a1-67@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jun 24, 2016 at 04:59:55PM +0800, Hillf Danton wrote:
> We stop reclaiming pages if any eligible zone is balanced.
> 
> Signed-off-by: Hillf Danton <hillf.zj@alibaba-inc.com>

wakeup_kswapd avoids waking kswapd in the first place if there are balanced
zones. The current code will do at least one reclaim pass if the situation
changes between the wakeup request and kswapd actually waking so some
progress will be made. The risk for strict enforcement is that small low
zones like DMA will be quickly generally balanced but only for very short
periods of time and kswapd will fall behind. It *shouldn't* matter as
the pages allocated from DMA will remain resident until the full node
LRU cycles through but it's a possibility.

I'll test the patch and make sure kswapd still reclaims at the correct
rate. Did you this test yourself with any reclaim intensive workload to
see if kswapd fell behind forcing more stalls in direct reclaim?

-- 
Mel Gorman
SUSE Labs

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


Thread

[PATCH] mm, vmscan: Make kswapd reclaim no more than needed "Hillf Danton" <hillf.zj@alibaba-inc.com> - 2016-06-24 11:10 +0200
  Re: [PATCH] mm, vmscan: Make kswapd reclaim no more than needed Mel Gorman <mgorman@techsingularity.net> - 2016-06-24 11:40 +0200

csiph-web