From e3887e320edebca3c0851e933c6c4cc3a6145ab6 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Mon, 6 May 2024 23:25:08 +0100 Subject: [PATCH] tywin: add zram swap --- hosts/tywin.storage.ts.hillion.co.uk/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/tywin.storage.ts.hillion.co.uk/default.nix b/hosts/tywin.storage.ts.hillion.co.uk/default.nix index 21c12ab..5405572 100644 --- a/hosts/tywin.storage.ts.hillion.co.uk/default.nix +++ b/hosts/tywin.storage.ts.hillion.co.uk/default.nix @@ -18,6 +18,13 @@ custom.locations.autoServe = true; custom.defaults = true; + # zram swap: used in the hope it will give the ZFS ARC more room to back off + zramSwap = { + enable = true; + memoryPercent = 200; + algorithm = "zstd"; + }; + ## Tailscale age.secrets."tailscale/tywin.storage.ts.hillion.co.uk".file = ../../secrets/tailscale/tywin.storage.ts.hillion.co.uk.age; services.tailscale = {