From: Hugh Dickins <hughd@google.com>
To: Mike Galbraith <efault@gmx.de>
Cc: paulmck@linux.vnet.ibm.com, LKML <linux-kernel@vger.kernel.org>,
Miklos Szeredi <mszeredi@suse.cz>
Subject: Re: rcu: endless stalls
Date: Tue, 12 Jun 2012 21:31:45 -0700 (PDT) [thread overview]
Message-ID: <alpine.LSU.2.00.1206122120460.5221@eggly.anvils> (raw)
In-Reply-To: <1339558508.7472.26.camel@marge.simpson.net>
On Wed, 13 Jun 2012, Mike Galbraith wrote:
> On Mon, 2012-06-11 at 20:10 +0200, Mike Galbraith wrote:
> > On Mon, 2012-06-11 at 11:01 -0700, Paul E. McKenney wrote:
>
> > > > 2aa15890 - mm: prevent concurrent unmap_mapping_range() on the same inode
> > >
> > > I confess, you lost me on this one. You believe that this commit is
> > > the cause of the RCU CPU stall warnings?
> >
> > 4096 tasks on 4096 CPUs exit (well, try to) simultaneously.
> >
> > Call Trace:
> > __mutex_lock_slowpath+0x94/0x150
> > mutex_lock+0x1a/0x40
> > unlink_file_vma+0x3f/0xf0
> > free_pgtables+0x40/0x100
> > exit_mmap+0xb0/0x120
> > mmput+0x49/0x120
> > exit_mm+0x122/0x160
> > do_exit+0x179/0x8d0
> > do_group_exit+0x3d/0xb0
> > sys_exit_group+0x12/0x20
> >
> > Monster box dies screaming.
>
> That commit landed in stable, box with way too many cores (NR_CPUS=0!!)
> chokes instantly with loads of spinners. Ok, so zillion CPUs grabbing a
> mutex in lockstep is a bad idea (_having_ zillion?), but is there pilot
> error involved in a logjam like this?
Surely some mistake...
I can't find any mention of which kernel release you're talking about.
But Miklos's 2aa15890 unmap_mutex was introduced in 2.6.38 and removed
in 3.0, when PeterZ converted i_mmap_lock to i_mmap_mutex, and removed
the need for the additional unmap_mutex.
The unmap_mutex would never have been taken in unlink_file_vma(),
shown in your stacktrace above: it was for truncation and invalidation.
The likely mutex in unlink_file_vma() would be the i_mmap_mutex.
So I expect you're talking about a 3.0 or later kernel.
But then why would someone "backport" Miklos's patch to stable for it?
You lost me too!
Hugh
next prev parent reply other threads:[~2012-06-13 4:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 10:06 Mike Galbraith
2012-06-11 13:39 ` Paul E. McKenney
2012-06-11 14:22 ` Mike Galbraith
2012-06-11 16:54 ` Paul E. McKenney
2012-06-11 17:20 ` Mike Galbraith
2012-06-11 18:01 ` Paul E. McKenney
2012-06-11 18:10 ` Mike Galbraith
2012-06-13 3:35 ` Mike Galbraith
2012-06-13 4:31 ` Hugh Dickins [this message]
2012-06-13 5:56 ` Mike Galbraith
2012-06-13 7:12 ` Mike Galbraith
2012-06-14 7:45 ` Mike Galbraith
2012-06-14 16:47 ` Paul E. McKenney
2012-06-14 21:34 ` Mike Galbraith
2012-06-15 7:49 ` Mike Galbraith
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=alpine.LSU.2.00.1206122120460.5221@eggly.anvils \
--to=hughd@google.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mszeredi@suse.cz \
--cc=paulmck@linux.vnet.ibm.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
all inboxes | Powered by JetHome®