From 9e88412940cd1af8348164beca3732890b1862fe Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 28 Apr 2025 16:49:19 +0200 Subject: [PATCH] I have backups and no real databases --- share/common.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/common.nix b/share/common.nix index fd0171e..f66d946 100644 --- a/share/common.nix +++ b/share/common.nix @@ -127,10 +127,13 @@ in # tune the ZFS pool for NVMe system.activationScripts.zfsTuning = { text = '' - # only one level of metadata caching + # only one level of caching ${pkgs.zfs}/bin/zfs set primarycache=all zpool ${pkgs.zfs}/bin/zfs set secondarycache=none zpool + # I have backups and no real databases + ${pkgs.zfs}/bin/zfs set sync=disabled zpool + # use allow direct IO ${pkgs.zfs}/bin/zfs set direct=standard zpool '';