Skip to content

Commit

Permalink
Tune ARC memory pressure parameters (#13951)
Browse files Browse the repository at this point in the history
- Setting zfs_arc_shrinker_limit=0 should make ARC more obedient to
all kernel shrinker KPI requests, that should help to avoid OOMs.

 - zfs_arc_pc_percent=300 should prevent file-backed part of page
cache from getting bigger than 1/3 of ARC, that should help with ARC
shrinking to its minimum by heavy mmap() I/O.  It is not perfect
from perspective of adapting to different workloads, but the best
we can do for now.

(cherry picked from commit 29746fa)

Co-authored-by: Alexander Motin <[email protected]>
  • Loading branch information
bugclerk and amotin authored Jun 28, 2024
1 parent 6a076ba commit 0045fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freenas/usr/lib/modprobe.d/truenas.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
options spl spl_panic_halt=1
options zfs zfs_default_ibs=15
options zfs zfs_default_ibs=15 zfs_arc_shrinker_limit=0 zfs_arc_pc_percent=300
blacklist irdma

0 comments on commit 0045fc1

Please sign in to comment.