Skip to content
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

del -k #80

Closed
hakavlad opened this issue Jul 15, 2018 · 18 comments
Closed

del -k #80

hakavlad opened this issue Jul 15, 2018 · 18 comments
Milestone

Comments

@hakavlad
Copy link
Contributor

IMO -k option is deprecated and should be deleted at all.

@rfjakob
Copy link
Owner

rfjakob commented Jul 15, 2018

Hmm, why?

@hakavlad
Copy link
Contributor Author

It is dangerous option and works worse then userspace OOMK.

@rfjakob
Copy link
Owner

rfjakob commented Jul 15, 2018

I wonder if anybody uses it. I usually don't want to break existing users. But then, the only way to find out is to remove it and see if we get complaints.

@hakavlad hakavlad reopened this Jul 15, 2018
@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 15, 2018

sudo earlyoom -k
[sudo] пароль для user:

earlyoom v1.1-15-gbdac539
Using kernel oom killer
mem  total: 5875 MiB, min: 10 %
swap total:    0 MiB, min: 10 %
mem avail: 4035 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4034 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4034 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4034 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4034 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4033 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4033 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4032 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4030 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4029 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4029 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4030 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4031 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4031 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4030 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4031 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4026 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4027 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4027 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4026 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3860 of 5875 MiB (65 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3337 of 5875 MiB (56 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 2823 of 5875 MiB (48 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 2303 of 5875 MiB (39 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1783 of 5875 MiB (30 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1261 of 5875 MiB (21 %), swap free:    0 of    0 MiB ( 0 %)
mem avail:  739 of 5875 MiB (12 %), swap free:    0 of    0 MiB ( 0 %)
Low memory! mem avail: 636 of 5875 MiB (10) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 585 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 532 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 483 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 432 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 380 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 328 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 277 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 238 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 201 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 175 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 175 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
mem avail: 4139 of 5875 MiB (70 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4139 of 5875 MiB (70 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4139 of 5875 MiB (70 %), swap free:    0 of    0 MiB ( 0 %)

As you see, -k invokes unexpected behavior and output spam.

It even worst then SIGTERM.

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 15, 2018

and more if start quick memhog

Using kernel oom killer
mem  total: 5875 MiB, min: 10 %
swap total:    0 MiB, min: 10 %
mem avail: 3970 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3970 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3971 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3969 of 5875 MiB (67 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3998 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3997 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3997 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3997 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3997 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3998 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 3997 of 5875 MiB (68 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 2278 of 5875 MiB (38 %), swap free:    0 of    0 MiB ( 0 %)
Low memory! mem avail: 643 of 5875 MiB (10) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 437 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 228 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 1 of 5875 MiB (0) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
mem avail: 4147 of 5875 MiB (70 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4143 of 5875 MiB (70 %), swap free:    0 of    0 MiB ( 0 %)

@hakavlad
Copy link
Contributor Author

I start sudo earlyoom -k, then I start while true; do tail /dev/zero; done. In the end Xorg was killed.
IMHO -k is unpredictable and harmfull option.

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 15, 2018

mem avail: 1503 of 5875 MiB (25 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1420 of 5875 MiB (24 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1337 of 5875 MiB (22 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1254 of 5875 MiB (21 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1170 of 5875 MiB (19 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1087 of 5875 MiB (18 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 1004 of 5875 MiB (17 %), swap free:    0 of    0 MiB ( 0 %)
mem avail:  921 of 5875 MiB (15 %), swap free:    0 of    0 MiB ( 0 %)
mem avail:  838 of 5875 MiB (14 %), swap free:    0 of    0 MiB ( 0 %)
mem avail:  755 of 5875 MiB (12 %), swap free:    0 of    0 MiB ( 0 %)
mem avail:  672 of 5875 MiB (11 %), swap free:    0 of    0 MiB ( 0 %)
Low memory! mem avail: 638 of 5875 MiB (10) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 586 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 576 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 563 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 552 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 540 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 528 of 5875 MiB (9) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 516 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 505 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 493 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 482 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 472 of 5875 MiB (8) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 463 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 454 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 442 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 431 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 419 of 5875 MiB (7) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 408 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 395 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 384 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 373 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 362 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 354 of 5875 MiB (6) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 344 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 334 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 326 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 316 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 307 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 290 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 280 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 271 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 262 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 252 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 243 of 5875 MiB (4) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 234 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 224 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 215 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 205 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 196 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 187 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 177 of 5875 MiB (3) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 168 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 158 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 149 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 140 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 131 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 121 of 5875 MiB (2) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 112 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 102 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 93 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 96 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 93 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 96 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 95 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 94 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 100 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 99 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 97 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 98 of 5875 MiB (1) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
mem avail: 4214 of 5875 MiB (71 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4214 of 5875 MiB (71 %), swap free:    0 of    0 MiB ( 0 %)
mem avail: 4214 of 5875 MiB (71 %), swap free:    0 of    0 MiB ( 0 %)

then I stopped oom-trigger.
earlyoom -k just not acts early OOM and totally ignore thresholds like 10%.

@hakavlad
Copy link
Contributor Author

At least unpredictable behavior should be mentioned in the documentation, if you do not want to delete the option.

@hakavlad
Copy link
Contributor Author

I wonder if anybody uses it

IMHO -k users will not lose anything if they start using the userspace OOM preventer instead of -k.

@rfjakob
Copy link
Owner

rfjakob commented Jul 16, 2018

Please try

echo 1 > /proc/sys/kernel/sysrq

it is possible that calling the kernel oom killer is blocked by default

@rfjakob
Copy link
Owner

rfjakob commented Jul 16, 2018

Hmm this only documented in the source code, https://github.com/rfjakob/earlyoom/blob/master/kill.c

Ok, i guess nobody uses -k.

@hakavlad
Copy link
Contributor Author

The only possible meaning of this option is the demonstration of inefficiency of native OOMK.

echo 1 > /proc/sys/kernel/sysrq

Nothing happened.

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 16, 2018

it is possible that calling the kernel oom killer is blocked by default

Magic SysRq enabled by boot cmdline on my Debian.
Alt+SysRq+F usualy not works if pressed once.
It works only by fast repeated pressing, sometimes with the side effects of killing Xorg.

@rfjakob
Copy link
Owner

rfjakob commented Jul 16, 2018

Just out of curiosity, what does dmesg say when earlyoom tries to call the kernel oom killer?

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 16, 2018

Low memory! mem avail: 327 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 319 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 310 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 302 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 301 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 297 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 300 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 299 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 301 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 297 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 297 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
Low memory! mem avail: 298 of 5875 MiB (5) % <= min 10 %, swap free: 0 of 0 MiB (0 %) <= min 10 %
Invoking oom killer: done
[706739.557043] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706739.627155] sysrq: SysRq : Manual OOM execution
[706739.645039] Purging GPU memory, 1132 pages freed, 13030 pages still pinned.
[706739.727303] sysrq: SysRq : Manual OOM execution
[706739.741041] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706739.827455] sysrq: SysRq : Manual OOM execution
[706739.837035] Purging GPU memory, 1119 pages freed, 13038 pages still pinned.
[706739.927604] sysrq: SysRq : Manual OOM execution
[706739.945026] Purging GPU memory, 1244 pages freed, 13038 pages still pinned.
[706740.027759] sysrq: SysRq : Manual OOM execution
[706740.045023] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.127913] sysrq: SysRq : Manual OOM execution
[706740.141030] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.228066] sysrq: SysRq : Manual OOM execution
[706740.237019] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.328214] sysrq: SysRq : Manual OOM execution
[706740.337019] Purging GPU memory, 1119 pages freed, 13038 pages still pinned.
[706740.428360] sysrq: SysRq : Manual OOM execution
[706740.441020] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.528503] sysrq: SysRq : Manual OOM execution
[706740.541068] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.628649] sysrq: SysRq : Manual OOM execution
[706740.653006] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706740.728801] sysrq: SysRq : Manual OOM execution
[706740.741259] Purging GPU memory, 1132 pages freed, 13038 pages still pinned.
[706740.828952] sysrq: SysRq : Manual OOM execution
[706740.841465] Purging GPU memory, 1119 pages freed, 13038 pages still pinned.
[706740.929102] sysrq: SysRq : Manual OOM execution
[706740.945010] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706741.029244] sysrq: SysRq : Manual OOM execution
[706741.069007] Purging GPU memory, 1114 pages freed, 13038 pages still pinned.
[706741.129386] sysrq: SysRq : Manual OOM execution
[706741.145007] Purging GPU memory, 1132 pages freed, 13038 pages still pinned.
[706741.229537] sysrq: SysRq : Manual OOM execution
[706741.245005] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706741.329684] sysrq: SysRq : Manual OOM execution
[706741.341845] Purging GPU memory, 1119 pages freed, 13038 pages still pinned.
[706741.429833] sysrq: SysRq : Manual OOM execution
[706741.444999] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706741.529979] sysrq: SysRq : Manual OOM execution
[706741.540990] Purging GPU memory, 1244 pages freed, 13030 pages still pinned.
[706741.630131] sysrq: SysRq : Manual OOM execution
[706741.642302] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706741.730278] sysrq: SysRq : Manual OOM execution
[706741.757189] Purging GPU memory, 1116 pages freed, 13030 pages still pinned.
[706741.830429] sysrq: SysRq : Manual OOM execution
[706741.844992] Purging GPU memory, 1143 pages freed, 13038 pages still pinned.
[706741.930576] sysrq: SysRq : Manual OOM execution
[706741.948983] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.030728] sysrq: SysRq : Manual OOM execution
[706742.048981] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.130876] sysrq: SysRq : Manual OOM execution
[706742.148978] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.231026] sysrq: SysRq : Manual OOM execution
[706742.244981] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.331174] sysrq: SysRq : Manual OOM execution
[706742.344977] Purging GPU memory, 1119 pages freed, 13038 pages still pinned.
[706742.431327] sysrq: SysRq : Manual OOM execution
[706742.440968] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.531471] sysrq: SysRq : Manual OOM execution
[706742.544975] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.631622] sysrq: SysRq : Manual OOM execution
[706742.644971] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.731770] sysrq: SysRq : Manual OOM execution
[706742.756967] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706742.831920] sysrq: SysRq : Manual OOM execution
[706742.841673] Purging GPU memory, 1141 pages freed, 13038 pages still pinned.
[706742.932071] sysrq: SysRq : Manual OOM execution
[706742.940955] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706743.032224] sysrq: SysRq : Manual OOM execution
[706743.048960] Purging GPU memory, 1116 pages freed, 13038 pages still pinned.
[706743.132372] sysrq: SysRq : Manual OOM execution
[706743.152946] Purging GPU memory, 1106 pages freed, 13038 pages still pinned.
[706743.232711] sysrq: SysRq : Manual OOM execution
[706743.253046] Purging GPU memory, 1449 pages freed, 13038 pages still pinned.
[706743.333101] sysrq: SysRq : Manual OOM execution
[706743.349036] Purging GPU memory, 1113 pages freed, 13038 pages still pinned.
[706743.433505] sysrq: SysRq : Manual OOM execution
[706743.449044] Purging GPU memory, 1112 pages freed, 13030 pages still pinned.
[706743.533832] sysrq: SysRq : Manual OOM execution
[706743.548984] Purging GPU memory, 1114 pages freed, 13030 pages still pinned.
[706743.634202] sysrq: SysRq : Manual OOM execution
[706743.649036] Purging GPU memory, 1104 pages freed, 13038 pages still pinned.
[706743.734570] sysrq: SysRq : Manual OOM execution
[706743.749030] Purging GPU memory, 1110 pages freed, 13030 pages still pinned.
[706743.834935] sysrq: SysRq : Manual OOM execution
[706743.849017] Purging GPU memory, 1115 pages freed, 13038 pages still pinned.
[706743.935336] sysrq: SysRq : Manual OOM execution
[706743.948981] Purging GPU memory, 1115 pages freed, 13030 pages still pinned.
[706744.035721] sysrq: SysRq : Manual OOM execution
[706744.057021] Purging GPU memory, 1115 pages freed, 13030 pages still pinned.
[706744.136082] sysrq: SysRq : Manual OOM execution
[706744.157046] Purging GPU memory, 1144 pages freed, 13030 pages still pinned.
[706744.236461] sysrq: SysRq : Manual OOM execution
[706744.257005] Purging GPU memory, 1114 pages freed, 13030 pages still pinned.
[706744.336807] sysrq: SysRq : Manual OOM execution
[706744.361020] Purging GPU memory, 1149 pages freed, 13038 pages still pinned.
[706744.437239] sysrq: SysRq : Manual OOM execution
[706744.453025] Purging GPU memory, 1115 pages freed, 13030 pages still pinned.
[706744.537611] sysrq: SysRq : Manual OOM execution
[706744.553093] Purging GPU memory, 1114 pages freed, 13030 pages still pinned.
[706744.637892] sysrq: SysRq : Manual OOM execution
[706744.653010] Purging GPU memory, 1114 pages freed, 13030 pages still pinned.
[706744.738248] sysrq: SysRq : Manual OOM execution
[706744.753007] Purging GPU memory, 1110 pages freed, 13030 pages still pinned.
[706744.838620] sysrq: SysRq : Manual OOM execution
[706744.853001] Purging GPU memory, 1240 pages freed, 13038 pages still pinned.
[706744.938978] sysrq: SysRq : Manual OOM execution
[706744.952996] Purging GPU memory, 1113 pages freed, 13038 pages still pinned.
[706745.039346] sysrq: SysRq : Manual OOM execution
[706745.052988] Purging GPU memory, 1115 pages freed, 13030 pages still pinned.
[706745.139699] sysrq: SysRq : Manual OOM execution
[706745.160995] Purging GPU memory, 1116 pages freed, 13030 pages still pinned.
[706745.240046] sysrq: SysRq : Manual OOM execution
[706745.257009] Purging GPU memory, 1141 pages freed, 13038 pages still pinned.
[706745.340418] sysrq: SysRq : Manual OOM execution
[706745.361000] Purging GPU memory, 1107 pages freed, 13038 pages still pinned.
[706745.440785] sysrq: SysRq : Manual OOM execution
[706745.460997] Purging GPU memory, 1114 pages freed, 13030 pages still pinned.
[706745.541032] sysrq: SysRq : Manual OOM execution
[706745.556992] Purging GPU memory, 1112 pages freed, 13030 pages still pinned.
[706745.641244] sysrq: SysRq : Manual OOM execution
[706745.656908] Purging GPU memory, 1142 pages freed, 13038 pages still pinned.

