Test disk read/write speed

smic717394

Dabbler
Joined
Apr 27, 2022
Messages
29
Hi, is there any way to test the read/write speed of individual disks. I remember some time ago, I did find a command but I cant remember it :( any way I tried the following 2 commands. the dd gives me some wrong numbers, I have 2 2.5" regular hdd and apparently they are over 400MB/s.

diskinfo -ctv /dev/ada0
also
dd if=/dev/zero of=/mnt/pool/test.dd bs=1M count=1024; sync
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,945
fio? Although I suspect that tests the speed of a pool rather than individual disks
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,945
Why would you want to test the boot pool?
 

smic717394

Dabbler
Joined
Apr 27, 2022
Messages
29
I know, strange, I moved the boot-pool from a ssd to a nvme connected via an adapter to a usb3 on the mb, and I´m trying to figure out it is a bad idea or the adapter its doing its job. I´m still playing with it trying to find the best configuration, before I install the good drives and go live,

The best command i found its diskinfo -t /dev/adaX its not 100% but to get an idea. this are the values I get.


2.5" HDD 1
Transfer rates:
outside: 102400 kbytes in 1.152412 sec = 88857 kbytes/sec
middle: 102400 kbytes in 1.356927 sec = 75465 kbytes/sec
inside: 102400 kbytes in 2.283349 sec = 44846 kbytes/sec
2.5" HDD 2
Transfer rates:
outside: 102400 kbytes in 1.014331 sec = 100953 kbytes/sec
middle: 102400 kbytes in 1.236002 sec = 82848 kbytes/sec
inside: 102400 kbytes in 1.981105 sec = 51688 kbytes/sec

NVME on usb3 addapter
Transfer rates:
outside: 102400 kbytes in 0.445237 sec = 229990 kbytes/sec
middle: 102400 kbytes in 0.445095 sec = 230063 kbytes/sec
inside: 102400 kbytes in 0.448314 sec = 228411 kbytes/sec

SSD on Sata3
Transfer rates:
outside: 102400 kbytes in 0.203054 sec = 504299 kbytes/sec
middle: 102400 kbytes in 0.198788 sec = 515122 kbytes/sec
inside: 102400 kbytes in 0.204655 sec = 500354 kbytes/sec
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,945
Its a boot pool. Unless its taking a stupid amount of time to boot (like all night), who cares? Those speeds look absolutely fine to me
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
A boot pool need not be very fast. While it will make a difference during a software upgrade, normally you only see slow speeds when dealing with typical USB Flash Drives, but you are not using a typical generic Flash Drive.

Looking at the drive stats you posted, looks like the two 2.5" drives are probably on a USB connector (they seem slow). Make sure you are not using SMR drives. The NVMe drive is very fast, just over half as fast as the SATA drive. So it's definitely fast enough.
 

smic717394

Dabbler
Joined
Apr 27, 2022
Messages
29
A boot pool need not be very fast. While it will make a difference during a software upgrade, normally you only see slow speeds when dealing with typical USB Flash Drives, but you are not using a typical generic Flash Drive.

Looking at the drive stats you posted, looks like the two 2.5" drives are probably on a USB connector (they seem slow). Make sure you are not using SMR drives. The NVMe drive is very fast, just over half as fast as the SATA drive. So it's definitely fast enough.

The 2.5" are connected to the sata 2 and they just old regular laptop hdd so 80MB/s its ok. I had 4 x WD red 4TB that I had to sell, because they where SMR so I´m buying the WD red plus that apparently are CMR.
 

smic717394

Dabbler
Joined
Apr 27, 2022
Messages
29
Its a boot pool. Unless its taking a stupid amount of time to boot (like all night), who cares? Those speeds look absolutely fine to me
Jejeje.. not too worried about the speed of it for the boot time, but I do try to stress is to test the adapter, to check if it gives io error. Boot time as 250MB/s its about 30sec
 
Top