Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1049

Cpu Isolator incorrectly writes double values when writing cpu.cfs_quota_us.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • containerization
    • None

    Description

      cpu.cfs_quota_us file will only take integral values, whereas the cpu isolator writes double values.

      [ RUN      ] LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs
      I0228 18:10:16.145454 34925 cgroups_launcher.cpp:59] Using /sys/fs/cgroup/freezer as the freezer hierarchy for the cgroups launcher
      I0228 18:10:16.149149 34939 cgroups.cpp:394] Trying to write value: 13824
      I0228 18:10:16.149194 34939 cpushare.cpp:334] Updated 'cpu.shares' to 13824 (cpus 13.5) for container mesos_test_cfs_cpu_limit
      I0228 18:10:16.149654 34939 cgroups.cpp:394] Trying to write value: 100000
      I0228 18:10:16.150081 34939 cgroups.cpp:394] Trying to write value: 1.35e+06
      ../../src/tests/isolator_tests.cpp:328: Failure
      (isolator.get()->prepare(containerId, executorInfo)).failure(): Failed to update 'cpu.cfs_quota_us' to 1350ms: Invalid argument
      [  FAILED  ] LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs (16 ms)
      [----------] 1 test from LimitedCpuIsolatorTest (17 ms total)
      

      Attachments

        Activity

          People

            vinodkone Vinod Kone
            vinodkone Vinod Kone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: