[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dcd1cb4c-89dc-856b-ea1b-8d4930fec3eb@intel.com>
Date: Wed, 19 Feb 2020 11:13:21 -0800
From: Dave Hansen <dave.hansen@...el.com>
To: Sultan Alsawaf <sultan@...neltoast.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: Stop kswapd early when nothing's waiting for it to
free pages
On 2/19/20 10:25 AM, Sultan Alsawaf wrote:
> Keeping kswapd running when all the failed allocations that invoked it
> are satisfied incurs a high overhead due to unnecessary page eviction
> and writeback, as well as spurious VM pressure events to various
> registered shrinkers. When kswapd doesn't need to work to make an
> allocation succeed anymore, stop it prematurely to save resources.
But kswapd isn't just to provide memory to waiters. It also serves to
get free memory back up to the high watermark. This seems like it might
result in more frequent allocation stalls and kswapd wakeups, which
consumes extra resources.
I guess I'd wonder what positive effects you have observed as a result
of this patch and whether you've gone looking for any negative effects.
Powered by blists - more mailing lists