logoalt Hacker News

rwmjyesterday at 7:30 PM6 repliesview on HN

It's 2026 and I still can't configure the OOM killer to kill firefox before anything else.


Replies

bellowsgulchyesterday at 8:28 PM

I looked into this, and actually, it seems like maybe you can? https://man7.org/linux/man-pages/man5/proc_pid_oom_score_adj...

So, in actuality, I think your assertion just taught us all something, because despite knowing that the OOM killer and that the Magic SysRq key[1] exists, I didn't know you could configure this as an input!

[1]: https://en.wikipedia.org/wiki/Magic_SysRq_key

show 1 reply
SoftTalkeryesterday at 8:09 PM

I always wanted it to target java processes, as they were always the culprit. These days it's python, VSCode, and antigravity.

dvhyesterday at 7:40 PM

This. It's always browser running amok. I configured win+k shortcut key to: killall -9 chrome

IsTomyesterday at 8:45 PM

It's not a panacea, but in my case setting browser.tabs.unloadOnLowMemory in about:config helped a bunch.

yjftsjthsd-hyesterday at 9:30 PM

Maybe not in kernel, but running the earlyoom daemon will let you do exactly that in userspace.