****************************************************** **** SanDisk microSDHC class 4, 4 GB (for cameras)**** ******************************************************
==> /sys/block/mmcblk0/device/cid <== 0353445355303447800a58d43d00aa00
==> /sys/block/mmcblk0/device/csd <== 400e00325b5900001d8a7f800a404000
==> /sys/block/mmcblk0/device/scr <== 0235800100000000
==> /sys/block/mmcblk0/device/fwrev <== 0x0
==> /sys/block/mmcblk0/device/hwrev <== 0x8
==> /sys/block/mmcblk0/device/cid <== 0353445355303447800a58d43d00aa00
==> /sys/block/mmcblk0/device/manfid <== 0x000003
==> /sys/block/mmcblk0/device/oemid <== 0x5344
==> /sys/block/mmcblk0/device/serial <== 0x0a58d43d
==> /sys/block/mmcblk0/device/erase_size <== 512
==> /sys/block/mmcblk0/device/preferred_erase_size <== 4194304
==> /sys/block/mmcblk0/device/name <== SU04G
==> /sys/block/mmcblk0/device/date <== 10/2010 clock: 25000000 Hz vdd: 20 (3.2 ~ 3.3 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 0 (legacy)
fdisk -ul /dev/sda
Disk /dev/sda: 3965 MB, 3965190144 bytes 128 heads, 32 sectors/track, 1890 cylinders, total 7744512 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sda1 1 614399 307199+ 83 Linux /dev/sda2 614400 819199 102400 83 Linux /dev/sda3 819200 1851391 516096 82 Linux swap / Solaris /dev/sda4 1851392 7364607 2756608 83 Linux
$ ./flashbench -a /dev/sda3 --count=100 align 134217728 pre 2.62ms on 2.61ms post 2.57ms diff 20.6µs align 67108864 pre 2.61ms on 2.61ms post 2.57ms diff 20.3µs align 33554432 pre 2.75ms on 2.78ms post 2.59ms diff 113µs align 16777216 pre 2.54ms on 2.6ms post 2.47ms diff 91.4µs align 8388608 pre 2.61ms on 2.6ms post 2.41ms diff 93.6µs align 4194304 pre 2.61ms on 2.61ms post 2.6ms diff -1301ns align 2097152 pre 2.61ms on 2.61ms post 2.61ms diff -115ns align 1048576 pre 2.61ms on 2.61ms post 2.61ms diff 5.14µs align 524288 pre 2.61ms on 2.61ms post 2.61ms diff 2.06µs align 262144 pre 2.61ms on 2.61ms post 2.61ms diff 4.23µs align 131072 pre 2.61ms on 2.61ms post 2.61ms diff 3.11µs align 65536 pre 2.62ms on 2.62ms post 2.62ms diff 945ns align 32768 pre 2.68ms on 2.67ms post 2.7ms diff -18986n
-> 8MiB (??)
$ ./flashbench /dev/sda3 --open-au-nr=1 -O --blocksize=2048 --erasesize=$[1024*1024*16] 16MiB 4.31M/s 8MiB 4.25M/s 4MiB 4.44M/s 2MiB 4.44M/s 1MiB 4.51M/s 512KiB 4.41M/s 256KiB 4.19M/s 128KiB 4.16M/s 64KiB 8.05M/s 32KiB 4.69M/s 16KiB 2.25M/s 8KiB 2.22M/s 4KiB 1.41M/s 2KiB 851K/s
$ ./flashbench /dev/sda3 --open-au-nr=1 -O --blocksize=2048 --erasesize=$[1024*1024*8] 8MiB 3.21M/s 4MiB 3.21M/s 2MiB 3.86M/s 1MiB 6.5M/s 512KiB 7.43M/s 256KiB 6.87M/s 128KiB 7.68M/s 64KiB 10M/s 32KiB 8.38M/s 16KiB 3.05M/s 8KiB 2.82M/s 4KiB 1.74M/s 2KiB 980K/s
./flashbench /dev/sda3 --open-au-nr=1 -O --blocksize=2048 --erasesize=$[1024*1024*1] 1MiB 6.96M/s 512KiB 7.67M/s 256KiB 7.01M/s 128KiB 7.76M/s 64KiB 10M/s 32KiB 7.65M/s 16KiB 3.07M/s 8KiB 2.94M/s 4KiB 1.71M/s 2KiB 997K/s
$ ./flashbench /dev/sda3 --open-au-nr=1 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 7.26M/s 2MiB 7.14M/s 1MiB 7.67M/s 512KiB 7.45M/s 256KiB 6.85M/s 128KiB 7.88M/s 64KiB 10M/s 32KiB 8.38M/s 16KiB 3.02M/s 8KiB 2.86M/s 4KiB 1.74M/s 2KiB 956K/s
-> ok, so it's more likely 4MiB ?
$ ./flashbench /dev/sda3 --open-au-nr=2 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 5.55M/s 2MiB 7.32M/s 1MiB 7.73M/s 512KiB 7.44M/s 256KiB 6.87M/s 128KiB 7.75M/s 64KiB 9.25M/s 32KiB 8.42M/s 16KiB 3.02M/s 8KiB 2.84M/s 4KiB 1.73M/s 2KiB 972K/s
$ ./flashbench /dev/sda3 --open-au-nr=5 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 4.92M/s 2MiB 2.99M/s 1MiB 2.07M/s 512KiB 2.33M/s 256KiB 2.05M/s 128KiB 2.08M/s 64KiB 2.48M/s 32KiB 3.08M/s 16KiB 1.61M/s 8KiB 1.99M/s 4KiB 1.28M/s 2KiB 797K/s
$ ./flashbench /dev/sda3 --open-au-nr=6 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 3.91M/s 2MiB 2.73M/s 1MiB 1.65M/s 512KiB 1.45M/s 256KiB 1.4M/s 128KiB 1.49M/s 64KiB 385K/s 32KiB 2.46M/s 16KiB 1.53M/s 8KiB 1.66M/s 4KiB 1.13M/s 2KiB 705K/s
$ ./flashbench /dev/sda3 --open-au-nr=7 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 3.75M/s 2MiB 2.72M/s 1MiB 1.43M/s 512KiB 1.23M/s 256KiB 1.19M/s 128KiB 1.26M/s 64KiB 1.78M/s 32KiB 1.65M/s 16KiB 1.41M/s 8KiB 1.31M/s 4KiB 1.11M/s 2KiB 689K/s
$ ./flashbench /dev/sda3 --open-au-nr=10 -O --blocksize=2048 --erasesize=$[1024*1024*4] 4MiB 4.25M/s 2MiB 2.98M/s 1MiB 1.26M/s 512KiB 939K/s 256KiB 902K/s 128KiB 816K/s 64KiB 306K/s 32KiB 1.12M/s 16KiB 676K/s 8KiB 503K/s ^C
$ ./flashbench /dev/sda3 --open-au-nr=9 -O --blocksize=2048 --erasesize=$[1024*1024*4]
4MiB 3.16M/s 2MiB 3.02M/s 1MiB 1.26M/s 512KiB 996K/s 256KiB 971K/s ^C
-> ok, would say, it's 7 blocks
./flashbench /dev/sda3 --open-au-nr=7 -O --blocksize=2048 --erasesize=$[1024*1024*4] --random 4MiB 3.52M/s 2MiB 2.93M/s 1MiB 1.38M/s 512KiB 843K/s 256KiB 474K/s ^C
./flashbench /dev/sda3 --open-au-nr=1 -O --blocksize=2048 --erasesize=$[1024*1024*4] --random 4MiB 7.25M/s 2MiB 7.38M/s 1MiB 7.67M/s 512KiB 2.44M/s 256KiB 1.13M/s 128KiB 2.06M/s 64KiB 1.2M/s 32KiB 597K/s 16KiB 301K/s 8KiB 1.32M/s 4KiB 801K/s 2KiB 439K/s
-> ok, would say this card is not for random access
./flashbench /dev/sda -f --random --erasesize=$[4*1024*1024] --fat-nr=12 4MiB 3.74M/s 4.09M/s 3.37M/s 4.5M/s 4.1M/s 4.63M/s 4.63M/s 4.55M/s 4.63M/s 4.63M/s 4.69M/s 4.58M/s 2MiB 4.32M/s 4.99M/s 4.2M/s 4.14M/s 3.93M/s 4.27M/s 4.32M/s 4.32M/s 4.32M/s 4.32M/s 4.32M/s 4.3M/s 1MiB 4.34M/s 4.69M/s 4.09M/s 4.13M/s 3.86M/s 4.27M/s 4.27M/s 4.27M/s 4.28M/s 4.25M/s 4.27M/s 4.25M/s 512KiB 4.19M/s 4.33M/s 3.87M/s 3.95M/s 3.84M/s 3.94M/s 3.97M/s 3.83M/s 3.95M/s 3.95M/s 3.95M/s 3.95M/s 256KiB 1.63M/s 1.77M/s 1.55M/s 1.53M/s 1.52M/s 1.53M/s 1.53M/s 1.52M/s 1.53M/s 1.52M/s 1.52M/s 1.53M/s 128KiB 1.95M/s 2.25M/s 1.86M/s 2.13M/s 2.04M/s 2.14M/s 2.17M/s 2.17M/s 2.15M/s 2.17M/s 2.16M/s 2.16M/s 64KiB 1.21M/s 1.39M/s 1.16M/s 1.14M/s 1.14M/s 1.13M/s 1.14M/s 1.13M/s 1.14M/s 1.13M/s 1.13M/s 1.14M/s 32KiB 585K/s 738K/s 560K/s 582K/s 598K/s 589K/s 588K/s 588K/s 589K/s 588K/s 589K/s 589K/s 16KiB 301K/s 372K/s 294K/s 301K/s 302K/s 300K/s 300K/s 300K/s 300K/s 300K/s 300K/s 300K/s