From 40d42c62a072e8075c26954dfeb2b34ad2bd762c Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Feb 2025 02:37:09 +0100 Subject: Replace graphite swapfile with zram-backed swap, for testing Signed-off-by: Mel --- machines/graphite/devices.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'machines') diff --git a/machines/graphite/devices.nix b/machines/graphite/devices.nix index fe499e3..be777a9 100644 --- a/machines/graphite/devices.nix +++ b/machines/graphite/devices.nix @@ -16,11 +16,14 @@ initrd.systemd.enable = true; }; - # swap - swapDevices = [{ - device = "/var/swapfile"; - size = 8 * 1024; - }]; + # testing with replacing swap partitions and files + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 50; + }; # internet networking = { -- cgit 1.4.1