News for hackers. Stuff that matters.
Re:There is an oom kill count in Linux by TheDong on Sunday December 31, 2023 @08:38AM (#38823962)
systemd-oomd [0].

You can also use facebook's oomd, but the systemd one is basically the same and slightly better.

If you want, you can also write your own custom memory pressure handler using the recent PSI features: https://docs.kernel.org/accounting/psi.html

The other, easier, answer is to buy more ram, if you simply have more memory than you will ever use (such as having 128GiB of memory when you only regularly use 30GiB), you'll rarely run into OOM issues.

[0]: https://www.freedesktop.org/software/systemd/man/latest/syst...

Re:There is an oom kill count in Linux by nucleardog on Sunday December 31, 2023 @10:25PM (#38829529)
> The other, easier, answer is to buy more ram, if you simply have more memory than you will ever use (such as having 128GiB of memory when you only regularly use 30GiB), you'll rarely run into OOM issues.

Wanna emphasize this mostly because it took me way too long to think of.

Was dealing with memory pressure regularly and constantly getting frustrated… then dropped an entire $60 or something to throw another 32GB in the machine and never think about my memory again.

Like a week later when I ran out of disk space again and was struggling to make room… same realization. Spent $75 for a 1TB NVME SSD dropped in my mailbox two days later and doubled my storage.

So we’re talking $135 to double my RAM and storage and stop wasting time and brain space on this stuff.

Re:There is an oom kill count in Linux by CableNinja on Monday January 01, 2024 @11:38AM (#38833055)
In the words of a past employer..

We ran out of space, and then we realized we are a storage company.