Skip to contentSkip to conversation

Andrea VM changes

DISCUSSION Dan Kegel 2 participants 2 messages Sep 1, 2003

lore
Share & tools
lore

Dan Kegel

author
#0 lore raw
Quoted 2 lines · Jamie Lokier

I'd love to be able to select which app _doesn't_ deserve the axe. I.e. not sshd, and then not httpd.

I tried adding a hinting system that let the user tweak the badness calculated by the OOM killer.
Didn't help. No matter how I tried to protect
important processes, there was always a case where the OOM killer ended up killing them anyway.

That was probably just a weakness in how I did the hinting. You might be able to do it with some sort of 'for god's sake never ever kill this process' tweak, but before I tried that, I realized that making OOM conditions halt the system was what I really wanted for my users.

- Dan

Signature · 3 lines
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
#1 lore raw
Quoted 9 lines · Dan Kegel
Quoted 2 lines · Jamie Lokier

I'd love to be able to select which app _doesn't_ deserve the axe. I.e. not sshd, and then not httpd.

I tried adding a hinting system that let the user tweak the badness calculated by the OOM killer.
Didn't help. No matter how I tried to protect
important processes, there was always a case where the OOM killer ended up killing them anyway.

Indeed. You can't have completely fool-proof heuristics.

Then again, a heuristic is often better than killing syslogd at the first hint of trouble.

Signature · 3 lines
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan