linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* oom-kill looping
@ 2001-07-28 12:22 Berend De Schouwer
  0 siblings, 0 replies; only message in thread
From: Berend De Schouwer @ 2001-07-28 12:22 UTC (permalink / raw)
  To: linux-mm

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 majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-28 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-28 12:22 oom-kill looping Berend De Schouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox