linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: David Rientjes <rientjes@google.com>
Cc: Christoph Lameter <clameter@sgi.com>, linux-mm@kvack.org
Subject: Re: [patch] oom: serialize oom killer for cpusets
Date: Tue, 26 Jun 2007 23:57:03 +0200	[thread overview]
Message-ID: <20070626215702.GA22366@v2.random> (raw)
In-Reply-To: <alpine.DEB.0.99.0706261414440.6721@chino.kir.corp.google.com>

On Tue, Jun 26, 2007 at 02:20:42PM -0700, David Rientjes wrote:
> In that case, it would turn into a simple cpuset_exit_oom(tsk); in the 
> test_tsk_thread_flag(tsk, TIF_MEMDIE) check in exit_notify().  That's 
> clean, but what happens if tsk gets stuck in TASK_UNINTERRUPTIBLE, for 
> whatever reason, and then we leave the cpuset locked out of the OOM 
> killer?  I'm trying to avoid having a last_tif_memdie_jiffies for each 
> struct cpuset.

Right, to avoid risking deadlocks with infinite loops like the one
I've fixed in nfs (a R state deadlock in that case, not D state),
you'd need a last_tif_memdie_jiffies in the cpuset :(

I wish there was a cleaner way to detect if we run into a
deadlock... At least in your case since you kill "current" you avoid
some of the TASK_UNINTERRUPTIBLE deadlocks like the one where the
chosen one is blocked in the PG_locked bitflag. The chosen one for you
is alive and well running inside alloc_pages, so it's more likely
capable to notice that it received a sigkill, than the ones that are
already in D state.

> I was assuming that your patchset had already reached -mm so I simply 

I didn't receive any -mm automatic email about it yet, so I assumed
it's not yet in.

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2007-06-26 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-26 17:00 David Rientjes
2007-06-26 20:55 ` Andrea Arcangeli
2007-06-26 21:20   ` David Rientjes
2007-06-26 21:57     ` Andrea Arcangeli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070626215702.GA22366@v2.random \
    --to=andrea@suse.de \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=rientjes@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox