From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Gang Subject: Fwd: [Suggestion] kernel: cgroup: mount failure in LTP cgroup_regression_test.sh Date: Thu, 21 Nov 2013 12:18:50 +0800 Message-ID: <528D89AA.6080102@gmail.com> References: <527C9D9B.8090802@asianux.com> <20131120173549.GO28946@htj.dyndns.org> <528D6E19.4080100@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OuqEA86tN+4g0Gx5guM905IvQHxyI5PL5JYzVHXMB/s=; b=YSVPRpTNt12fNmQ6lRDYv8pSZxsS0QjPLuoIVP37G/5hD6t6dflKMQ153WNGcYnPnb BhmG2Swi9JHbFFLZa4ektEiMFjLjSSXXfeNT52dEqv7HG15wBAG9IsvGaVLfJ0yLxzZN 3pLaKmKGE+jqrs2GUPUVr6KHpNf2iFrQGm5a60TuPYEm54p/jbEjRqBsFR6/9omG67g1 VdhrDNBapDcc8zntzaeed2zCU0cA3YYH7o1iiGvnCMebLt1bh/IqeVn7AEeywCxLcjKp esUyxJToiCmYSrjxU1UEH/cA8+5VJHyyQnsxGyhMtHzTibBOqyNG2tRGEiAKxjIyZOxs u5Qw== In-Reply-To: <528D6E19.4080100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Tejun Heo , Garrett Cooper , gaowanlong-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org, chris-8NJIiSa5LzA@public.gmane.org, jstancek-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, mitani-Czb31pHLG9l3+QwDJ9on6Q@public.gmane.org, lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org Cc: Li Zefan , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hello LTP maintainers: When I use ltp to test cgroup, I find one failure, the related forward mail is below. Related LTP git commit is "75df824 Add cgroup regression tests to LTP: Those testcases can reproduce bugs we found in cgroups, and is useful to track future regressions." (lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org and subrata_modak) Please help check when you have time. Thanks. -------- Original Message -------- Subject: [Suggestion] kernel: cgroup: mount failure in LTP cgroup_regression_test.sh Date: Fri, 08 Nov 2013 16:15:23 +0800 From: Chen Gang To: Tejun Heo , Li Zefan CC: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" Hello Maintainers: On Fedora16 with defconfig for next-20131107 kernel, use latest LTP (Linux Test Project) version, test_5() in cgroup_regression_test.sh will be fail. The related LTP output: <<>> tag=cgroup stime=1383562810 cmdline=" cgroup_regression_test.sh" contacts="" analysis=exit <<>> cgroup_regression_test 1 TPASS : no kernel bug was found /opt/ltp/testcases/bin/cgroup_regression_test.sh: line 118: 13283 Terminated ./fork_processes cgroup_regression_test 2 TPASS : notify_on_release is inherited cgroup_regression_test 3 TCONF : CONFIG_SCHED_DEBUG is not enabled cgroup_regression_test 4 TCONF : CONFIG_LOCKDEP is not enabled mount: xxx already mounted or cgroup/ busy cgroup_regression_test 5 TFAIL : mount freezer and cpuacct failed cgroup_regression_test 6 TCONF : CONFIG_CGROUP_NS /opt/ltp/testcases/bin/cgroup_regression_test.sh: line 360: 24428 Terminated sleep 100 < cgroup/0 /opt/ltp/testcases/bin/cgroup_regression_test.sh: line 381: 24447 Terminated sleep 100 < cgroup/0 cgroup_regression_test 7 TPASS : no kernel bug was found cgroup_regression_test 8 TPASS : no kernel bug was found cgroup_regression_test 9 TPASS : no kernel warning was found rmdir: failed to remove `cgroup/0': No such file or directory umount: /sys/fs/cgroup/systemd: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) cgroup_regression_test 10 TPASS : no kernel warning was found <<>> initiation_status="ok" duration=62 termination_type=exited termination_id=1 corefile=no cutime=3341 cstime=6353 <<>> After simplify, the related operation, environments and output are: [root@gchenlinux tmp]# df -Th | grep cgroup tmpfs tmpfs 1001M 0 1001M 0% /sys/fs/cgroup [root@gchenlinux tmp]# lsof | grep cgroup | grep -v grep systemd 1 root 6r DIR 0,18 0 5998 /sys/fs/cgroup/systemd/system [root@gchenlinux tmp]# cat /proc/cgroups #subsys_name hierarchy num_cgroups enabled cpuset 3 4 1 cpu 4 35 1 cpuacct 4 35 1 freezer 5 4 1 [root@gchenlinux tmp]# mkdir cgroup [root@gchenlinux tmp]# mount -t cgroup -o freezer,cpuacct xxx cgroup/ mount: xxx already mounted or cgroup/ busy Is it real issue of cgroup? If it is, I will/should continue analyzing. Welcome any additional suggestions and completions. Thanks. -- Chen Gang