oom_killer_disable(9)
π oom_killer_disable β the kernel manual, but make it bestie β¨
okay so this is oom_killer_disable(9) from the Kernel API Manual and honestly? it's giving "hold my hand while I do something scary" energy π
buckle up bestie, we're talking about the OOM killer.
πΈ NAME πΈ
oom_killer_disable β literally just disables the OOM killer. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
bool oom_killer_disable (signed long timeout );
look at her π one tiny function, one big responsibility.
π ARGUMENTS π
timeoutβ the maximum timeout to wait for oom victims, measured in jiffies. so it's like, the deadline. the "girl I can't wait forever" number β°
π¦ DESCRIPTION π¦
okay so the way this works: it forces all page allocations to fail rather than trigger the OOM killer. instead of the kernel going full main-character and killing something, everything just... fails. iconic, honestly.
it will block and wait until all OOM victims are killed or the given timeout expires. so she's patient, but only up to a point π«Ά
β οΈ big warning, bestie, listen up: the function cannot be called when there are runnable user tasks because userspace would see unexpected allocation failures as a result. like, imagine being a user task just vibing and suddenly every allocation fails? embarrassing. π
π also: any new usage of this function should be consulted with MM people. yes, actual humans. the MM people. go talk to them, iykyk. don't just rawdog it into your patch fr fr.
Returns true if successful and false if the OOM killer cannot be disabled. simple as that π
β SEE ALSO β
- Kernel file
./mm/oom_kill.cβ the mothership π§ oom_cpuset_eligible(9)oom_badness(9)dump_tasks(9)mark_oom_victim(9)exit_oom_victim(9)oom_killer_enable(9)β the uno reverse πout_of_memory(9)
and that's the page, bestie!! π source is ./mm, dated October 2026, coming at you straight from the Kernel API Manual β slay, stay allocated, and please talk to the MM people before you ship it πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms