From f04213dff4e49a76a01a0cef0f805b71f282b4f3 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 25 Mar 2025 11:40:38 -0400 Subject: [PATCH] zfs: arc 2048 -> 4096 mb --- zfs.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zfs.nix b/zfs.nix index a94f8d9..14a9270 100644 --- a/zfs.nix +++ b/zfs.nix @@ -20,10 +20,13 @@ in boot.zfs.package = pkgs.zfs_unstable; boot.initrd.kernelModules = [ "zfs" ]; - boot.kernelParams = [ - # 2048MB - "zfs.zfs_arc_max=2048000000" - ]; + boot.kernelParams = + let + mb = 4096; + in + [ + "zfs.zfs_arc_max=${mb * 1000000}" + ]; boot.supportedFilesystems = [ "zfs" ]; boot.zfs.extraPools = [