-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethinking -i option #248
Comments
Other way:
|
see also /*
* Special case OOM_SCORE_ADJ_MIN for all others scale the
* badness value into [0, 2000] range which we have been
* exporting for a long time so userspace might depend on it.
*/
if (badness != LONG_MIN)
points = (1000 + badness * 1000 / (long)totalpages) * 2 / 3; |
compare ( points = oom_badness(task, totalpages) * 1000 / totalpages; https://github.com/torvalds/linux/blob/v5.8/fs/proc/base.c#L555 if (badness != LONG_MIN)
points = (1000 + badness * 1000 / (long)totalpages) * 2 / 3; https://github.com/torvalds/linux/blob/v5.9/fs/proc/base.c#L562 |
I think to keep this option, it should work well with both new & old kernels ( as explained in 7ebc455 ). This means you need kernel version detection. And I'm not sure anybody but me even uses the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may fix
-i
option instead of removing it.Look at #234 (comment)
The text was updated successfully, but these errors were encountered: