mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 22:52:41 +02:00
fix: idols-ai - disable zram swap when running large LLM models via mmap with limited RAM
This commit is contained in:
@@ -24,6 +24,9 @@ in
|
|||||||
./secureboot.nix
|
./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.sunshine.enable = lib.mkForce true;
|
||||||
services.tuned.ppdSettings.main.default = lib.mkForce "performance";
|
services.tuned.ppdSettings.main.default = lib.mkForce "performance";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user