Stress-NG

Run stress-ng on the DUT and assert against the --metrics-brief rows aggregated across all stressors. The stress-ng binary must be installed on the DUT.

AttributeTypeRequiredDefaultDescription
cmdconstYesstress-ngCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectYesAdditional transport options
optionsOptionsObjectNoAdditional command options (default timeout 2m)
parametersStressNGOptionsYesOptions passed into the stress-ng cmd

Stress-NG Options

AttributeTypeRequiredDefaultDescription
args[]stringNo--cpu 0 --timeout 30s --metrics-briefRaw arguments passed to stress-ng. If supplied, must include --metrics-brief so per-stressor metric rows are emitted.
expectStressNGExpectNoPer-metric assertions. See Expect Comparator Syntax.

Stress-NG Expect Options

Values are summed across every stressor row in the output.

AttributeTypeRequiredDescription
BogoOpsstringNoSum of bogo-ops across all stressors
BogoOpsPerSecRealTimestringNoSum of bogo-ops/sec (real-time column) across all stressors
BogoOpsPerSecUsrSysstringNoSum of bogo-ops/sec (usr+sys column) across all stressors

Stress-NG Example

cmd: stress-ng
name: CPU stress baseline
transport: *transport
parameters:
  args: [--cpu, "0", --timeout, 60s, --metrics-brief]
  expect:
    BogoOpsPerSecRealTime: ">1000"