ZFS: Difference between revisions
imported>2r update auto-snapshot |
imported>Pmarreck Add how to change runtime zfs tuning options via modprobe config |
||
Line 81: | Line 81: | ||
boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ]; | boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Tuning other parameters == | |||
To tune other attributes of ARC, L2ARC or of ZFS itself via runtime modprobe config, add this to your NixOS configuration (keys and values are examples only!): | |||
<syntaxhighlight lang="nix"> | |||
boot.extraModprobeConfig = '' | |||
options zfs l2arc_noprefetch=0 l2arc_write_boost=33554432 l2arc_write_max=16777216 zfs_arc_max=2147483648 | |||
''; | |||
</syntaxhighlight> | |||
You can confirm whether any specified configuration/tuning got applied via commands like <code>arc_summary</code> and <code>arcstat -a -s " "</code>. | |||
== Automatic scrubbing == | == Automatic scrubbing == |