aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-02-17 00:17:59 +0100
committerArnd Bergmann <arnd@arndb.de>2011-02-17 00:17:59 +0100
commit1dad8fc1104985b1086ad4db1c3f04f69cf14c10 (patch)
tree594499d109c18a9fcf1d3c3a286995876274b94b /README
parent6aa1d51196783fb743a487e876645fb7ccbd76a0 (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--README32
1 files changed, 32 insertions, 0 deletions
diff --git a/README b/README
index 775f03d..3cb632c 100644
--- a/README
+++ b/README
@@ -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