Oops, Fedora 32's workstation variation (just pre-install package difference) by default installs earlyoom (user-space OOM killer). Is this just a `systemd` branded oomd? Or does it do different things?
Announcement
Collapse
No announcement yet.
systemd-oomd Looks Like It Will Come Together For systemd 247
Collapse
X
-
Originally posted by terrywang View PostOops, Fedora 32's workstation variation (just pre-install package difference) by default installs earlyoom (user-space OOM killer). Is this just a `systemd` branded oomd? Or does it do different things?
Afaik, if both RAM and swap go below 10% free, earlyoom issues SIGTERM to the process with the largest oom_score. If both RAM and swap go below 5% free, earlyoom issues SIGKILL to the process with the largest oom_score. https://github.com/rfjakob/earlyoom
AFAIK this is installed by default in Fedora 32 and avaliable in most other distros.
The oom daemon that will go into systemd should be the one from Facebook, and it is more advanced as it's looking at more detailed ram usage of stuff using a more granular API that was merged in Linux kernel, tracking processes using cgroups.
A userspace out-of-memory killer. Contribute to facebookincubator/oomd development by creating an account on GitHub.
That said, if all you want is avoiding to freeze the system, it's enough to install earlyoom. systemd's new daemon will probably be for more serious usageLast edited by starshipeleven; 14 July 2020, 09:09 AM.
- Likes 1
Comment
-
Originally posted by halo9en View Post
I despise Poettering with a passion but... ConsoleKit... nightmares resurface...
- Likes 2
Comment
-
Originally posted by starshipeleven View PostIf you think systemd killing process is a disaster waiting to happen, you won't believe what disasters the kernel OOM actually does reliably. Like soft-locking the system in an unresponsive mode if there is swap at all.
Not everyone enjoys babysitting a machine that can and should deal with it on its own
- Likes 1
Comment
-
Originally posted by xnor View PostOne word: ignorance.
Again, people that don't know what they're talking about and haven't got the first clue about how Linux handles OOM situations ideologically condemn it because it has "systemd" in its name.
Maybe they have a political structure that allows for people to fix the OS kernel without bandaids and hacks. Who knows?Last edited by k1e0x; 14 July 2020, 02:06 PM.
Comment
-
Originally posted by starshipeleven View PostPolitical problemsrequire political solutions. Touching kernel code is a pain in the ass and you also need to convince people that it is a problem at all (afaik they are not convinced in the lkml). It's much easier to just move that to a userspace application.
...isn't there a sysctl option to disable exec code swapping?
Comment
-
Originally posted by andyprough View PostOh, I would absolutely believe it, which is why I use proper hardware setups, excess ram, constant incremental data backups, frequent incremental system file backups, and pay attention that my processes don't overload my system.
ignore the enormous numbers of unresolved systemd issues that are posted online
If you know what you are doing and have good admin practices, it really doesn't matter what oom manager or init manager you use - you'll figure out how to do it safely.
You and I know how to run a system well no matter what the init system
people who are going to rely on oomd as some kind of magical fairy dust that means they don't need any backup plan and they are going to get themselves into huge trouble.
- Likes 1
Comment
-
Originally posted by tildearrow View PostLet's think of an out-of-tree kernel module...
...isn't there a sysctl option to disable exec code swapping?
Comment
-
Originally posted by k1e0x View PostNo other OS needs this,
I also experienced that a few times.
Maybe they have a political structure that allows for people to fix the OS kernel without bandaids and hacks.
Comment
-
Originally posted by haplo602 View Post
I may be the ignorant one here .... but why can't they simply improve the already available OOM mechanism in the kernel ? So far I don't see any need for this to be systemd exclusice ?
That's also a main issue with systemd haters from what I can see. It gobbles up various things that originated elsewhere and improves them killing the original project in the process... very Microsoft-like if you ask me ...
From the kernel's pov all is fine. From a user's pov it's not the right tool, it's dumb and it's slow to react and makes wrong decisions.Last edited by xnor; 14 July 2020, 03:38 PM.
- Likes 1
Comment
Comment