public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] cgroup_regression_test failed in CentOS 7.2
@ 2016-05-26  9:24 Dong ZHu
  0 siblings, 0 replies; 5+ messages in thread
From: Dong ZHu @ 2016-05-26  9:24 UTC (permalink / raw)
  To: ltp

Hi Zefan,

I ran LTP test suite in CentOS 7.2 with kernel 3.10.0-327, test named
"cgroup_regression_test" Test 3 and Test 5 always failed as below:
http://pastebin.ubuntu.com/16703246/

Test 3 failed when execute "mount -t cgroup -o cpu xxx cgroup/"
Test 5 failed when execute "mount -t cgroup -o $subsys1,$subsys2 xxx
cgroup/"

cpu, hugetlb and perf_event has already been mounted in sys as below:
http://pastebin.ubuntu.com/16703384/

So the mount operation will definitely fail in the test.

I just want to know whether it is the test program issue, and whether it
can be waived ?
Thanks !

-- 
Best Regards,
Dong Zhu

My Site: http://bluezd.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160526/0d5600b8/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] cgroup_regression_test failed in CentOS 7.2
@ 2016-05-27  2:25 Dong ZHu
  2016-05-27 10:35 ` Jan Stancek
  0 siblings, 1 reply; 5+ messages in thread
From: Dong ZHu @ 2016-05-27  2:25 UTC (permalink / raw)
  To: ltp

Hi All,

I ran LTP test suite in CentOS 7.2 with kernel 3.10.0-327, test named
"cgroup_regression_test" Test 3 and Test 5 always failed as below:
http://pastebin.ubuntu.com/16703246/

Test 3 failed when execute "mount -t cgroup -o cpu xxx cgroup/"
Test 5 failed when execute "mount -t cgroup -o $subsys1,$subsys2 xxx
cgroup/"

cpu, hugetlb and perf_event has already been mounted in sys as below:
http://pastebin.ubuntu.com/16703384/

So the mount operation will definitely fail in the test.

I just want to know whether it is the test program issue, and whether it
can be waived ?

Could anybody help taking a look at it ? Thanks !

-- 
Best Regards,
Dong Zhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160527/ee9d5ef2/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] cgroup_regression_test failed in CentOS 7.2
  2016-05-27  2:25 [LTP] cgroup_regression_test failed in CentOS 7.2 Dong ZHu
@ 2016-05-27 10:35 ` Jan Stancek
  2016-05-27 14:08   ` Dong ZHu
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2016-05-27 10:35 UTC (permalink / raw)
  To: ltp





----- Original Message -----
> From: "Dong ZHu" <bluezhudong@gmail.com>
> To: ltp@lists.linux.it
> Sent: Friday, 27 May, 2016 4:25:41 AM
> Subject: [LTP] cgroup_regression_test failed in CentOS 7.2
> 
> Hi All,
> 
> I ran LTP test suite in CentOS 7.2 with kernel 3.10.0-327, test named
> "cgroup_regression_test" Test 3 and Test 5 always failed as below:
> http://pastebin.ubuntu.com/16703246/
> 
> Test 3 failed when execute "mount -t cgroup -o cpu xxx cgroup/"
> Test 5 failed when execute "mount -t cgroup -o $subsys1,$subsys2 xxx cgroup/"
> 
> cpu, hugetlb and perf_event has already been mounted in sys as below:
> http://pastebin.ubuntu.com/16703384/
> 
> So the mount operation will definitely fail in the test.
> 
> I just want to know whether it is the test program issue, and whether it can
> be waived ?

This is known to happen on systemd distros, where systemd mounts specific
subsystems together and LTP test wants to mount just one.

In those cases you should get -EBUSY as described in Documentation/cgroup-v1/cgroups.txt:
"If an active hierarchy with exactly the same set of subsystems already
exists, it will be reused for the new mount. If no existing hierarchy
matches, and any of the requested subsystems are in use in an existing
hierarchy, the mount will fail with -EBUSY. Otherwise, a new hierarchy
is activated, associated with the requested subsystems."

Regards,
Jan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] cgroup_regression_test failed in CentOS 7.2
  2016-05-27 10:35 ` Jan Stancek
