* cgroup pids controller -- WARN_ON_ONCE triggering
@ 2015-12-08 14:58 Andy Whitcroft
2015-12-08 15:24 ` Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Andy Whitcroft @ 2015-12-08 14:58 UTC (permalink / raw)
To: Tejun Heo, Li Zefan, Johannes Weiner; +Cc: cgroups, linux-kernel, Martin Pitt
The commit below attempts to fix up pid controller charging:
commit afcf6c8b75444382e0f9996157207ebae34a8848
Author: Tejun Heo <tj@kernel.org>
Date: Thu Oct 15 16:41:53 2015 -0400
cgroup: add cgroup_subsys->free() method and use it to fix pids controller
Since this change we are seeing system hangs in early boot on multiple
architecures. We have a console log on ppc64el [1] which fingers
pids_cancel(). Manual debugging on amd64 VMs seems to indicate that we
are now tripping the WARN_ON_ONCE() below:
static void pids_cancel(struct pids_cgroup *pids, int num)
{
/*
* A negative count (or overflow for that matter) is invalid,
* and indicates a bug in the `pids` controller proper.
*/
WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter));
}
Converting this to a printk I was able to obtain confirmation that we are
indeed seeing this go negative in some cases.
Reverting the above commit seems to resolve the early boot issues in
my testing.
-apw
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1523586
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cgroup pids controller -- WARN_ON_ONCE triggering
2015-12-08 14:58 cgroup pids controller -- WARN_ON_ONCE triggering Andy Whitcroft
@ 2015-12-08 15:24 ` Tejun Heo
0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2015-12-08 15:24 UTC (permalink / raw)
To: Andy Whitcroft
Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, Martin Pitt
Hello, Andy.
On Tue, Dec 08, 2015 at 02:58:51PM +0000, Andy Whitcroft wrote:
> Converting this to a printk I was able to obtain confirmation that we are
> indeed seeing this go negative in some cases.
>
> Reverting the above commit seems to resolve the early boot issues in
> my testing.
Fix already queued in the following git branch. Pushing it out as we
speak.
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.4-fixes
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cgroup pids controller -- WARN_ON_ONCE triggering
@ 2015-12-08 15:24 ` Tejun Heo
0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2015-12-08 15:24 UTC (permalink / raw)
To: Andy Whitcroft
Cc: Li Zefan, Johannes Weiner, cgroups-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Martin Pitt
Hello, Andy.
On Tue, Dec 08, 2015 at 02:58:51PM +0000, Andy Whitcroft wrote:
> Converting this to a printk I was able to obtain confirmation that we are
> indeed seeing this go negative in some cases.
>
> Reverting the above commit seems to resolve the early boot issues in
> my testing.
Fix already queued in the following git branch. Pushing it out as we
speak.
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.4-fixes
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cgroup pids controller -- WARN_ON_ONCE triggering
@ 2015-12-08 17:05 ` Andy Whitcroft
0 siblings, 0 replies; 5+ messages in thread
From: Andy Whitcroft @ 2015-12-08 17:05 UTC (permalink / raw)
To: Tejun Heo; +Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, Martin Pitt
On Tue, Dec 08, 2015 at 10:24:28AM -0500, Tejun Heo wrote:
> Hello, Andy.
>
> On Tue, Dec 08, 2015 at 02:58:51PM +0000, Andy Whitcroft wrote:
> > Converting this to a printk I was able to obtain confirmation that we are
> > indeed seeing this go negative in some cases.
> >
> > Reverting the above commit seems to resolve the early boot issues in
> > my testing.
>
> Fix already queued in the following git branch. Pushing it out as we
> speak.
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.4-fixes
>
> Thanks.
Cool, thanks. That seems to fix me up here.
-apw
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cgroup pids controller -- WARN_ON_ONCE triggering
@ 2015-12-08 17:05 ` Andy Whitcroft
0 siblings, 0 replies; 5+ messages in thread
From: Andy Whitcroft @ 2015-12-08 17:05 UTC (permalink / raw)
To: Tejun Heo
Cc: Li Zefan, Johannes Weiner, cgroups-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Martin Pitt
On Tue, Dec 08, 2015 at 10:24:28AM -0500, Tejun Heo wrote:
> Hello, Andy.
>
> On Tue, Dec 08, 2015 at 02:58:51PM +0000, Andy Whitcroft wrote:
> > Converting this to a printk I was able to obtain confirmation that we are
> > indeed seeing this go negative in some cases.
> >
> > Reverting the above commit seems to resolve the early boot issues in
> > my testing.
>
> Fix already queued in the following git branch. Pushing it out as we
> speak.
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.4-fixes
>
> Thanks.
Cool, thanks. That seems to fix me up here.
-apw
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-08 17:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 14:58 cgroup pids controller -- WARN_ON_ONCE triggering Andy Whitcroft
2015-12-08 15:24 ` Tejun Heo
2015-12-08 15:24 ` Tejun Heo
2015-12-08 17:05 ` Andy Whitcroft
2015-12-08 17:05 ` Andy Whitcroft
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.