linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Brian Christiansen <brian.o.christiansen@gmail.com>
To: Vladimir Davydov <vdavydov@virtuozzo.com>
Cc: Tejun Heo <tj@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@kernel.org>,
	cgroups@vger.kernel.org, linux-mm@kvack.org
Subject: Re: PROBLEM: BUG when using memory.kmem.limit_in_bytes
Date: Fri, 22 Jan 2016 10:35:29 -0800	[thread overview]
Message-ID: <CAKB58ikCDFJbtkV7XZyNam2s4wrND-N2RH6Jt0=gPg13RvQfrw@mail.gmail.com> (raw)
In-Reply-To: <20160122163324.GH26192@esperanza>

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

On Fri, Jan 22, 2016 at 8:33 AM, Vladimir Davydov <vdavydov@virtuozzo.com>
wrote:

> On Fri, Jan 22, 2016 at 10:51:04AM -0500, Tejun Heo wrote:
> > On Fri, Jan 22, 2016 at 09:48:54AM -0500, Johannes Weiner wrote:
> > > On Fri, Jan 22, 2016 at 04:50:42PM +0300, Vladimir Davydov wrote:
> > > > From first glance, it looks like the bug was triggered, because
> > > > mem_cgroup_css_offline was run for a child cgroup earlier than for
> its
> > > > parent. This couldn't happen for sure before the cgroup was switched
> to
> > > > percpu_ref, because cgroup_destroy_wq has always had max_active == 1.
> > > > Now, however, it looks like this is perfectly possible for
> > > > css_killed_ref_fn is called from an rcu callback - see kill_css ->
> > > > percpu_ref_kill_and_confirm. This breaks kmemcg assumptions.
> > > >
> > > > I'll take a look what can be done about that.
> > >
> > > It's an acknowledged problem in the cgroup core then, and not an issue
> > > with kmemcg. Tejun sent a fix to correct the offlining order here:
> > >
> > >
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1056544.html
> >
> > Patche descriptions updated and applied to cgroup/for-4.5-fixes.
> >
> >  http://lkml.kernel.org/g/20160122154503.GD32380@htj.duckdns.org
> >  http://lkml.kernel.org/g/20160122154552.GE32380@htj.duckdns.org
>
> I couldn't reproduce the issue with the two patches applied. Looks like
> they fix it.
>
> Thanks,
> Vladimir
>

Thanks for the quick turn around! I'll test it when it gets into the
mainline. Do you know what versions the fixes will go into?

Thanks,
Brian

[-- Attachment #2: Type: text/html, Size: 2585 bytes --]

      reply	other threads:[~2016-01-22 18:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 19:49 PROBLEM: BUG when using memory.kmem.limit_in_bytes Brian Christiansen
2016-01-22 13:50 ` Vladimir Davydov
2016-01-22 14:48   ` Johannes Weiner
2016-01-22 15:51     ` Tejun Heo
2016-01-22 16:33       ` Vladimir Davydov
2016-01-22 18:35         ` Brian Christiansen [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='CAKB58ikCDFJbtkV7XZyNam2s4wrND-N2RH6Jt0=gPg13RvQfrw@mail.gmail.com' \
    --to=brian.o.christiansen@gmail.com \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=tj@kernel.org \
    --cc=vdavydov@virtuozzo.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;
as well as URLs for NNTP newsgroup(s).