cleanup
This commit is contained in:
@@ -27,15 +27,20 @@ in
|
||||
|
||||
boot.kernelParams =
|
||||
let
|
||||
gb = 32;
|
||||
mb = gb * 1000;
|
||||
kb = mb * 1000;
|
||||
b = kb * 1000;
|
||||
arc_gb = 32;
|
||||
arc_mb = arc_gb * 1000;
|
||||
arc_kb = arc_mb * 1000;
|
||||
arc_b = arc_kb * 1000;
|
||||
|
||||
dirty_gb = 8; # Default value is 4GB, helps smooth writes
|
||||
dirty_mb = dirty_gb * 1000;
|
||||
dirty_kb = dirty_mb * 1000;
|
||||
dirty_b = dirty_kb * 1000;
|
||||
in
|
||||
[
|
||||
"zfs.zfs_arc_max=${builtins.toString b}"
|
||||
"zfs.zfs_arc_max=${builtins.toString arc_b}"
|
||||
"zfs.zfs_txg_timeout=120" # longer TXG open time = larger sequential writes
|
||||
"zfs.zfs_dirty_data_max=8589934592" # 8GB dirty data buffer (default 4GB) for USB HDD write smoothing
|
||||
"zfs.zfs_dirty_data_max=${builtins.toString dirty_b}"
|
||||
"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)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user