From: Steven Rostedt <rostedt@goodmis.org>
To: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Christoph Lameeter <cl@linux.com>,
Wanpeng Li <liwanp@linux.vnet.ibm.com>,
Pekka Enberg <penberg@kernel.org>
Subject: Re: [BUG] hackbench locks up with perf in 3.11-rc1 and beyond
Date: Thu, 08 Aug 2013 09:07:49 -0400 [thread overview]
Message-ID: <1375967269.6848.46.camel@gandalf.local.home> (raw)
In-Reply-To: <20130808050441.GA3214@lge.com>
On Thu, 2013-08-08 at 14:04 +0900, Joonsoo Kim wrote:
> Sorry about it.
> Now, I think that this is a buggy commit, so should be reverted.
>
> For confirm that, could I ask a question about your configuration, Steven?
> I guess, you may set 0 to all kmem caches's cpu_partial via sysfs, doesn't it?
Ah, you're right. As this box is also used to test the -rt patch,
there's a script installed to disable all cpu_partials. This is because
cpu_partials are known to cause non-deterministic behavior in -rt.
I forgot about that script, as this box is used for regular mainline
testing as well.
>
> In this case, memory leak is possible in following case.
> Code flow of possible leak is follwing case.
>
> * in __slab_free()
> 1. (!new.inuse || !prior) && !was_frozen
> 2. !kmem_cache_debug && !prior
> 3. new.frozen = 1
> 4. after cmpxchg_double_slab, run the (!n) case with new.frozen=1
> 5. with this patch, put_cpu_partial() doesn't do anything,
> because this cache's cpu_partial is 0
> 6. return
>
> In step 5, leak occur.
>
> I have a solution to prevent this problem, but in this stage, IMHO,
> reverting it may be better.
Yeah, I would suggest that too. As this seems to be a serious
regression.
Thanks!
-- Steve
next prev parent reply other threads:[~2013-08-08 13:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 4:08 Steven Rostedt
2013-08-08 5:04 ` Joonsoo Kim
2013-08-08 13:07 ` Steven Rostedt [this message]
2013-08-08 13:21 ` Steven Rostedt
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=1375967269.6848.46.camel@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liwanp@linux.vnet.ibm.com \
--cc=penberg@kernel.org \
--cc=torvalds@linux-foundation.org \
/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®