Is there an app that would allow me to choose an app to kill when OOM happens?

When my laptop was using around 80-90% RAM, I left it unattended for several hours. When I came back, bar resource monitor showed 40% CPU and 98% RAM usage, mouse was moving at 0.2 FPS stuck in cursor mode, no buttons could be pressed, system did not react to keyboard. Alt+F4, switching to tty, Alt+PrtScr+F did not work. I had to reboot using the physical power button and lose important work.

It’s not the first time I was stuck in OOM condition, Fedora is known for not handling it well. Is there a piece of software that would reserve several megabytes to itself, and when computer freezes with OOM would list available processes to kill?

Fedora delivers a default package when installing, configuring systemd-oomd is up to you. Not everyone has the same environment.

systemd-analyze cat-config systemd/oomd.conf shows you what you have and where you can config you see while using man oomd.conf. You can create some called drop-in files in /etc/systemd/oomd.conf.d/*.conf with your specific configuration.

And there is also oomctl where you can get some details.

1 Like

Is there a blog or something I can read that explains this comment?

I found one for Linux in general Reddit - Dive into anything

And there is one person with Fedora-specific problem of opposite nature Reddit - Dive into anything

If you give us an inxi -Fzxx we can see how you have your resources used.

As your article said … it depends on the configuration of your system, using the also the swap space. And by the way, the statement has been made 3Years ago :face_with_spiral_eyes:

You made it sound like this was a well know issue.
Its 3 years old and the replies dispute the claims.

IIUC, psi-notify is supposed to do something like that.

I haven’t used it personally.

2 Likes