Bug 50421 - proc.5: Information on oom_adj is outdated
Summary: proc.5: Information on oom_adj is outdated
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Michael Kerrisk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 18:11 UTC by Peter Wu
Modified: 2012-12-21 17:49 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Peter Wu 2012-11-12 18:11:14 UTC
oom_adj has been deprecated in Linux 2.6.35 (commit 51b1bd2ace1595b72956224deda349efa880b693) and removed in Linux 3.7 (01dc52ebdf472f77cca623ca693ca24cfc0f1bbe) because it was replaced with oom_score_adj.

The reasoning can be found on http://www.kernel.org/doc/Documentation/ABI/obsolete/proc-pid-oom_adj

Now, including this whole document is a bit too much for proc(5), but what should be included instead?

man-pages version: 3.44
Comment 1 Michael Kerrisk 2012-12-21 17:49:31 UTC
But there is also 

        commit fa0cbbf145aabbf29c6f28f8a11935c0b0fd86fc
        Author: David Rientjes <rientjes@google.com>
        Date:   Mon Nov 12 17:53:04 2012 -0800

            mm, oom: reintroduce /proc/pid/oom_adj

So the story is not so simple.

I modify proc(5) to include oom_score_adj, taking pretty much all of the text from Documentation/filesystems/proc.txt.

Note You need to log in before you can comment on or make changes to this bug.