rfjakob / earlyoom

earlyoom - Early OOM Daemon for Linux
MIT License
2.96k stars 157 forks source link

Can't get earlyoom to kill anything #297

Closed jxu closed 1 year ago

jxu commented 1 year ago

earlyoom v1.3, Ubuntu 20.04. The program never kills any memory-intensive process. systemd log shows nothing reported. I tried with tail /dev/zero and [0] * 4 * 10**9 in python.

rfjakob commented 1 year ago

Hi, can you try to run

earlyoom -d

and see what output you get?

jxu commented 1 year ago

I had stopped using earlyoom and switched to nohang.

Here's the output when nothing is memory leaking anyway

earlyoom v1.3
mem total: 23775 MiB, swap total: 7999 MiB
sending SIGTERM when mem <= 10 % and swap <= 10 %,
        SIGKILL when mem <=  5 % and swap <=  5 %
dry-running kill_largest_process()...
pid   416: badness 500 vm_rss  19936 systemd-journal
    ^ new victim (higher badness)
pid   458: badness   0 vm_rss   8604 systemd-udevd
pid   980: badness 666 vm_rss  13140 systemd-resolve
    ^ new victim (higher badness)
pid   981: badness 666 vm_rss   6144 systemd-timesyn
pid   986: badness 666 vm_rss   8036 accounts-daemon
pid   987: badness 666 vm_rss   1956 acpid
pid   990: badness 666 vm_rss   4164 avahi-daemon
pid   991: badness 666 vm_rss   4452 bluetoothd
pid   992: badness 666 vm_rss   3240 cron
pid   994: badness  67 vm_rss   6644 dbus-daemon
pid   995: badness 666 vm_rss  20904 NetworkManager
    ^ new victim (higher vm_rss)
pid   998: badness 666 vm_rss    576 earlyoom
pid  1003: badness 666 vm_rss   3620 irqbalance
pid  1007: badness 666 vm_rss  21068 networkd-dispat
    ^ new victim (higher vm_rss)
pid  1009: badness 666 vm_rss  12140 nohang
pid  1013: badness 666 vm_rss  10488 polkitd
pid  1015: badness 666 vm_rss   5720 rsyslogd
pid  1017: badness 666 vm_rss   6144 switcheroo-cont
pid  1020: badness 666 vm_rss   8484 systemd-logind
pid  1021: badness 666 vm_rss   9300 thermald
pid  1023: badness 666 vm_rss  12964 udisksd
pid  1025: badness 666 vm_rss   9444 wpa_supplicant
pid  1047: badness 666 vm_rss   1872 nvidia-persiste
pid  1094: badness 666 vm_rss    356 avahi-daemon
pid  1192: badness 666 vm_rss  14980 colord
pid  1246: badness 666 vm_rss  11704 ModemManager
pid  1266: badness 666 vm_rss  23068 unattended-upgr
    ^ new victim (higher vm_rss)
pid  1270: badness 666 vm_rss   7476 lightdm
pid  1292: badness 670 vm_rss 200704 Xorg
    ^ new victim (higher badness)
pid  1372: badness 667 vm_rss  58128 nordvpnd
pid  1376: badness 666 vm_rss  15940 whoopsie
pid  1401: badness 666 vm_rss   1964 agetty
pid  1407: badness 666 vm_rss    444 kerneloops
pid  1409: badness 666 vm_rss    444 kerneloops
pid  1451: badness 666 vm_rss   4784 lighttpd
pid  1454: badness 666 vm_rss  23184 php-cgi
pid  1455: badness 667 vm_rss  50896 tor
pid  1461: badness 674 vm_rss 399304 mysqld
    ^ new victim (higher badness)
