mm: add a feedback from lowmemorykiller for OOM decisions
In the alloc slow path, for non-costly order allocations, we rely on the should_reclaim_retry() function to decide whether we should go for page reclaim before landing into OOM. But when low memory killer is enabled, the wrong accounting of anon lru pages can result into unnecessary retries that inturn lead to page allocation stalls for longer durations. To avoid this situation, get input from the LMK that has already the info about whether there are any lmk killable tasks. This also fixes commit 23ba63a1 ("mm: retry more before OOM in the presence of slow shrinkers") Change-Id: I91416b7646d4545f7762402e50c6193771f62605 Signed-off-by:Charan Teja Reddy <charante@codeaurora.org>
Loading
Please register or sign in to comment