[ 
https://issues.apache.org/jira/browse/MESOS-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023394#comment-15023394
 ] 

Greg Mann commented on MESOS-3964:
----------------------------------

As [~tillt] suggests in the comments of MESOS-3978, a possible solution to this 
issue would be to perform a check for the existence of the CFS cgroups, 
something like the following:

{code}
$ ls -l /sys/fs/cgroup/cpu/cpu.cfs_quota_us
ls: cannot access /sys/fs/cgroup/cpu/cpu.cfs_quota_us: No such file or directory
$ echo $?
2
{code}

If this test fails, the test suite could filter out the offending tests. 
However, we should be cautious that the absence of these cgroups won't cause 
problems for the isolator/containerizer code. I've sent an email out to the 
devlist suggesting this solution and soliciting feedback.

> LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs and 
> LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs_Big_Quota fail on Debian 8.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-3964
>                 URL: https://issues.apache.org/jira/browse/MESOS-3964
>             Project: Mesos
>          Issue Type: Bug
>          Components: isolation, test
>    Affects Versions: 0.26.0
>         Environment: Debian 8, gcc 4.9.2, Docker 1.9.0, vagrant, libvirt
> Vagrantfile: see MESOS-3957
>            Reporter: Bernd Mathiske
>            Assignee: Greg Mann
>            Priority: Blocker
>              Labels: mesosphere
>
> sudo ./bin/mesos-test.sh 
> --gtest_filter="LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs"
> {noformat}
> ...
> F1119 14:34:52.514742 30706 isolator_tests.cpp:455] CHECK_SOME(isolator): 
> Failed to find 'cpu.cfs_quota_us'. Your kernel might be too old to use the 
> CFS cgroups feature.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to