Re: cgroup pointed by sock is leaked on mode switch

2020-05-08 Thread Yang Yingliang
On 2020/5/6 15:51, Zefan Li wrote: On 2020/5/6 10:16, Zefan Li wrote: On 2020/5/6 9:50, Yang Yingliang wrotee: +cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is i

Re: cgroup pointed by sock is leaked on mode switch

2020-05-06 Thread Zefan Li
On 2020/5/6 10:16, Zefan Li wrote: On 2020/5/6 9:50, Yang Yingliang wrotee: +cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys/

Re: cgroup pointed by sock is leaked on mode switch

2020-05-05 Thread Zefan Li
On 2020/5/6 9:50, Yang Yingliang wrotee: +cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys/fs/cgroup/ -name cgroup.stat -exec g

Re: cgroup pointed by sock is leaked on mode switch

2020-05-05 Thread Yang Yingliang
+cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys/fs/cgroup/ -name cgroup.stat -exec grep '^nr_dying_descendants [^0]'  {} + /sy

Re: cgroup pointed by sock is leaked on mode switch

2020-05-05 Thread Tejun Heo
Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: > I find the number nr_dying_descendants is increasing: > linux-dVpNUK:~ # find /sys/fs/cgroup/ -name cgroup.stat -exec grep > '^nr_dying_descendants [^0]'  {} + > /sys/fs/cgroup/unified/cgroup.stat:nr_dying_descendants 8

cgroup pointed by sock is leaked on mode switch

2020-05-02 Thread Yang Yingliang
Hi, I got an oom panic because cgroup is leaked. Here is the steps :   - run a docker with --cap-add sys_admin parameter and the systemd process in the docker uses both cgroupv1 and cgroupv2   - ssh/exit from host to docker repeately I find the number nr_dying_descendants is increasing: linux