Commits
Andrey Ryabinin authored and Konstantin Khorenko committed fe87c15bf3a
mm/vmscan: shrink tcache, tswap upfront everything else We don't want to evict page cache or anon to swap while there are a lot of reclaimable pages in tcache/tswap. Reclaim them first, and only after that go to traditional reclaim Notes: 1) we keep tcache and tswap generic shrinkers so if new tcache/tswap are generated heavily, background kswapd thread does not forget to shrink tcache/tswap 2) in shrink_tcrutches() we don't break for_each_node_mask() cycle even in case shrinking first node gives us enough nr_reclaimed. We want to make similar memory pressure on all nodes and not to trash only the first one and stop. https://jira.sw.ru/browse/PSBM-89403 Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Reviewed-by: Konstantin Khorenko <khorenko@virtuozzo.com>