-
Notifications
You must be signed in to change notification settings - Fork 157
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
MemAvailable inaccurate, causing earlyoom to not kill processes in low memory scenarios #320
Comments
Tip: Temporarily do Fedora 40 here, too. Looks like this with
|
No hangs here. What does your Looks like here zram got activated during some Fedora upgrade:
|
Thanks for the quick response! I can't reproduce the issue at the moment ( But yep, looks like I have zram as well:
|
I have not been able to reproduce this for the time being, so I'll go ahead and close this for now. |
I've seen this happen on a device that I own, running "echo 3 > /proc/sys/vm/drop_caches" would make the eoom behave correctly. I ended up running it periodically Check the output of free -m, free -m will show that you have a couple of MBs but eoom will show you more available ram. You might be able to provoke this behaviour by forcing the cache to be filled up. cc: @rfjakob maybe this could help you in further issues. |
Thanks for the info! I'm no longer using the same system configuration as when I first encountered the issue (I've switched from Fedora to NixOS), so this may be a factor, but I can't reproduce this with that $ for i in $(seq 1 100); do find / -type f -exec md5sum {} \; & done
$ tail /dev/zero This seems to behave fine for me, with earlyoom killing |
Hi @CanNuhlar, can you post what Anything is possible if there are bugs, but in principle, earlyoom directly uses the |
I'm running a Fedora 40 system with 16GiB of RAM, and have been running earlyoom instead of systemd-oomd for a long time now with no issues. However, recently I have begun to notice freezing up in low memory situations, requiring a force shutdown or
Alt+SysRq+F
to recover. (earlyoom version 1.8.2)Upon further investigation by setting
-r 1
in the config and testing withtail /dev/zero
and watching the logs and MemAvailable withwatch -n 1 systemctl status earlyoom
andwatch -n 0.1 free -m
, it seems that my system freezes up entirely with MemAvailable at around 1500MiB-1700MiB (example line from earlyoom log when system is frozen:1709 of 11556 MiB (14.80%), swap free: 0 of 8191 MiB ( 0.00%)
).Is there some deeper issue going on here, or is the answer just to set
-m
to a much higher value?The text was updated successfully, but these errors were encountered: