Commit d8e4fb52 authored by Johannes Weiner's avatar Johannes Weiner Committed by Lecopzer Chen
Browse files

UPSTREAM: mm: allow swappiness that prefers reclaiming anon over the file workingset



With the advent of fast random IO devices (SSDs, PMEM) and in-memory swap
devices such as zswap, it's possible for swap to be much faster than
filesystems, and for swapping to be preferable over thrashing filesystem
caches.

Allow setting swappiness - which defines the rough relative IO cost of
cache misses between page cache and swap-backed pages - to reflect such
situations by making the swap-preferred range configurable.


Signed-off-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Rik van Riel <riel@surriel.com>
Link: http://lkml.kernel.org/r/20200520232525.798933-4-hannes@cmpxchg.org


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>


Bug: 294183045
(cherry picked from commit c843966c)
Change-Id: Ibc16f28a44c3ae070bf8598e783862c36d9f24f0
Signed-off-by: default avatarLecopzer Chen <lecopzer.chen@mediatek.com>
parent ba2c000c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment