Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258490

Re: 答复: [PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj

From David Rientjes <rientjes@google.com>
Newsgroups linux.kernel
Subject Re: 答复: [PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj
Date 2015-10-29 01:00 +0100
Message-ID <qoINj-Vk-5@gated-at.bofh.it> (permalink)
References <qoINj-Vk-7@gated-at.bofh.it> <qoINj-Vk-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, 28 Oct 2015, Hongjie Fang (方洪杰) wrote:

> Under a userspace perspective, get a different value than he wrote, 
> it must be confusing.
> 

It's confusing, but with purpose: it shows there is no direct mapping 
between /proc/pid/oom_adj and /proc/pid/oom_score_adj.  
/proc/pid/oom_score_adj is the effective policy and has been for years.  
The value returned by /proc/pid/oom_adj demonstrates reality vs what is 
perceived and is a side-effect of integer division truncating the result 
in C.

It's a bad situation, I agree, and we anticipated the complete removal of 
/proc/pid/oom_adj years ago since it has been deprecated for years.  Maybe 
one day we can convince Linus that is possible, but until then we're stuck 
with it.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: 答复: [PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj David Rientjes <rientjes@google.com> - 2015-10-29 01:00 +0100
  Re: 答复: [PATCHv2 4.3-rc6] proc: fix convert  from oom_score_adj to oom_adj ebiederm@xmission.com (Eric W. Biederman) - 2015-10-29 05:00 +0100
  Re: 答复: [PATCHv2 4.3-rc6] proc:  fix convert from oom_score_adj to oom_adj Michal Hocko <mhocko@kernel.org> - 2015-10-29 18:10 +0100
    Re: 答复: [PATCHv2 4.3-rc6] proc:  fix convert from oom_score_adj to oom_adj Michal Hocko <mhocko@kernel.org> - 2015-10-30 14:00 +0100
      Re: 答复: [PATCHv2 4.3-rc6] proc:  fix convert from oom_score_adj to oom_adj Michal Hocko <mhocko@kernel.org> - 2015-10-30 15:50 +0100

csiph-web