zfs: arc 2048 -> 4096 mb

This commit is contained in:
Simon Gardling 2025-03-25 11:40:38 -04:00
parent 3447478847
commit f04213dff4
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

11
zfs.nix
View File

@ -20,10 +20,13 @@ in
boot.zfs.package = pkgs.zfs_unstable; boot.zfs.package = pkgs.zfs_unstable;
boot.initrd.kernelModules = [ "zfs" ]; boot.initrd.kernelModules = [ "zfs" ];
boot.kernelParams = [ boot.kernelParams =
# 2048MB let
"zfs.zfs_arc_max=2048000000" mb = 4096;
]; in
[
"zfs.zfs_arc_max=${mb * 1000000}"
];
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.zfs.extraPools = [ boot.zfs.extraPools = [