Commit 62376251 authored by Committed by Linus TorvaldsBrowse files
revert "mm: vmscan: do not swap anon pages just because free+file is low"
This reverts commit 0bf1457f ("mm: vmscan: do not swap anon pages just because free+file is low") because it introduced a regression in mostly-anonymous workloads, where reclaim would become ineffective and trap every allocating task in direct reclaim. The problem is that there is a runaway feedback loop in the scan balance between file and anon, where the balance tips heavily towards a tiny thrashing file LRU and anonymous pages are no longer being looked at. The commit in question removed the safe guard that would detect such situations and respond with forced anonymous reclaim. This commit was part of a series to fix premature swapping in loads with relatively little cache, and while it made a small difference, the cure is obviously worse than the disease. Revert it. Signed-off-by: Johannes Weiner <firstname.lastname@example.org> Reported-by: Christian Borntraeger <email@example.com> Acked-by: Christian Borntraeger <firstname.lastname@example.org> Acked-by: Rafael Aquini <email@example.com> Cc: Rik van Riel <firstname.lastname@example.org> Cc: <email@example.com> [3.12+] Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 18 additions and 0 deletions