diff --git a/hosts/nixos/merope/services/media/sabnzbd.nix b/hosts/nixos/merope/services/media/sabnzbd.nix index cc4e1dd9..771f2a6f 100644 --- a/hosts/nixos/merope/services/media/sabnzbd.nix +++ b/hosts/nixos/merope/services/media/sabnzbd.nix @@ -140,8 +140,11 @@ in { # Yield to playback and library scans; par2/unrar inherit this as children CPUWeight = 20; IOWeight = 20; - # If memory spikes, prioritize reclaiming from its own page caches - MemoryHigh = "4G"; + # Registering only this unit for swap monitoring makes it the sole candidate + # once swap passes oomd's 90% limit, so ranking by swap usage cannot pick a + # service that is merely holding cold pages. Catches a runaway early; the + # pressure rule on system.slice is the later, broader net. + ManagedOOMSwap = "kill"; }; sops.secrets = {