CPU Operations CPU performance monitoring, profiling, and testing commands.
CPULoad Run a CPU-Load test on the DUT.
Attribute Type Required Default Description cmdconstYes cpuloadCommand Name namestringYes Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI transportTransportObjectNo Additional transport options optionsOptionsObjectNo Additional command options parametersCPULoadOptionsNo parameterscpuload Options
CPULoad Options Attribute Type Required Default Description args[]stringYes Array of strings with arguments passed into the cpuload tool. cpus[]integerYes Array of CPUs that should be put under load. durationstringYes Duration of the load. Format: ^((\\d+h)?(\\d+m)?(\\d+s)?)?$ expectCPUExpectOptionsYes Expected 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" CPUSet Set cpu profiles on the DUT.
Attribute Type Required Default Description cmdconstYes cpusetCommand Name namestringYes Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI transportTransportObjectNo Additional transport options optionsOptionsObjectNo Additional command options parametersCPUSetOptionsYes Options passed into the cpuset cmd
CPUSet Options Attribute Type Required Default Description commandstringYes Command to run. Available options: core, or profile. cores[]integerNo Array of Cores where the command should be applied to. If not set apply to all argstringYes Value of the command option
CPUSet Example cmd : cpuset
name : Set ACPI Platform Profile to low-power
transport : *transport
parameters :
command : profile
arg : low-power CPUStats Monitor and validate CPU statistics on the DUT.
Attribute Type Required Default Description cmdconstYes cpustatsCommand Name namestringYes Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI transportTransportObjectNo Additional transport options optionsOptionsObjectNo Additional command options parametersCPUStatsOptionsYes parameterscpustats Options
CPUStats Options Attribute Type Required Default Description intervalstringNo Testing interval time expectCPUExpectOptionsYes Expected values
CPU Expect Options General Object Values that describe the machine as a whole.
Attribute Type Required Default Description optionstringNo generalName of the option valuestringNo generalValue of the option
option must be one of:
Option Unit Description CPUsLogicalcount Logical CPUs the machine reports CPUsPhysicalcount Physical cores the machine reports ProfileACPI platform profile, for example balanced CurPowerConsumptionwatts Package power drawn during the sample PowerLimit1watts Sustained package power limit PowerLimit2watts Short-term package power limit
Individual Object Values measured per core. Cores that are switched off do not appear in the
sample, and naming one fails the step rather than matching a different core.
Attribute Type Required Default Description cpus[]integerYes individualArray of CPUs where the option should be applied to optionstringYes individualName of the option valuestringYes individualValue of the option
option must be one of:
Option Unit Description Busypercent Share of the sample the core spent executing AverageFrequencyMHz Mean frequency over the whole sample, idle time included BusyFrequencyMHz Mean frequency while the core was executing CStatespercent Idle-state residency, written as C1E,C6,C10:>95
CStates takes one or more state names separated by commas, then a colon and
the bound their residencies must add up to. Every other option compares a
single number.
CPUStats Example cmd : cpustats
name : Check cpu frequencies in idle
transport : *transport
parameters :
interval : 10s
expect :
individual :
- cpus : [0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 ]
option : AverageFrequency
value : "<500" SysBench Run SysBench on the DUT.
Attribute Type Required Default Description cmdconstYes sysbenchCommand Name namestringYes Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI transportTransportObjectYes Additional transport options optionsOptionsObjectNo Additional command options parametersSysBenchOptionsYes Options passed into the sysbench cmd
SysBench Options Attribute Type Required Default Description args[]stringNo Arguments to pass to sysbench. expect[]ExpectOptionsYes Expectations to check against the output of sysbench.
SysBench Expect Options Attribute Type Required Default Description optionstringYes Option to check valuestringYes Expected value
SysBench Example cmd : sysbench
name : Benchmark
transport : *transport
parameters :
args : [cpu, --cpu-max-prime=20000, --threads=18, --time=60, run]
expect :
- option : EventsPerSecond
value : <4500