Re: [PATCH] mm, oom: normalize the adj to ensure oom_badness return one

2014-03-03 Thread David Rientjes
On Mon, 3 Mar 2014, He, Bo wrote: > if oom_score_adj is a big negative number, such as -941, > adj *= totalpages / 1000 will be a big negative number, > finally the oom_badness will get 0 points, here normalize > the oom_score_adj to ensure oom_badness return the > positive number. > Sorry, I

[PATCH] mm, oom: normalize the adj to ensure oom_badness return one

2014-03-03 Thread He, Bo
if oom_score_adj is a big negative number, such as -941, adj *= totalpages / 1000 will be a big negative number, finally the oom_badness will get 0 points, here normalize the oom_score_adj to ensure oom_badness return the positive number. Change-Id: I1c56a948ce48b65a1bb63b56ffef07d5d76d7ec8

[PATCH] mm, oom: normalize the adj to ensure oom_badness return one

2014-03-03 Thread He, Bo
if oom_score_adj is a big negative number, such as -941, adj *= totalpages / 1000 will be a big negative number, finally the oom_badness will get 0 points, here normalize the oom_score_adj to ensure oom_badness return the positive number. Change-Id: I1c56a948ce48b65a1bb63b56ffef07d5d76d7ec8

Re: [PATCH] mm, oom: normalize the adj to ensure oom_badness return one

2014-03-03 Thread David Rientjes
On Mon, 3 Mar 2014, He, Bo wrote: if oom_score_adj is a big negative number, such as -941, adj *= totalpages / 1000 will be a big negative number, finally the oom_badness will get 0 points, here normalize the oom_score_adj to ensure oom_badness return the positive number. Sorry, I have