CPULoad

Run a CPU-Load test on the DUT. The DUT needs sudo and stress-ng. It also needs turbostat when expect is set, and taskset when cpus is set without args.

AttributeTypeRequiredDefaultDescription
cmdconstYescpuloadCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectNoAdditional transport options
optionsOptionsObjectNoAdditional command options
parametersCPULoadOptionsNoparameterscpuload Options

CPULoad Options

AttributeTypeRequiredDefaultDescription
args[]stringYesArray of strings with arguments passed into the cpuload tool.
cpus[]integerYesArray of CPUs that should be put under load.
durationstringYesDuration of the load. Format: ^((\\d+h)?(\\d+m)?(\\d+s)?)?$
expectCPUExpectOptionsYesExpected values

CPULoad Example

cmd: cpuload
name: Check cpu frequencies with load
transport: *transport
options:
  timeout: 2m
parameters:
  duration: 1m
  expect:
    individual:
      - cpus: [0, 1, 2, 3, 4, 5, 6, 7]
        option: AverageFrequency
        value: ">1500"
      - cpus: [8, 9, 10, 11, 12, 13, 14, 15]
        option: AverageFrequency
        value: ">1200"