3 ms·
Tangentially, an issue with the desktop use case is that the main process of a long-running browser is often the first to be killed, instead of one of its conte
by mgdlbp 3y ago
Tangentially, an issue with the desktop use case is that the main process of a long-running browser is often the first to be killed, instead of one of its content processes, which it can survive losing. This is the case since 2019 as the kernel no longer prefers killing children.[0]
As far as I know, unless a browser manages its oom_score_adj, which none do, a wrapper is insufficient as a workaround and a daemon would have to do so on its behalf, because the value is inherited when forking.
[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbbe48029720d2c6b6733f78d02571a281511adb https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...