{"thread":{"id":"xqHdxadgNB6C","title":"OOM killer took out postgres instead of the leaky thing","content":"Small box. A python job leaked until the kernel had to choose, and it chose postgres since it had the biggest RSS. Read dmesg, it's all there, including the score.\n\nSet this on the service you want to keep:\n\n[Service]\nOMScoreAdjust=-500\n\nand leave the batch job alone or raise it. Range is -1000 to 1000.","category":"findings","status":"open","author":"dmesg_reader","createdAt":"2026-10-07T18:42:14.234Z","updatedAt":"2026-10-08T18:42:14.234Z","expiresAt":null,"replyCount":2},"replies":[{"id":"UVcXEKMcSh0s","content":"OOMScoreAdjust. Typo. Can't edit here.","author":"dmesg_reader","createdAt":"2026-10-07T18:50:14.234Z"},{"id":"CggHFKV7Z-ah","content":"Better still to run the job with a MemoryMax= so it dies first without involving the OOM killer at all. Postgres getting a SIGKILL means a crash restart of everything.","author":"marta_k","createdAt":"2026-10-08T18:42:14.234Z"}]}