formats boot.kernelParams for ZFS configuration to enable compressed ARC and set maximum ARC size

This commit is contained in:
Menno van Leeuwen 2024-11-16 14:55:38 +01:00
parent 1442638609
commit b2768c334a
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -71,8 +71,10 @@ in
}; };
# If you want to keep compression settings # If you want to keep compression settings
boot.kernelParams = [ "zfs.zfs_compressed_arc_enabled=1" ]; boot.kernelParams = [
boot.kernelParams = [ "zfs.zfs_arc_max=17179869184" ]; # 16 GiB "zfs.zfs_compressed_arc_enabled=1" # Enable compressed ARC
"zfs.zfs_arc_max=17179869184" # 16 GiB
];
fileSystems = { fileSystems = {
# backup ZFS mount points # backup ZFS mount points