try other zfs settings
This commit is contained in:
parent
50b7d6da88
commit
9f8b9dc5b7
1 changed files with 3 additions and 4 deletions
|
@ -114,7 +114,6 @@ in
|
||||||
|
|
||||||
# tweak ZFS
|
# tweak ZFS
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options zfs zfs_arc_meta_limit_percent=100
|
|
||||||
options zfs zfs_arc_min=134217728
|
options zfs zfs_arc_min=134217728
|
||||||
options zfs zfs_arc_max=4294967296
|
options zfs zfs_arc_max=4294967296
|
||||||
options zfs zfs_txg_timeout=30
|
options zfs zfs_txg_timeout=30
|
||||||
|
@ -135,11 +134,11 @@ in
|
||||||
system.activationScripts.zfsTuning = {
|
system.activationScripts.zfsTuning = {
|
||||||
text = ''
|
text = ''
|
||||||
# only one level of metadata caching
|
# only one level of metadata caching
|
||||||
${pkgs.zfs}/bin/zfs set primarycache=metadata zpool
|
${pkgs.zfs}/bin/zfs set primarycache=all zpool
|
||||||
${pkgs.zfs}/bin/zfs set secondarycache=none zpool
|
${pkgs.zfs}/bin/zfs set secondarycache=none zpool
|
||||||
|
|
||||||
# use always direct IO to avoid ARC overhead
|
# use allow direct IO
|
||||||
${pkgs.zfs}/bin/zfs set direct=always zpool
|
${pkgs.zfs}/bin/zfs set direct=standard zpool
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue