]> Git Repo - linux.git/commit
mm: allow swappiness that prefers reclaiming anon over the file workingset
authorJohannes Weiner <[email protected]>
Wed, 3 Jun 2020 23:02:37 +0000 (16:02 -0700)
committerLinus Torvalds <[email protected]>
Thu, 4 Jun 2020 03:09:48 +0000 (20:09 -0700)
commitc843966c556d7370bb32e7319a6d164cb8c70ae2
tree060e5e8cb49d2ee8bdde87836390b115ee87692d
parent497a6c1b09902b22ceccc0f25ba4dd623e1ddb7d
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: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Rik van Riel <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/admin-guide/sysctl/vm.rst
kernel/sysctl.c
mm/vmscan.c
This page took 0.052794 seconds and 4 git commands to generate.