<div dir="ltr"><div>Hi Jan,<br><br></div>Thanks for your info, Is there any effective way (any options or workaround) for making the test passing on systemd distros ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 27, 2016 at 6:35 PM, Jan Stancek <span dir="ltr"><<a href="mailto:jstancek@redhat.com" target="_blank">jstancek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
<br>
<br>
----- Original Message -----<br>
> From: "Dong ZHu" <<a href="mailto:bluezhudong@gmail.com">bluezhudong@gmail.com</a>><br>
> To: <a href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a><br>
> Sent: Friday, 27 May, 2016 4:25:41 AM<br>
> Subject: [LTP] cgroup_regression_test failed in CentOS 7.2<br>
><br>
> Hi All,<br>
><br>
> I ran LTP test suite in CentOS 7.2 with kernel 3.10.0-327, test named<br>
> "cgroup_regression_test" Test 3 and Test 5 always failed as below:<br>
> <a href="http://pastebin.ubuntu.com/16703246/" rel="noreferrer" target="_blank">http://pastebin.ubuntu.com/16703246/</a><br>
><br>
> Test 3 failed when execute "mount -t cgroup -o cpu xxx cgroup/"<br>
> Test 5 failed when execute "mount -t cgroup -o $subsys1,$subsys2 xxx cgroup/"<br>
><br>
> cpu, hugetlb and perf_event has already been mounted in sys as below:<br>
> <a href="http://pastebin.ubuntu.com/16703384/" rel="noreferrer" target="_blank">http://pastebin.ubuntu.com/16703384/</a><br>
><br>
> So the mount operation will definitely fail in the test.<br>
><br>
> I just want to know whether it is the test program issue, and whether it can<br>
> be waived ?<br>
<br>
</span>This is known to happen on systemd distros, where systemd mounts specific<br>
subsystems together and LTP test wants to mount just one.<br>
<br>
In those cases you should get -EBUSY as described in Documentation/cgroup-v1/cgroups.txt:<br>
"If an active hierarchy with exactly the same set of subsystems already<br>
exists, it will be reused for the new mount. If no existing hierarchy<br>
matches, and any of the requested subsystems are in use in an existing<br>
hierarchy, the mount will fail with -EBUSY. Otherwise, a new hierarchy<br>
is activated, associated with the requested subsystems."<br>
<br>
Regards,<br>
Jan<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards,<br>
Dong Zhu<br>
<br>
My Site: <a href="http://bluezd.info" target="_blank">http://bluezd.info</a><br><br></div></div>
</div>