To test the write speed of a 2.5 inch SATA3 spinning hard drive (some old Seagate one) installed in my TrueNAS system I used
dd if=/dev/zero of=/mnt/pool/test.dd bs=1024 count=1m (found this in several forums and posts across the Internet). This gives me speeds of 300 to 350 Megabytes per second. How can this little aged drive be so fast? Is there a caching mechanism involved?
Using the same technique I tested the write speed of a SATA3-adapted Apple PCIe-SSD. I got the same speed results of 300 to 350 Megabytes per second. In this case it seems a bit slow (I’d expect results around 500 Megabytes per second). Here my best guess is the adapter limiting the speed.
Then I used this dd command to write onto my NVME SSD getting the same speeds of 300 to 350 Megabytes per second again.
Lastly I tested a RAM disk and finally got a different speed of about 750 Megabytes per second. But 750 MB/s write speed to a RAM disk? Doesn’t sound right.
I’d say the dd testing method is inadequate. Is there a better method to test the IO speed of zpools in a TrueNAS/FreeBSD system?