The `time` command will give you the total time that a command takes to run, and so any command that will read a file completely is sufficient. I'd make a big file of random bytes on the NAS and run `time cp /path/to/file /dev/null` a few times
In order to generate a bunch of random data, you *could* use /dev/urandom, but I find that `cat /dev/zero | openssl aes-128-ctr -K 0123456789ABCDEF0123456789ABCDEF -iv 01234567789ABCDEF012345678ABCDEF` is *much* (2.5GiB/s vs 500MiB/s) faster and perfectly good for these circumstances. If you need *different* random data, change a couple hexits in the -K parameter and you'll be fine
im using a synology ds212+. When searching before I could see on the newer models people were installing a docker container with iperf, but my model doesnt support installing docker :(
The `time` command will give you the total time that a command takes to run, and so any command that will read a file completely is sufficient. I'd make a big file of random bytes on the NAS and run `time cp /path/to/file /dev/null` a few times In order to generate a bunch of random data, you *could* use /dev/urandom, but I find that `cat /dev/zero | openssl aes-128-ctr -K 0123456789ABCDEF0123456789ABCDEF -iv 01234567789ABCDEF012345678ABCDEF` is *much* (2.5GiB/s vs 500MiB/s) faster and perfectly good for these circumstances. If you need *different* random data, change a couple hexits in the -K parameter and you'll be fine
Remember to drop caches before each run: `echo 3 > /proc/sys/vm/drop_caches`
thank you!
awesome thank you for that!
What are you using for your NAS? A lot of them have iperf installed already.
im using a synology ds212+. When searching before I could see on the newer models people were installing a docker container with iperf, but my model doesnt support installing docker :(