oom-kill looping
Hi,
I've got a machine that has been crashing more-or-less weekly due to running out of memory. I've noticed an oddity in oom-kill. It loops 'Out of Memory: Killed process 12345 (abc).' The same PID is listed continuously. This is with kernel 2.4.x. With the 2.2 series it just hung.
Is it a good idea to add checks oom_kill.c in badness() like:
if is_not_runnable(p)
return 0;
if has_pending_term_or_kill(p)
return 0;and if so, would (p->state != 0) and signal_pending(p) be the way to do it? How would you check for just the SIGKILL or SIGTERM signal?
It takes about a week to trigger this OOM, so trials are slow.
--
Berend De Schouwer
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/