From 95b92c232ed83cf095a9d61cf77a44a674b189f8 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 7 Sep 2025 11:42:34 +0200 Subject: [PATCH] Add zfs cache config --- hosts/nixos/hs/system.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/nixos/hs/system.nix b/hosts/nixos/hs/system.nix index 1104c86..af3a545 100644 --- a/hosts/nixos/hs/system.nix +++ b/hosts/nixos/hs/system.nix @@ -26,6 +26,12 @@ boot.zfs.forceImportRoot = false; boot.zfs.extraPools = [ "cache" ]; # Auto-import additional pools + # ZFS ARC memory configuration for 32GB system + boot.kernelParams = [ + "zfs.zfs_arc_max=17179869184" # 16GB max ARC size + "zfs.zfs_arc_min=2147483648" # 2GB min ARC size + ]; + # XFS drive mounts fileSystems."/mnt/wd-12t-1" = { device = "/dev/disk/by-id/ata-HGST_HUH721212ALE604_5PK2N4GB-part1";