pid  1466: badness 666 vm_rss   4644 php-cgi
pid  1467: badness 666 vm_rss   4644 php-cgi
pid  1468: badness 666 vm_rss   4644 php-cgi
pid  1469: badness 666 vm_rss   4644 php-cgi
pid  1502: badness 666 vm_rss    576 none
pid  1667: badness 666 vm_rss   3176 rtkit-daemon
pid  1765: badness 666 vm_rss  10024 upowerd
pid  1863: badness 666 vm_rss   8376 lightdm
pid  1888: badness 666 vm_rss  10256 systemd
pid  1891: badness 666 vm_rss   3556 (sd-pam)
pid  1908: badness 667 vm_rss  63452 OpenTabletDrive
pid  1909: badness 666 vm_rss  21320 pulseaudio
pid  1911: badness 666 vm_rss  27444 tracker-miner-f
pid  1914: badness 666 vm_rss   8420 gnome-keyring-d
pid  1919: badness 666 vm_rss   5716 dbus-daemon
pid  1922: badness 666 vm_rss  13932 gnome-session-b
pid  1935: badness 666 vm_rss   7904 gvfsd
pid  1940: badness 666 vm_rss   5560 gvfsd-fuse
pid  1946: badness 666 vm_rss   9128 gvfs-udisks2-vo
pid  1953: badness 666 vm_rss   6036 gvfs-mtp-volume
pid  1957: badness 666 vm_rss   7556 gvfs-afc-volume
pid  1962: badness 666 vm_rss   7040 gvfs-gphoto2-vo
pid  1966: badness 666 vm_rss   6096 gvfs-goa-volume
pid  1970: badness 667 vm_rss  35000 goa-daemon
pid  1977: badness 666 vm_rss   9036 goa-identity-se
pid  2104: badness 666 vm_rss    452 ssh-agent
pid  2122: badness 666 vm_rss   6608 at-spi-bus-laun
pid  2127: badness 666 vm_rss   4428 dbus-daemon
pid  2135: badness 666 vm_rss   4340 gnome-session-c
pid  2142: badness 666 vm_rss  15904 gnome-session-b
pid  2156: badness 676 vm_rss 455328 gnome-shell
    ^ new victim (higher badness)
pid  2197: badness 666 vm_rss   9308 ibus-daemon
pid  2201: badness 666 vm_rss   7016 ibus-memconf
pid  2202: badness 666 vm_rss  28064 ibus-extension-
pid  2206: badness 666 vm_rss  22236 ibus-x11
pid  2212: badness 666 vm_rss   6436 ibus-portal
pid  2219: badness 666 vm_rss   6620 at-spi2-registr
pid  2224: badness 666 vm_rss  19792 gnome-shell-cal
pid  2225: badness 666 vm_rss   4652 xdg-permission-
pid  2236: badness 666 vm_rss  25892 evolution-sourc
pid  2256: badness 666 vm_rss  30816 evolution-calen
pid  2264: badness 666 vm_rss  26920 gjs
pid  2266: badness 666 vm_rss   6048 dconf-service
pid  2270: badness 666 vm_rss   6568 gsd-a11y-settin
pid  2271: badness 666 vm_rss  25004 gsd-color
pid  2272: badness 666 vm_rss  16088 gsd-datetime
pid  2274: badness 666 vm_rss   7748 gsd-housekeepin
pid  2276: badness 666 vm_rss  23572 gsd-keyboard
pid  2277: badness 666 vm_rss  25588 gsd-media-keys
pid  2279: badness 666 vm_rss  24072 gsd-power
pid  2281: badness 666 vm_rss  11176 gsd-print-notif
pid  2282: badness 666 vm_rss   6080 gsd-rfkill
pid  2283: badness 666 vm_rss   5964 gsd-screensaver
pid  2284: badness 666 vm_rss  10844 gsd-sharing
pid  2285: badness 666 vm_rss   9980 gsd-smartcard
pid  2286: badness 666 vm_rss   9104 gsd-sound
pid  2287: badness 666 vm_rss   6996 gsd-usb-protect
pid  2288: badness 666 vm_rss  22508 gsd-wacom
pid  2289: badness 666 vm_rss   8164 gsd-wwan
pid  2290: badness 666 vm_rss  28224 gsd-xsettings
pid  2292: badness 666 vm_rss   7060 ibus-engine-sim
pid  2294: badness 666 vm_rss   5616 gsd-disk-utilit
pid  2295: badness 666 vm_rss   8476 indicator-messa
pid  2303: badness 667 vm_rss  51152 kdeconnectd
pid  2306: badness 667 vm_rss  57260 evolution-alarm
pid  2396: badness 666 vm_rss  15172 gsd-printer
pid  2434: badness 666 vm_rss   8260 gvfsd-trash
pid  2458: badness 666 vm_rss  29828 evolution-addre
pid  2497: badness 678 vm_rss 602080 firefox
    ^ new victim (higher badness)
