zfs: tuning

This commit is contained in:
2026-03-02 23:33:15 -05:00
parent b653debbae
commit 57080293bb

View File

@@ -27,13 +27,17 @@ in
boot.kernelParams = boot.kernelParams =
let let
gb = 20; gb = 32;
mb = gb * 1000; mb = gb * 1000;
kb = mb * 1000; kb = mb * 1000;
b = kb * 1000; b = kb * 1000;
in in
[ [
"zfs.zfs_arc_max=${builtins.toString b}" "zfs.zfs_arc_max=${builtins.toString b}"
"zfs.zfs_txg_timeout=30" # longer TXG open time = larger sequential writes = better HDD throughput
"zfs.zfs_dirty_data_max=8589934592" # 8GB dirty data buffer (default 4GB) for USB HDD write smoothing
"zfs.zfs_delay_min_dirty_percent=80" # delay write throttling until 80% dirty (default 60%)
"zfs.zfs_vdev_async_write_max_active=30" # more concurrent async writes to vdevs (default 10)
]; ];
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];