Looked on The Google, and couldn't find anything that explained how the score in proc/<pid>/oom_score
is calculated. Why use this score instead of just using the total memory used?
Looked on The Google, and couldn't find anything that explained how the score in proc/<pid>/oom_score
is calculated. Why use this score instead of just using the total memory used?
See Goldwyn Rodrigues's 2009 article for the implementation at that time, Jonathan Corbet's 2010 article for what I believe is the current behavior, and Jonathan Corbet's 2013 article for ideas about future changes.
From the 2010 article: