This is an old revision of the document!
Für IO Performance kann fio genutzt werden.
fio ist für die meisten Betriebssysteme verfügbar und kann daher genutzt werden um vergleichbare Ergebnisse zu bekommen.
#!/bin/bash testfile="FIO-TESTFILE" filesize=1G echo "IOPS Write:" fio --rw=randwrite --name=IOPS-write --bs=4k --iodepth=32\ --direct=1 --filename=$testfile --numjobs=4 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].write.iops echo "IOPS Read:" fio --rw=randread --name=IOPS-read --bs=4k --iodepth=32\ --direct=1 --filename=$testfile --numjobs=4 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].read.iops echo "Throughput Write (kB/s):" fio --rw=write --name=Throughput-write --bs=1024k --iodepth=32\ --direct=1 --filename=$testfile --numjobs=4 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].write.bw echo "Throughput Read (kB/s):" fio --rw=read --name=Throughput-read --bs=1024k --iodepth=32\ --direct=1 --filename=$testfile --numjobs=4 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].read.bw echo "Latency Write (ns):" fio --rw=randwrite --name=Latency-write --bs=4k --iodepth=1\ --direct=1 --filename=$testfile --numjobs=1 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].write.lat_ns.mean echo "Latency Read (ns):" fio --rw=randread --name=Latency-read --bs=4k --iodepth=1\ -direct=1 --filename=$testfile --numjobs=1 --ioengine=libaio\ --refill_buffers --group_reporting --runtime=60 --time_based\ --size=$filesize --output-format=json | jq .jobs[0].read.lat_ns.mean