this post was submitted on 03 Nov 2024
164 points (100.0% liked)

Linux

6004 readers
267 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] FizzyOrange 12 points 3 months ago (1 children)

That's cool, but in my experience if you get to the OOM killer then 80% of the time it's too late and your system is basically dead. My laptop hard reboots most of the time when this happens.

Hopefully it works with the early-OOM hacks.

[–] [email protected] 3 points 3 months ago (1 children)

99% of the time, it's my browser, so I ended up writing a script that watches memory used. If it reaches 95%, it throws a warning, and 98% force kills my browser. I'd rather that happen than my entire system lock up and have to hard reboot.

[–] FizzyOrange 3 points 3 months ago

There's a "proper" version of this hack called early oom. I haven't used it though and now that I look at it it seems like it uses the same completely broken "guess which process to kill, who cares if it's init" system that the normal oom killer uses so your solution sounds better.

Is it so hard to just pause the system and ask the user which app to kill?

[–] [email protected] 10 points 3 months ago (1 children)

That's sweet. I always used to have this problem with my memory running out, I fixed it by getting a shit load of RAM.

[–] FizzyOrange 2 points 3 months ago (1 children)

I have 32 GB but it's not enough. Try opening 8 instances of VSCode, Firefox and Chrome with a few dozen tabs. Unfortunately my laptop doesn't support 64 GB of RAM.

[–] [email protected] 2 points 3 months ago

I know your pain. My work laptop only has 32 GB. Sometimes I have to run at least 4 to 5 instances across vs code, visual studio, and such. I wish I could use my home computer instead because that has 128 GB of RAM.

[–] [email protected] 2 points 3 months ago (2 children)

But if you're filling up all RAM and swap, either you needed to upgrade a while ago, or you're doing something wrong.

[–] [email protected] 4 points 3 months ago

Or you opened pycharm (ಥ﹏ಥ) 5 gigs of RAM is fairly audacious for a single program :/

[–] [email protected] 4 points 3 months ago (1 children)

Not necessarily. When Ubuntu 22.04 had an issue where systemd-oomd was killing apps that touched the swap, something like this notification would have cleared up a lot of confusion from end users, myself included.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

Or your OS* is doing something wrong 😆

[–] Kissaki 1 points 3 months ago

OS stands for "Oh Shit!"