proc_pid_oom_score(5)

โœจ proc_pid_oom_score(5) โœจ

okay bestie, so this one lives in the File Formats Manual section, and it's literally all about one lil file that tells you how doomed your process is ๐Ÿ’€ let's get into it ๐Ÿซถ


๐ŸŽ€ NAME ๐ŸŽ€

/proc/pid/oom_score โ€” the OOM-killer score, aka your process's "am I gonna get yeeted" meter ๐Ÿ‘‘


๐ŸŒธ DESCRIPTION ๐ŸŒธ

๐Ÿ’– /proc/pid/oom_score <span>(since Linux 2.6.11)</span>

So this file?? It displays the current score that the kernel gives to this process, for the purpose of selecting a process for the OOM-killer. That's it, that's the whole vibe ๐ŸŒˆ

And the rule is simple, no cap: a higher score means the process is more likely to be selected by the OOM-killer. Low score = safe era. High score = main character about to get written off the show ๐Ÿ˜ญ

The basis for this score is the amount of memory used by the process, with increases (+) or decreases (-) for factors including:

  • whether the process is privileged (-) ๐Ÿงš (so yes, being privileged lowkey helps you here, iconic)
โš ๏ธ bestie, heads up: Before Linux 2.6.36, the following factors were also used in the calculation of oom_score:
  • whether the process creates a lot of children using fork(2) (+) ๐Ÿ‘ถ๐Ÿ‘ถ๐Ÿ‘ถ
  • whether the process has been running a long time, or has used a lot of CPU time (-) ๐Ÿ•ฐ๏ธ
  • whether the process has a low nice value (i.e., > 0) (+)
  • whether the process is making direct hardware access (-) ๐Ÿ”ง

The oom_score also reflects the adjustment specified by the oom_score_adj or oom_adj setting for the process. so yeah, you can nudge it, iykyk โœจ


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


and that's the whole page, bestie!! ๐Ÿ’… this was brought to you by Linux man-pages 6.20, dated 2026-02-08, and let me just say โ€” proc_pid_oom_score(5) ate and left no crumbs ๐Ÿ’–๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: GPL-3.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms