3 ms·
A possible solution not to this, but for the OOM killer would be an “importance” attribute orthogonal to the task priority - it’s ok to kill the NTP server or t
by rbanffy 5y ago
A possible solution not to this, but for the OOM killer would be an “importance” attribute orthogonal to the task priority - it’s ok to kill the NTP server or to bounce the DNS proxy. It’s much less OK to kill Emacs or my desktop.
- jeffbee 5y agoThat's what /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj are for.
- im3w1l 5y agoI don't know... Everytime I have an OOM it's been "my fault". Either because I wrote some code that allocated memory in a busy loop, or because I tried to compile something in a memory starved VM. I could totally see myself running out of memory trying to open /dev/sda in emacs or doing something stupid in elisp. So killing emacs makes a lot more sense than some innocent daemon.