# Prefer swapping page cache to anonymous memory. Scylla doesn't
# use page cache, so if there is any significant amount, it's the
# result of some side process like backup.
#
# Reduce swappiness to the bare minimum (0 is too low, as it won't
# swap anonymous memory any more, which puts the server at the risk
# of OOM).
vm.swappiness = 1

# Give a high preference to evicting inodes/dcache over swapping.
# Our use of inodes is to either pin them (keeping open Data.db
# and Index.db components) or to use them once and never touch them
# again until deletion (all other components). Therefore evicting
# them early is preferable to keeping them around.
vm.vfs_cache_pressure = 2000