@rfjakob
Copy link
Owner

rfjakob commented Jul 16, 2018

Intel integrated graphics? Looks the same at my box: https://gist.github.com/rfjakob/346b7dc611fc3cdf4011

@hakavlad
Copy link
Contributor Author

Intel integrated graphics?

Yes.

@rfjakob rfjakob added this to the v1.2 milestone Jul 16, 2018
rfjakob added a commit that referenced this issue Jul 16, 2018
The kernel oom-killer has many problems, has no
features, and is probably used by nobody at all.

Quoting from the (remove) function comment:

 * Invoke the kernel oom killer by writing "f" into /proc/sysrq-trigger
 *
 * This approach has a few problems:
 * 1) It is disallowed by default (even for root) on Fedora 20.
 *    You have to first write "1" into /proc/sys/kernel/sysrq to enable the "f"
 *    trigger.
 * 2) The Chrome web browser assigns a penalty of 300 onto its own tab renderer
 *    processes. On an 8GB RAM machine, this means 2400MB, and will lead to every
 *    tab being killed before the actual memory hog
 *    See https://code.google.com/p/chromium/issues/detail?id=333617 for more info
 * 3) It is broken in 4.0.5 - see
 *    f7e2ced

#80
@rfjakob
Copy link
Owner

rfjakob commented Jul 16, 2018

Removed in 368c172 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants