News for hackers. Stuff that matters.
Re:I've now disabled systemd-oomd on my Fedora desktops by Shorel on Thursday December 08, 2022 @10:18AM (#33908717)
The problem in this case is deeper. The Linux kernel overcommits memory.

OOMD is a workaround for this behaviour.

And it can't be disabled. I disabled the kernel memory overcommit and then neither Chrome nor Edge were running.

I can't use my computer without my browser of choice. Therefore, overcommit can't be disabled.

Re:I've now disabled systemd-oomd on my Fedora desktops by bcrl on Thursday December 08, 2022 @01:39PM (#33911397)
Maybe the problem is with the bloated apps that don't free memory? You can't blame the kernel for that. I routinely see Firefox consuming 10GB of RAM on my Linux desktop. It's nuts.
Re:I've now disabled systemd-oomd on my Fedora desktops by chlorion on Wednesday December 21, 2022 @06:02PM (#34087552)
Chrome and Edge not functioning without overcommit is not the fault of the kernel though.

The browsers will allocate more memory than is physically available in the system but often not "touch" it. Without over-commit this causes an OOM situation and the kernel kills the browser, but that's what it's supposed to do when over-commit is disabled!

I believe some of these massive allocations are used for security purposes or somehow related to the chromium sandbox but I can't remember exactly what's going on. Some sanitizers like ASAN do something similar for detecting invalid memory accesses (and hence can't be used without over-commit either)!