pid  2533: badness 666 vm_rss  10712 xdg-desktop-por
pid  2537: badness 666 vm_rss   6328 xdg-document-po
pid  2546: badness 666 vm_rss  28956 xdg-desktop-por
pid  2590: badness 667 vm_rss  46452 Socket Process
pid  2657: badness 780 vm_rss 129184 Privileged Cont
    ^ new victim (higher badness)
pid  2712: badness 740 vm_rss 325456 WebExtensions
pid  2931: badness 780 vm_rss 157420 Isolated Web Co
    ^ new victim (higher vm_rss)
pid  2958: badness 666 vm_rss  15496 gvfsd-metadata
pid  3744: badness 667 vm_rss  59416 RDD Process
pid  3746: badness 667 vm_rss  55944 Utility Process
pid  5245: badness 668 vm_rss  67552 gnome-terminal-
pid  5253: badness 666 vm_rss   9920 bash
pid  5273: badness 671 vm_rss 236692 element-desktop
pid  5277: badness 667 vm_rss  49860 element-desktop
pid  5278: badness 667 vm_rss  48564 element-desktop
pid  5280: badness 666 vm_rss  12828 element-desktop
pid  5320: badness 668 vm_rss  73348 element-desktop
pid  5326: badness 871 vm_rss 253600 element-desktop
    ^ new victim (higher badness)
pid  8148: badness 666 vm_rss  11380 gvfsd-http
pid  8196: badness 666 vm_rss   8224 gvfsd-network
pid  8234: badness 666 vm_rss   8192 gvfsd-dnssd
pid  8994: badness 668 vm_rss  84280 nautilus
pid  9049: badness 666 vm_rss   3804 ssh-agent
pid 13901: badness 668 vm_rss  82428 fwupd
pid 19773: badness 781 vm_rss 192704 Isolated Web Co
pid 19777: badness 781 vm_rss 167404 Isolated Web Co
pid 20968: badness 666 vm_rss  10276 cupsd
pid 20969: badness 666 vm_rss  13252 cups-browsed
pid 21254: badness 804 vm_rss 212612 element-desktop
pid 21257: badness 800 vm_rss  30260 element-desktop
pid 21369: badness 738 vm_rss 237356 Isolated Web Co
pid 21687: badness 666 vm_rss   1652 Mathematica
pid 21694: badness 672 vm_rss 302000 Mathematica
pid 21710: badness 671 vm_rss 235976 WolframKernel
pid 22546: badness 670 vm_rss 196352 WolframKernel
pid 22572: badness 674 vm_rss 365180 java
pid 22604: badness 666 vm_rss   9904 XML.exe
pid 23634: badness 670 vm_rss 165856 Discord
pid 23639: badness 667 vm_rss  51088 Discord
pid 23640: badness 667 vm_rss  50756 Discord
pid 23642: badness 666 vm_rss   8380 Discord
pid 23656: badness 666 vm_rss   3168 chrome_crashpad
pid 23676: badness 803 vm_rss 173892 Discord
pid 23678: badness 668 vm_rss  75128 Discord
pid 23706: badness 800 vm_rss  23624 Discord
pid 23722: badness 673 vm_rss 339680 Discord
pid 23767: badness 667 vm_rss  58408 Discord
pid 24325: badness 823 vm_rss  79380 Web Content
pid 24389: badness 823 vm_rss  79376 Web Content
pid 24392: badness 823 vm_rss  79348 Web Content
pid 24451: badness 666 vm_rss    516 earlyoom
selecting victim took 23.784 ms