oomscoreadj
oomscoreadj is a per-process tunable in Linux that influences the kernel out-of-memory (OOM) killer's choice of which process to terminate when the system runs out of memory. It is exposed via the procfs file /proc/[pid]/oom_score_adj and accepts integer values in the range -1000 to 1000. The kernel computes a process "badness" score (oom_score) based on its memory usage; oom_score_adj is applied to that score (the result is clamped to the 0–1000 range) to raise or lower the process's likelihood of being selected by the OOM killer.
A value of -1000 effectively prevents the process from being chosen by the OOM killer, while positive
oom_score_adj replaced the older oom_adj interface, providing finer-grained control and a standardized 0–1000 scoring scale. Administrators