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"