zfs: change arc size setting
This commit is contained in:
parent
9e39ce41d0
commit
b8c5a66cdc
7
zfs.nix
7
zfs.nix
@ -25,10 +25,13 @@ in
|
|||||||
|
|
||||||
boot.kernelParams =
|
boot.kernelParams =
|
||||||
let
|
let
|
||||||
mb = 20000;
|
gb = 20;
|
||||||
|
mb = gb * 1000;
|
||||||
|
kb = mb * 1000;
|
||||||
|
b = kb * 1000;
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"zfs.zfs_arc_max=${builtins.toString (mb * 1000000)}"
|
"zfs.zfs_arc_max=${builtins.toString b}"
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user