@ 2016-05-27 14:08   ` Dong ZHu
  2016-05-30 10:20     ` Jan Stancek
  0 siblings, 1 reply; 5+ messages in thread
From: Dong ZHu @ 2016-05-27 14:08 UTC (permalink / raw)
  To: ltp

Hi Jan,

Thanks for your info, Is there any effective way (any options or
workaround) for making the test passing on systemd distros ?

On Fri, May 27, 2016 at 6:35 PM, Jan Stancek <jstancek@redhat.com> wrote:

>
>
>
>
> ----- Original Message -----
> > From: "Dong ZHu" <bluezhudong@gmail.com>
> > To: ltp@lists.linux.it
> > Sent: Friday, 27 May, 2016 4:25:41 AM
> > Subject: [LTP] cgroup_regression_test failed in CentOS 7.2
> >
> > Hi All,
> >
> > I ran LTP test suite in CentOS 7.2 with kernel 3.10.0-327, test named
> > "cgroup_regression_test" Test 3 and Test 5 always failed as below:
> > http://pastebin.ubuntu.com/16703246/
> >
> > Test 3 failed when execute "mount -t cgroup -o cpu xxx cgroup/"
> > Test 5 failed when execute "mount -t cgroup -o $subsys1,$subsys2 xxx
> cgroup/"
> >
> > cpu, hugetlb and perf_event has already been mounted in sys as below:
> > http://pastebin.ubuntu.com/16703384/
> >
> > So the mount operation will definitely fail in the test.
> >
> > I just want to know whether it is the test program issue, and whether it
> can
> > be waived ?
>
> This is known to happen on systemd distros, where systemd mounts specific
> subsystems together and LTP test wants to mount just one.
>
> In those cases you should get -EBUSY as described in
> Documentation/cgroup-v1/cgroups.txt:
> "If an active hierarchy with exactly the same set of subsystems already
> exists, it will be reused for the new mount. If no existing hierarchy
> matches, and any of the requested subsystems are in use in an existing
> hierarchy, the mount will fail with -EBUSY. Otherwise, a new hierarchy
> is activated, associated with the requested subsystems."
>
> Regards,
> Jan
>



-- 
Best Regards,
Dong Zhu

My Site: http://bluezd.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160527/8db8d357/attachment-0001.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] cgroup_regression_test failed in CentOS 7.2
  2016-05-27 14:08   ` Dong ZHu
@ 2016-05-30 10:20     ` Jan Stancek
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Stancek @ 2016-05-30 10:20 UTC (permalink / raw)
  To: ltp





----- Original Message -----
> From: "Dong ZHu" <bluezhudong@gmail.com>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Friday, 27 May, 2016 4:08:49 PM
> Subject: Re: [LTP] cgroup_regression_test failed in CentOS 7.2
> 
> Hi Jan,
> 
> Thanks for your info, Is there any effective way (any options or
> workaround) for making the test passing on systemd distros ?

I think you could configure systemd to mount cpu and cpuacct
separately, but that may break other cgroup tests that mount 2+
subsystems together. Test should be fixed to expect that some
subsystems are mounted already or at least skip the parts
(as TCONF) where we know mount can't succeed.

Regards,
Jan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-30 10:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-27  2:25 [LTP] cgroup_regression_test failed in CentOS 7.2 Dong ZHu
2016-05-27 10:35 ` Jan Stancek
2016-05-27 14:08   ` Dong ZHu
2016-05-30 10:20     ` Jan Stancek
  -- strict thread matches above, loose matches on Subject: below --
2016-05-26  9:24 Dong ZHu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox