test/jdk/jdk/internal/platform/docker/MetricsCpuTester.java
author bobv
Thu, 19 Jul 2018 12:57:12 -0400
changeset 51162 52f96cca600f
parent 50545 292a4a87c321
permissions -rw-r--r--
8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem Reviewed-by: mbaesken, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50545
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     1
/*
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     4
 *
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     7
 * published by the Free Software Foundation.
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     8
 *
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    13
 * accompanied this code).
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    14
 *
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    18
 *
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    21
 * questions.
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    22
 */
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    23
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    24
import java.util.Arrays;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    25
import java.util.stream.IntStream;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    26
import java.util.stream.Stream;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    27
import jdk.internal.platform.Metrics;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    28
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    29
public class MetricsCpuTester {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    30
    public static void main(String[] args) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    31
        System.out.println(Arrays.toString(args));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    32
        switch (args[0]) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    33
            case "cpusets":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    34
                testCpuSets(args[1]);
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    35
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    36
            case "cpuquota":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    37
                testCpuQuotaAndPeriod(Long.parseLong(args[1]), Long.parseLong(args[2]));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    38
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    39
            case "cpushares":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    40
                testCpuShares(Long.parseLong(args[1]));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    41
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    42
            case "cpus":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    43
                testCpuThrottling();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    44
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    45
            case "cpumems":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    46
                testCpuSetMemNodes(args[1]);
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    47
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    48
            case "combo":
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    49
                testCombo(args[1], Long.parseLong(args[2]), Long.parseLong(args[3]), Long.parseLong(args[4]));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    50
                break;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    51
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    52
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    53
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    54
    private static void testCpuQuotaAndPeriod(long quota, long period) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    55
        Metrics metrics = Metrics.systemMetrics();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    56
        long newQuota = metrics.getCpuQuota();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    57
        long newPeriod = metrics.getCpuPeriod();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    58
        if (quota != newQuota || period != newPeriod) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    59
            throw new RuntimeException("CPU quota or period not equal, expected : ["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    60
                    + quota + "," + period + "]" + ", got : " + "[" + newQuota
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    61
                    + "," + newPeriod + "]");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    62
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    63
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    64
        long cpuNumPeriods = metrics.getCpuNumPeriods();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    65
        long current = System.currentTimeMillis();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    66
        while (System.currentTimeMillis() - current < 1000) ;    // 1sec
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    67
        long newCpuNumPeriods = metrics.getCpuNumPeriods();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    68
        if (newCpuNumPeriods <= cpuNumPeriods) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    69
            throw new RuntimeException("CPU shares failed, expected : ["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    70
                    + cpuNumPeriods + "]" + ", got : " + "["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    71
                    + newCpuNumPeriods + "]");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    72
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    73
        System.out.println("TEST PASSED!!!");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    74
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    75
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    76
    private static void testCpuSets(String cpuset) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    77
        int[] ipCpuSet;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    78
        String[] tokens = cpuset.split("-");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    79
        if (tokens.length > 1) { // we are given range of CPUs
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    80
            ipCpuSet = IntStream.rangeClosed(Integer.parseInt(tokens[0]),
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    81
                    Integer.parseInt(tokens[1])).toArray();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    82
        } else if (cpuset.split(",").length > 1) {   // list of cpus
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    83
            ipCpuSet = Stream.of(cpuset.split(",")).mapToInt(Integer::parseInt).toArray();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    84
        } else { // just a single cpu
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    85
            ipCpuSet = new int[]{Integer.parseInt(cpuset)};
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    86
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    87
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    88
        Metrics metrics = Metrics.systemMetrics();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    89
        int[] cpuSets = metrics.getCpuSetCpus();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    90
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    91
        int[] effectiveCpus = metrics.getEffectiveCpuSetCpus();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    92
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    93
        if (!Arrays.equals(ipCpuSet, cpuSets)) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    94
            throw new RuntimeException("Cpusets not equal, expected : "
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    95
                    + Arrays.toString(ipCpuSet) + ", got : " + Arrays.toString(cpuSets));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    96
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
    97
51162
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
    98
        // Check to see if this metric is supported on this platform
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
    99
        if (effectiveCpus.length != 0) {
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   100
            if (!Arrays.equals(ipCpuSet, effectiveCpus)) {
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   101
                throw new RuntimeException("Effective Cpusets not equal, expected : "
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   102
                        + Arrays.toString(ipCpuSet) + ", got : "
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   103
                        + Arrays.toString(effectiveCpus));
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   104
            }
50545
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   105
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   106
        System.out.println("TEST PASSED!!!");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   107
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   108
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   109
    private static void testCpuSetMemNodes(String cpusetMems) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   110
        Metrics metrics = Metrics.systemMetrics();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   111
        int[] cpuSets = metrics.getCpuSetMems();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   112
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   113
        int[] ipCpuSet;
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   114
        String[] tokens = cpusetMems.split("-");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   115
        if (tokens.length > 1) { // we are given range of CPUs
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   116
            ipCpuSet = IntStream.rangeClosed(Integer.parseInt(tokens[0]),
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   117
                    Integer.parseInt(tokens[1])).toArray();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   118
        } else if (cpusetMems.split(",").length > 1) {   // list of cpus
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   119
            ipCpuSet = Stream.of(cpusetMems.split(",")).mapToInt(Integer::parseInt).toArray();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   120
        } else { // just a single cpu
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   121
            ipCpuSet = new int[]{Integer.parseInt(cpusetMems)};
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   122
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   123
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   124
        int[] effectiveMems = metrics.getEffectiveCpuSetMems();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   125
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   126
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   127
        if (!Arrays.equals(ipCpuSet, cpuSets)) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   128
            throw new RuntimeException("Cpuset.mems not equal, expected : "
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   129
                    + Arrays.toString(ipCpuSet) + ", got : "
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   130
                    + Arrays.toString(cpuSets));
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   131
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   132
51162
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   133
        // Check to see if this metric is supported on this platform
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   134
        if (effectiveMems.length != 0) {
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   135
            if (!Arrays.equals(ipCpuSet, effectiveMems)) {
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   136
                throw new RuntimeException("Effective mem nodes not equal, expected : "
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   137
                        + Arrays.toString(ipCpuSet) + ", got : "
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   138
                        + Arrays.toString(effectiveMems));
52f96cca600f 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
bobv
parents: 50545
diff changeset
   139
            }
50545
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   140
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   141
        System.out.println("TEST PASSED!!!");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   142
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   143
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   144
    private static void testCpuShares(long shares) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   145
        Metrics metrics = Metrics.systemMetrics();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   146
        long newShares = metrics.getCpuShares();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   147
        if (newShares != shares) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   148
            throw new RuntimeException("CPU shares not equal, expected : ["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   149
                    + shares + "]" + ", got : " + "[" + newShares + "]");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   150
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   151
        System.out.println("TEST PASSED!!!");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   152
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   153
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   154
    private static void testCpuThrottling() {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   155
        Metrics metrics = Metrics.systemMetrics();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   156
        long throttledTime = metrics.getCpuThrottledTime();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   157
        long numThrottled = metrics.getCpuNumThrottled();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   158
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   159
        long current = System.currentTimeMillis();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   160
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   161
        while (System.currentTimeMillis() - current < 2000) ;  // 2 sec
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   162
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   163
        long newthrottledTime = metrics.getCpuThrottledTime();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   164
        long newnumThrottled = metrics.getCpuNumThrottled();
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   165
        if (newthrottledTime <= throttledTime) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   166
            throw new RuntimeException("CPU throttle failed, expected : ["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   167
                    + newthrottledTime + "]" + ", got : "
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   168
                    + "[" + throttledTime + "]");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   169
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   170
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   171
        if (newnumThrottled <= numThrottled) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   172
            throw new RuntimeException("CPU num throttle failed, expected : ["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   173
                    + newnumThrottled + "]" + ", got : " + "["
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   174
                    + numThrottled + "]");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   175
        }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   176
        System.out.println("TEST PASSED!!!");
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   177
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   178
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   179
    private static void testCombo(String cpuset, long quota, long period, long shares) {
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   180
        testCpuSets(cpuset);
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   181
        testCpuQuotaAndPeriod(quota, period);
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   182
        testCpuShares(shares);
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   183
    }
292a4a87c321 8203357: Container Metrics
bobv
parents:
diff changeset
   184
}