fix: idols-ai - disable zram swap when running large LLM models via mmap with limited RAM

This commit is contained in:
Ryan Yin
2026-02-16 23:53:24 +08:00
parent 68c3c8436d
commit 3c27adbb95

View File

@@ -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";