From: Vladimir Davydov <vdavydov-5HdwGun5lf+gSpxsJD1C4w@public.gmane.org>
To: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>,
Brian Christiansen
<brian.o.christiansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Michal Hocko <mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org
Subject: Re: PROBLEM: BUG when using memory.kmem.limit_in_bytes
Date: Fri, 22 Jan 2016 19:33:24 +0300 [thread overview]
Message-ID: <20160122163324.GH26192@esperanza> (raw)
In-Reply-To: <20160122155104.GG32380-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg1056544.html
>
> Patche descriptions updated and applied to cgroup/for-4.5-fixes.
>
> http://lkml.kernel.org/g/20160122154503.GD32380-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org
> http://lkml.kernel.org/g/20160122154552.GE32380-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org
I couldn't reproduce the issue with the two patches applied. Looks like
they fix it.
Thanks,
Vladimir
next prev parent reply other threads:[~2016-01-22 16:33 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
[not found] ` <CAKB58ikDkzc8REt31WBkD99+hxNzjK4+FBmhkgS+NVrC9vjMSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-22 13:50 ` Vladimir Davydov
2016-01-22 14:48 ` Johannes Weiner
2016-01-22 15:51 ` Tejun Heo
[not found] ` <20160122155104.GG32380-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2016-01-22 16:33 ` Vladimir Davydov [this message]
2016-01-22 18:35 ` Brian Christiansen
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=20160122163324.GH26192@esperanza \
--to=vdavydov-5hdwgun5lf+gspxsjd1c4w@public.gmane.org \
--cc=brian.o.christiansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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;
as well as URLs for NNTP newsgroup(s).