yardstick.benchmark.scenarios.storage package

Submodules

yardstick.benchmark.scenarios.storage.fio module

class yardstick.benchmark.scenarios.storage.fio.Fio(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute fio benchmark in a host

Parameters:
  • - file name for fio workload (filename) – type: string unit: na default: /home/ubuntu/data.raw
  • - block size used for the io units (bs) – type: int unit: bytes default: 4k
  • - number of iobuffers to keep in flight (iodepth) – type: int unit: na default: 1
  • - type of io pattern [read, write, randwrite, randread, rw, randrw] (rw) – type: string unit: na default: write
  • - run time before logging any performance (ramp_time) – type: int unit: seconds default: 20
  • link below for more fio args description (Read) – http://www.bluestop.org/fio/HOWTO.txt
TARGET_SCRIPT = 'fio_benchmark.bash'
run(result)[source]

execute the benchmark

setup()[source]

scenario setup

Module contents