From 5b374ef972ceb1df1947348a9d88088b180df8d1 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 5 Dec 2024 18:47:44 +0100 Subject: [PATCH] soryu: more swap --- hosts/soryu/ai.nix | 2 +- hosts/soryu/configuration.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/soryu/ai.nix b/hosts/soryu/ai.nix index 71729fd..6f66cf4 100644 --- a/hosts/soryu/ai.nix +++ b/hosts/soryu/ai.nix @@ -29,7 +29,7 @@ CPUQuota = "300%"; MemoryHigh = "29G"; MemoryMax = "30G"; - MemorySwapMax = "25G"; + MemorySwapMax = "50G"; ExecStart = "systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i -D /mnt/human/machines/ubuntu-ai"; }; # overrideStrategy = "asDropin"; diff --git a/hosts/soryu/configuration.nix b/hosts/soryu/configuration.nix index 1efe62c..d902eaf 100644 --- a/hosts/soryu/configuration.nix +++ b/hosts/soryu/configuration.nix @@ -29,6 +29,10 @@ "fs.file-max" = 524288; }; + zramSwap = { + enable = true; + memoryMax = 32 * 1024 * 1024 * 1024; # 16 GB ZRAM + }; disabledModules = [ "services/network-filesystems/tahoe.nix"