try other zfs settings

This commit is contained in:
Christoph Cullmann 2025-04-26 15:20:13 +02:00
parent 50b7d6da88
commit 9f8b9dc5b7
No known key found for this signature in database

View file

@ -114,7 +114,6 @@ in
# tweak ZFS # tweak ZFS
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options zfs zfs_arc_meta_limit_percent=100
options zfs zfs_arc_min=134217728 options zfs zfs_arc_min=134217728
options zfs zfs_arc_max=4294967296 options zfs zfs_arc_max=4294967296
options zfs zfs_txg_timeout=30 options zfs zfs_txg_timeout=30
@ -135,11 +134,11 @@ in
system.activationScripts.zfsTuning = { system.activationScripts.zfsTuning = {
text = '' text = ''
# only one level of metadata caching # only one level of metadata caching
${pkgs.zfs}/bin/zfs set primarycache=metadata zpool ${pkgs.zfs}/bin/zfs set primarycache=all zpool
${pkgs.zfs}/bin/zfs set secondarycache=none zpool ${pkgs.zfs}/bin/zfs set secondarycache=none zpool
# use always direct IO to avoid ARC overhead # use allow direct IO
${pkgs.zfs}/bin/zfs set direct=always zpool ${pkgs.zfs}/bin/zfs set direct=standard zpool
''; '';
}; };