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
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms