-
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
fatal: could not find entry 'SwapFree:' in /proc/meminfo: Numerical result out of range #214
Comments
Hopefully helps diagnosing rare errors like #214 .
I now print out the whole meminfo buffer when something like this happens ( 5db93d9 ). Can you compile earlyoom from github and see if you can get this to happen again? Would be most helpful to figuring out what is happening here. |
@oxalica What's new? Is the problem solved? |
Maybe the issue should be closed. |
Close for the error dumping in master. |
I had this happen. SwapFree looks like this:
This occurred when earlyoom didn't kill processes fast enough and the kernel oom was getting invoked. |
Huh. Did you get the line
too? |
Yes, here's the full output:
|
|
Wow, looks like a kernel bug. What is your kernel version ( |
This is a rocky 8.8 machine with kernel |
@oxalica did you also run a RHEL8 kernel when this happened? |
No. I was using NixOS and is still using it now. The issue does not reproduce in the last year for me since Sorry but I don't know the exact kernel version when I encountered this issue. But I guess it's the latest LTS kernel at that time, which was about 5.4. |
Workarounded in earlyoom via edd3d94. |
earlyoom
exited abnormally withfatal: could not find entry 'SwapFree:' in /proc/meminfo: Numerical result out of range
.I don't know the content of
/proc/meminfo
at that moment.When I found it failed, I checked the field is fine like
SwapFree: 10296040 kB
.After a restart, it runs normally currently.
Maybe related: #189
cc: @nh2
Systemd log:
Current
/proc/meminfo
, if helps. (Not the content when broken)The text was updated successfully, but these errors were encountered: