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

2015-11-02 Thread Michal Hocko
On Mon 02-11-15 12:18:50, Dave Jones wrote: > On Sat, Oct 31, 2015 at 09:38:31PM -0700, David Rientjes wrote: > > On Fri, 30 Oct 2015, Michal Hocko wrote: > > > > > > I will hunt for other projects still using the deprecated > > > > file exclusively. Hopefully there won't be too many of them.

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

2015-11-02 Thread Dave Jones
On Sat, Oct 31, 2015 at 09:38:31PM -0700, David Rientjes wrote: > On Fri, 30 Oct 2015, Michal Hocko wrote: > > > > I will hunt for other projects still using the deprecated > > > file exclusively. Hopefully there won't be too many of them. > > > > It doesn't look that bad afterall: > > $

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

2015-11-02 Thread Michal Hocko
On Sat 31-10-15 21:38:31, David Rientjes wrote: [...] > I'd love to be able to remove oom_adj. I'm not sure if we can get to that > point if the instance is that "all userspace" must not write to it and it > would require users to rebuild their binaries. Considering there are still some which

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

2015-11-02 Thread Michal Hocko
On Sat 31-10-15 21:38:31, David Rientjes wrote: [...] > I'd love to be able to remove oom_adj. I'm not sure if we can get to that > point if the instance is that "all userspace" must not write to it and it > would require users to rebuild their binaries. Considering there are still some which

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

2015-11-02 Thread Michal Hocko
On Mon 02-11-15 12:18:50, Dave Jones wrote: > On Sat, Oct 31, 2015 at 09:38:31PM -0700, David Rientjes wrote: > > On Fri, 30 Oct 2015, Michal Hocko wrote: > > > > > > I will hunt for other projects still using the deprecated > > > > file exclusively. Hopefully there won't be too many of them.

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

2015-11-02 Thread Dave Jones
On Sat, Oct 31, 2015 at 09:38:31PM -0700, David Rientjes wrote: > On Fri, 30 Oct 2015, Michal Hocko wrote: > > > > I will hunt for other projects still using the deprecated > > > file exclusively. Hopefully there won't be too many of them. > > > > It doesn't look that bad afterall: > > $

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

2015-10-31 Thread David Rientjes
On Fri, 30 Oct 2015, Michal Hocko wrote: > On Fri 30-10-15 13:59:03, Michal Hocko wrote: > > On Thu 29-10-15 18:04:22, Michal Hocko wrote: > > > On Wed 28-10-15 16:54:04, David Rientjes wrote: > > > [...] > > > > It's a bad situation, I agree, and we anticipated the complete removal > > > > of

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

2015-10-31 Thread David Rientjes
On Wed, 28 Oct 2015, Eric W. Biederman wrote: > > 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

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

2015-10-31 Thread David Rientjes
On Fri, 30 Oct 2015, Michal Hocko wrote: > On Fri 30-10-15 13:59:03, Michal Hocko wrote: > > On Thu 29-10-15 18:04:22, Michal Hocko wrote: > > > On Wed 28-10-15 16:54:04, David Rientjes wrote: > > > [...] > > > > It's a bad situation, I agree, and we anticipated the complete removal > > > > of

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

2015-10-31 Thread David Rientjes
On Wed, 28 Oct 2015, Eric W. Biederman wrote: > > 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

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

2015-10-30 Thread Michal Hocko
On Fri 30-10-15 13:59:03, Michal Hocko wrote: > On Thu 29-10-15 18:04:22, Michal Hocko wrote: > > On Wed 28-10-15 16:54:04, David Rientjes wrote: > > [...] > > > It's a bad situation, I agree, and we anticipated the complete removal of > > > /proc/pid/oom_adj years ago since it has been

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

2015-10-30 Thread Michal Hocko
On Thu 29-10-15 18:04:22, Michal Hocko wrote: > On Wed 28-10-15 16:54:04, David Rientjes wrote: > [...] > > 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

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

2015-10-30 Thread Michal Hocko
On Thu 29-10-15 18:04:22, Michal Hocko wrote: > On Wed 28-10-15 16:54:04, David Rientjes wrote: > [...] > > 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

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

2015-10-30 Thread Michal Hocko
On Fri 30-10-15 13:59:03, Michal Hocko wrote: > On Thu 29-10-15 18:04:22, Michal Hocko wrote: > > On Wed 28-10-15 16:54:04, David Rientjes wrote: > > [...] > > > It's a bad situation, I agree, and we anticipated the complete removal of > > > /proc/pid/oom_adj years ago since it has been

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

2015-10-29 Thread Michal Hocko
On Wed 28-10-15 16:54:04, David Rientjes wrote: [...] > 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.

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

2015-10-29 Thread Michal Hocko
On Wed 28-10-15 16:54:04, David Rientjes wrote: [...] > 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.

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

2015-10-28 Thread Eric W. Biederman
David Rientjes writes: > 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

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

2015-10-28 Thread David Rientjes
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

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

2015-10-28 Thread Eric W. Biederman
David Rientjes writes: > 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

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

2015-10-28 Thread David Rientjes
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

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

2015-10-27 Thread Michal Hocko
On Mon 26-10-15 14:42:57, David Rientjes wrote: > On Thu, 22 Oct 2015, Hongjie Fang (方洪杰) wrote: > > > > > The oom_adj has been replaced by oom_score_adj in kernel, > > but the /proc/pid/oom_adj is provided for legacy purposes. > > When write/read a value into/from /proc/pid/oom_adj, > > there

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

2015-10-27 Thread Michal Hocko
On Mon 26-10-15 14:42:57, David Rientjes wrote: > On Thu, 22 Oct 2015, Hongjie Fang (方洪杰) wrote: > > > > > The oom_adj has been replaced by oom_score_adj in kernel, > > but the /proc/pid/oom_adj is provided for legacy purposes. > > When write/read a value into/from /proc/pid/oom_adj, > > there

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

2015-10-26 Thread David Rientjes
On Thu, 22 Oct 2015, Hongjie Fang (方洪杰) wrote: > > The oom_adj has been replaced by oom_score_adj in kernel, > but the /proc/pid/oom_adj is provided for legacy purposes. > When write/read a value into/from /proc/pid/oom_adj, > there is a transformation between oom_adj and oom_score_adj. > >

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

2015-10-26 Thread David Rientjes
On Thu, 22 Oct 2015, Hongjie Fang (方洪杰) wrote: > > The oom_adj has been replaced by oom_score_adj in kernel, > but the /proc/pid/oom_adj is provided for legacy purposes. > When write/read a value into/from /proc/pid/oom_adj, > there is a transformation between oom_adj and oom_score_adj. > >

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

2015-10-22 Thread Michal Hocko
On Thu 22-10-15 06:49:01, Hongjie Fang (方洪杰) wrote: > > The oom_adj has been replaced by oom_score_adj in kernel, > but the /proc/pid/oom_adj is provided for legacy purposes. > When write/read a value into/from /proc/pid/oom_adj, > there is a transformation between oom_adj and oom_score_adj. > >

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

2015-10-22 Thread 方洪杰
The oom_adj has been replaced by oom_score_adj in kernel, but the /proc/pid/oom_adj is provided for legacy purposes. When write/read a value into/from /proc/pid/oom_adj, there is a transformation between oom_adj and oom_score_adj. After writing a new value into /proc/pid/oom_adj, then read it.

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

2015-10-22 Thread 方洪杰
The oom_adj has been replaced by oom_score_adj in kernel, but the /proc/pid/oom_adj is provided for legacy purposes. When write/read a value into/from /proc/pid/oom_adj, there is a transformation between oom_adj and oom_score_adj. After writing a new value into /proc/pid/oom_adj, then read it.

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

2015-10-22 Thread Michal Hocko
On Thu 22-10-15 06:49:01, Hongjie Fang (方洪杰) wrote: > > The oom_adj has been replaced by oom_score_adj in kernel, > but the /proc/pid/oom_adj is provided for legacy purposes. > When write/read a value into/from /proc/pid/oom_adj, > there is a transformation between oom_adj and oom_score_adj. > >