All of lore.kernel.org
 help / color / mirror / Atom feed
* OK to set PF_MEMDIE on cleanup tasks?
@ 2003-10-14 15:17 Paul E. McKenney
  2003-10-15  0:12 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Paul E. McKenney @ 2003-10-14 15:17 UTC (permalink / raw)
  To: linux-kernel

Hello!

We have tasks that actively return memory to the system, which we
would like to exempt from the OOM killer, as killing such tasks under
low-memory conditions would indeed be counterproductive.  It looks like
the "official" way to do this is to catch/ignore signal 15, which results
in PF_MEMDIE being set (in the 2.6 kernel), thus preventing the OOM killer
from killing the task again.  I don't see where PF_MEMDIE is cleared,
though there are a number of subtle ways one might do this that I would
have missed.

So...  Is it considered legit to simply set PF_MEMDIE when creating
the cleanup task?  Or is there some reason that one should deal with
signal 15?

All enlightenment much appreciated!

						Thanx, Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-17  0:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 15:17 OK to set PF_MEMDIE on cleanup tasks? Paul E. McKenney
2003-10-15  0:12 ` Andrew Morton
2003-10-15  1:34   ` Gerrit Huizenga
2003-10-16 17:10   ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.