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

Skip to content
Commit 3771b884 authored by Vinayak Menon's avatar Vinayak Menon Committed by Prakash Gupta
Browse files

mm: consider killable task's anon as reclaimable



zone_reclaimable_pages which is used by should_reclaim_retry to
make a decision on retrying reclaim does not consider anon pages
if swap is full. This logic works on systems which rely on OOM
to kill tasks and free up memory. But when reclaimers like
android lowmemorykiller is used, reclaim should retry enough so
that lowmemorykiller is invoked via shrinkers, thus avoiding OOM.
This fixes the premature order 0 OOM killer invocations observed
when swap is full.

Change-Id: I99e6585b5a5dd2d871678c13349e7a62d5aefee0
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent a8bac554
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment