Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a834fd7f authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by KakatkarAkshay
Browse files

mm: Stop kswapd early when nothing's waiting for it to free pages



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.

Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
[kdrag0n: Forward-ported from 4.14 to 4.19]
Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
parent a4ca3621
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment