From 3c27adbb95482ae24c6e777777951014ea6964f5 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 16 Feb 2026 23:53:24 +0800 Subject: [PATCH] fix: idols-ai - disable zram swap when running large LLM models via mmap with limited RAM --- hosts/idols-ai/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/idols-ai/default.nix b/hosts/idols-ai/default.nix index 1f57bfc9..3ac82a3b 100644 --- a/hosts/idols-ai/default.nix +++ b/hosts/idols-ai/default.nix @@ -24,6 +24,9 @@ in ./secureboot.nix ]; + # Zram consumes physical memory for compression, which can cause a deadlock and system hang if the model size approaches the physical memory limit. + zramSwap.enable = lib.mkForce false; + services.sunshine.enable = lib.mkForce true; services.tuned.ppdSettings.main.default = lib.mkForce "performance";