diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-02-17 00:17:59 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-02-17 00:17:59 +0100 |
commit | 1dad8fc1104985b1086ad4db1c3f04f69cf14c10 (patch) | |
tree | 594499d109c18a9fcf1d3c3a286995876274b94b /README | |
parent | 6aa1d51196783fb743a487e876645fb7ccbd76a0 (diff) |
flashbench: extend README
This adds an explanation about how to find the number
of open segments/eraseblocks.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'README')
-rw-r--r-- | README | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -71,6 +71,38 @@ from those that have been written. Writes a scatter plot into a file that can be used as input for a ''gnuplot -p -e 'plot "file"' '' +== Finding the number of open erase blocks == + +''flashbench --open-au <device> --open-au-nr=<nr> --erasesize=<size> [--random]'' + +Example: + +$ sudo ./flashbench -O --erasesize=$[4 * 1024 * 1024] \ + --blocksize=$[256 * 1024] /dev/mmcblk0 --open-au-nr=2 +4MiB 8.79M/s +2MiB 7.41M/s +1MiB 6.87M/s +512KiB 6.39M/s +256KiB 6.27M/s +$ sudo ./flashbench -O --erasesize=$[4 * 1024 * 1024] \ + --blocksize=$[256 * 1024] /dev/mmcblk0 --open-au-nr=3 +4MiB 7.75M/s +2MiB 5.03M/s +1MiB 3.24M/s +512KiB 1.76M/s +256KiB 912K/s + +In this case, trying 2 open AUs shows fast accesses for small +block sizes, but trying 3 open AUs is much slower, and degrades +further at smaller sizes. + +Try varying numbers until hitting the cut-off point. +For cards that are fast when using --random, this will find +the cut-off more reliably. + +Some cards can do more open segments in linear mode than they +can in random mode. + == References == [1] https://wiki.linaro.org/WorkingGroups/KernelConsolidation/Projects/FlashCardSurvey |