What's new

entware disk speed test application?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

bozolino

Occasional Visitor
is there an opkg to perform usb disk speed tests on a asuswrt-merlin router via terminal?
 
Last edited:
I thought you could use dd (ex. "dd if=/dev/zero of=100MB.test bs=1M count=100 conv=fsync" and make sure you are in a directory on the disk) but the dd on my AsusWRT-merlin does not spit out stats. Maybe try the entware version of busybox, rather than the included one?

Maybe hdparm?
 
@Nullity: thanks! i did opkg install hdparm then tested the read speeds:

1. with cache
hdparm -tT /dev/sda1
2. without cache
hdparm -tT --direct /dev/sda1

according to this link, write speeds can be tested with
dd if=/dev/zero of=tempfile bs=1M count=256 conv=fdatasync,notrunc
but upon entering this, my router tells me
dd: invalid argument 'fdatasync' to 'conv'

can anyone please tell us to correctly use dd to test read/write speeds on entware?
 
Last edited:
If you run "dd --help" you will see that the dd included with AsusWRT's busybox does not support conv=fdatasync but it does support conv=fsync.

Did you try entware's busybox? Like I said in my post, AsusWRT's dd does not seem to share stats...
 
thanks! i have installed busybox from entware and used this string:
dd if=/dev/zero of=tempfile bs=1M count=256 conv=fsync,notrunc
output:
256+0 records in
256+0 records out

so no speed display yet... will keep looking. who has a hint?
 
Actually, just install coreutils-dd then run that dd command you found.
 
that's it. thanks!

so here's the adapted step-by-step - assuming your disk is located at /dev/sda1:

1. install hdparm and coreutils-dd
opkg install hdparm coreutils-dd
2. test raw read speed without cache
sudo hdparm -tT /dev/sda1
3. test raw read speed with cache
sudo hdparm -tT --direct /dev/sda1
4. test partition read speed
cd /mnt/sda1
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fsync,notrunc

5. clear cache
echo 3 | tee /proc/sys/vm/drop_caches
6. test partition write speed (uncached)
dd if=tempfile of=/dev/null bs=1M count=1024
7. test partition write speed (cached)
dd if=tempfile of=/dev/null bs=1M count=1024
8. delete test file
rm tempfile
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top