Re: memcg oops: memcg_kmem_charge_memcg()->try_charge()->page_counter_try_charge()->BOOM

From: Roman Gushchin
Date: Mon Oct 29 2018 - 17:49:55 EST


On Mon, Oct 29, 2018 at 09:46:54PM +0100, Mike Galbraith wrote:
> On Mon, 2018-10-29 at 18:54 +0000, Roman Gushchin wrote:
> >
> > Hi Mike!
> >
> > Thank you for the report!
> >
> > Do you see it reliable every time you boot up the machine?
>
> Yeah.
>
> > How do you run kvm?
>
> My VMs are full SW/data clones of my i7-4790/openSUSE <release> box.
>
> > Is there something special about your cgroup setup?
>
> No, I generally have no use for cgroups.
>
> > I've made several attempts to reproduce the issue, but haven't got anything
> > so far. I've used your config, and played with different cgroups setups.
>
> Ah, I have cgroup_disable=memory on the command line, which turns out
> to be why your box doesn't explode, while mine does.

Yeah, here it is. I'll send the fix in few minutes. Please,
test it on your setup. Your tested-by will be appreciated.

Thanks!