PDA

View Full Version : How to discover drive/HDD/disk performance in IOPS in case of the Linux server/VPS?



Fli
05-30-2017, 10:57 AM
How a Linux server (dedicated or a VPS) admin can discover his/her server disk/drive/HDD/SSD performance in the IOPS/tps (transactions/operations per second)?

So far this command shows numbers that can be related to real IOPS:

echo "Can take a few seconds..";fio --bs=4k --size=1m --direct=1 --runtime=5 --rw=randread --numjobs=3 --group_reporting --name=1m|grep iops|awk '{print $5}';rm -f 1m.*
(requires "fio" be installed - yum install fio/apt-get install fio)

one can add it into while loop so it continuously show current reading IOPS of the fio test:


while true;do sleep 1 && fio --bs=4k --size=1m --direct=1 --runtime=5 --rw=randread --numjobs=3 --group_reporting --name=1m|grep iops|awk '{print $5}' && rm -f 1m.*;done
iops=768
iops=5907
iops=3522
iops=5605
iops=1252
iops=3428
iops=33391
iops=33391

When value is low, it can mean other process is using IO i assume.

On SSD RAID 10 (6xDELL SSD) idle i got roughly values around 2000 :-/

Above mentioned command is also mentioned in this (https://internetlifeforum.com/linux-forums/2619-linux-disk-benchmark-tool-test/) topic, and i am writing this as a newbie, if anyone can narrow this or come with more accurate command, please kindly share it.

UPDATE: i think this IOPS test can have better accuracy:

while true;do sleep 1 && fio --bs=4k --size=1m --direct=1 --runtime=5 --rw=randread --numjobs=3 --group_reporting --name=1m|grep iops|awk '{print $5}' && rm -f 1m.*;done
Example result at https://internetlifeforum.com/vps-hosting/9431-wedos-review-vpson/