Skip to content

Commit

Permalink
Set vm.swappiness=1 (#13712)
Browse files Browse the repository at this point in the history
It should allow system to swap anonymous pages actively when it is
one step from OOM, while otherwise prefer to flush file-backed
pages back into ZFS ARC, freeing more memory for it.
  • Loading branch information
amotin committed May 14, 2024
1 parent 9d105b4 commit b16b4fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/freenas/etc/sysctl.d/10-truenas.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kernel.panic_on_io_nmi = 1
kernel.panic_on_unrecovered_nmi = 1
kernel.unknown_nmi_panic = 1
kernel.watchdog_thresh = 60
vm.swappiness=1

0 comments on commit b16b4fe

Please sign in to comment.