lp:~lasall/+junk/flashbench

Created by Dominique Lasserre and last modified
Get this branch:
bzr branch lp:~lasall/+junk/flashbench
Only Dominique Lasserre can upload to this branch. If you are Dominique Lasserre please log in for upload directions.

Related bugs

Related blueprints

Branch information

Owner:
Dominique Lasserre
Status:
Development

Recent revisions

63. By Dominique Lasserre

Initial debian source package setup.

62. By Arnd Bergmann

flashbench: use only one out of 12 erase blocks

This helps with TLC memory when while guessing the erase block size,
so that the guessed erase block start is at the start of the actual
erase block.

Signed-off-by: Arnd Bergmann <email address hidden>

61. By Arnd Bergmann

flashbench: fix Makefile

This avoids link errors that people have reported

Signed-off-by: Arnd Bergmann <email address hidden>

60. By Arnd Bergmann

Add a license file with GPLv2

Signed-off-by: Arnd Bergmann <email address hidden>

59. By Arnd Bergmann

flashbench: start at multiple of erasesize for --open-au

Apparently, 1.5 MB erase blocks or multiples of that are more
common than I first thought, so automatically try to handle these
by starting at a multiple of the erase blcok.

Signed-off-by: Arnd Bergmann <email address hidden>

58. By Arnd Bergmann

flashbench: add --offset command line argument

This makes it easier to do the --open-au test case
on drives whose erase block is not a power of two.
Note that for those, you have to pass a blocksize
that is also not a power of two, but a fraction
of the erase size, e.g.

flashbench --open-au --random --open-au-nr=6 \
 --erasesize=$[3 * 1024 * 1024] \
 --blocksize=$[24 * 1024] \
 --offset=$[24 * 1024 * 1024] \
 /dev/sde

Signed-off-by: Arnd Bergmann <email address hidden>

57. By Arnd Bergmann

flashbench: add try_open_au_oob

This function is needed for certain USB sticks that
use an odd erase block size (4128 KiB in one case).
We will probably need this later, commit it as unused
for now.

Signed-off-by: Arnd Bergmann <email address hidden>

56. By Arnd Bergmann

flashbench: spread out --open-au test some more

Using every other erase block is bad when you have
guessed the erase block size incorrectly. Better
skip three for each one we test, to have a better
chance of actually hitting separate erase blocks.

Signed-off-by: Arnd Bergmann <email address hidden>

55. By Arnd Bergmann

flashbench: compute proper average

We want to compute the bytes per second from the average of the
times it takes to read many sectors, not compute the average of
the throughput, which is somewhat different and less interesting.

Also, use only one try for the --open-au test, instead of the
maximum of three.

Signed-off-by: Arnd Bergmann <email address hidden>

54. By Arnd Bergmann

flashbench: use lower number of samples in -a test

Turns out a bit too much, and might hide some effects.
Also, using something just below a power of two works
better, so use 7 now.

Signed-off-by: Arnd Bergmann <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.