Test disk read and write speed?

Hi there,

Does anyone know how to test read and write speeds?

I just migrated to SSD and would like to know if it made any difference?

I tested with: sync; dd if=/dev/zero of=~/test.tmp bs=500K count=1024 but all I got was this:

~ $  sync; dd if=/dev/zero of=~/test.tmp bs=500K count=1024
1024+0 records in
1024+0 records out
~ $

Any thought on how to rest it?

I would be interested to make that measure as well.
So far I have found this benchmark: https://storage.jamesachambers.com/ with simple command to run. Unfortunately I think it will not run from HassOS. For test to make RPi needs to be booted up with “normal” linux OS.

At least one way is to use the dd command

From the host os:

dd if=/dev/sda of=/mnt/data/supervisor/tmp/temp.img bs=8k count=256k
rm /mnt/data/supervisor/tmp/temp.img

The output for my ssd is

2147483648 bytes (2.0GB) copied, 20.917460 seconds, 97.9MB/s

dd command from HA OS does not display the speed sadly…

I am also searching for a solution ot measure disk speed from HA OS.

Same here unfortunatelly. I haven’t found a correct way to test this

# dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out

This is how I tested:

# dd if=/dev/zero of=/mnt/data/temp.img bs=8k count=256k
262144+0 records in
262144+0 records out
2147483648 bytes (2.0GB) copied, 2.226857 seconds, 919.7MB/s

I upgraded to Gen 3 PCIe NMVE and get about 100Mb/s write and 220MB/s read one a RPi4. You have great values/results. Any idea why or how you got these values?

if its Gen 3 then your read and write shouldn’t be that low. I didn’t do anything extra. I hope your SSD supports up to that speed.