Is there a generic utility to benchmark external memory device (eMMC, DDR) throughput on an embedded device (e.g. raspberry pi)? memtester, bonnie, bonnie++, memtest, dd?
I've been running into issues related to the "infelicities" of some of the
open flags and the fact that linux caches things and was giving me extraordinary read speeds. I ended up ditching a C app and tested 10MiB operations straight from the command line with
Sequential Write Test of eMMC
sync; echo 3 > /proc/sys/vm/drop_caches; time dd if=/dev/zero of=/dev/mydevicepartition count=20 bs=524288 conv=fsync
Sequential Read Test of eMMC
sync; echo 3 > /proc/sys/vm/drop_caches; time dd if=/dev/mydevicepartition of=/dev/null count=20 bs=524288
Someone else on this forum seems to have had similar issues.