andrew@piglet:~/git/flashbench$ head /sys/block/mmcblk0/device/* 2>/dev/null | grep -v ^$ ==> /sys/block/mmcblk0/device/block <== ==> /sys/block/mmcblk0/device/cid <== 1b534d3030303030105d4e555800f900 ==> /sys/block/mmcblk0/device/csd <== 400e00325b590000775d7f800a400000 ==> /sys/block/mmcblk0/device/date <== 09/2015 ==> /sys/block/mmcblk0/device/driver <== ==> /sys/block/mmcblk0/device/erase_size <== 512 ==> /sys/block/mmcblk0/device/fwrev <== 0x0 ==> /sys/block/mmcblk0/device/hwrev <== 0x1 ==> /sys/block/mmcblk0/device/manfid <== 0x00001b ==> /sys/block/mmcblk0/device/name <== 00000 ==> /sys/block/mmcblk0/device/oemid <== 0x534d ==> /sys/block/mmcblk0/device/power <== ==> /sys/block/mmcblk0/device/preferred_erase_size <== 4194304 ==> /sys/block/mmcblk0/device/scr <== 0235800300000000 ==> /sys/block/mmcblk0/device/serial <== 0x5d4e5558 ==> /sys/block/mmcblk0/device/subsystem <== ==> /sys/block/mmcblk0/device/type <== SD ==> /sys/block/mmcblk0/device/uevent <== DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=00000 MODALIAS=mmc:block
root@piglet:~# cat /sys/kernel/debug/mmc0/* 2>/dev/null | grep -v ^$ 33000000 clock: 33000000 Hz actual clock: 33000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 2 (sd high-speed) signal voltage: 0 (3.30 V) driver type: 0 (driver type B)
andrew@piglet:~/git/flashbench$ sudo fdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 14.9 GiB, 16021192704 bytes, 31291392 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 31291391 31283200 14.9G c W95 FAT32 (LBA)
andrew@piglet:~/git/flashbench$ sudo ./flashbench -a /dev/mmcblk0 --blocksize=1024 --count=100 align 4294967296 pre 648µs on 694µs post 492µs diff 124µs align 2147483648 pre 656µs on 693µs post 496µs diff 117µs align 1073741824 pre 614µs on 663µs post 501µs diff 105µs align 536870912 pre 630µs on 665µs post 503µs diff 97.8µs align 268435456 pre 608µs on 660µs post 491µs diff 110µs align 134217728 pre 613µs on 664µs post 495µs diff 110µs align 67108864 pre 618µs on 665µs post 500µs diff 106µs align 33554432 pre 616µs on 659µs post 484µs diff 109µs align 16777216 pre 627µs on 669µs post 512µs diff 99.3µs align 8388608 pre 624µs on 657µs post 504µs diff 93.2µs align 4194304 pre 608µs on 646µs post 501µs diff 91.9µs align 2097152 pre 619µs on 668µs post 504µs diff 107µs align 1048576 pre 618µs on 665µs post 498µs diff 107µs align 524288 pre 616µs on 641µs post 503µs diff 81.7µs align 262144 pre 609µs on 657µs post 494µs diff 105µs align 131072 pre 607µs on 645µs post 487µs diff 97.7µs align 65536 pre 609µs on 654µs post 491µs diff 104µs align 32768 pre 608µs on 648µs post 488µs diff 101µs align 16384 pre 617µs on 653µs post 490µs diff 99.7µs align 8192 pre 499µs on 500µs post 483µs diff 8.51µs align 4096 pre 544µs on 547µs post 530µs diff 9.51µs align 2048 pre 568µs on 570µs post 553µs diff 9.31µs
## No clear indication of eraseblock size but pages are probably 16 kiB.
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --open-au-nr=1 4MiB 13.2M/s 2MiB 14M/s 1MiB 13.5M/s 512KiB 13.8M/s 256KiB 14M/s 128KiB 14.2M/s 64KiB 14.5M/s 32KiB 11.2M/s 16KiB 8.81M/s
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --open-au-nr=10 4MiB 10.6M/s 2MiB 7.8M/s 1MiB 7.64M/s 512KiB 7.59M/s 256KiB 7.51M/s 128KiB 7.09M/s 64KiB 6.65M/s 32KiB 5.18M/s 16KiB 2.92M/s
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --open-au-nr=5 4MiB 7.15M/s 2MiB 12.6M/s 1MiB 14.6M/s 512KiB 14.5M/s 256KiB 13.8M/s 128KiB 13.2M/s 64KiB 11.3M/s 32KiB 8.73M/s 16KiB 5.83M/s
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --open-au-nr=8 4MiB 8.06M/s 2MiB 7.65M/s 1MiB 7.64M/s 512KiB 7.58M/s 256KiB 7.44M/s 128KiB 7.23M/s ^C
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --open-au-nr=7 4MiB 8.95M/s 2MiB 13.4M/s 1MiB 14.4M/s 512KiB 14.4M/s 256KiB 13.7M/s 128KiB 13M/s ^C
## 7 open-au non-random
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --random --open-au-nr=1 4MiB 14.7M/s 2MiB 15.4M/s 1MiB 14.4M/s 512KiB 15.4M/s 256KiB 14.5M/s 128KiB 14.9M/s 64KiB 14.5M/s 32KiB 11.6M/s 16KiB 8.15M/s
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --random --open-au-nr=7 4MiB 14.8M/s 2MiB 14.7M/s 1MiB 14.6M/s 512KiB 14.4M/s 256KiB 14M/s 128KiB 13.1M/s 64KiB 11.8M/s 32KiB 8.44M/s 16KiB 5.29M/s
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --random --open-au-nr=8 4MiB 9.44M/s 2MiB 7.47M/s 1MiB 7.63M/s 512KiB 7.61M/s 256KiB 7.44M/s ^C
## 7 open-au random, too.
Not a bad little card.
-Andrew
On Wednesday, September 7, 2016 12:09:04 PM CEST Andrew Bradford wrote:
andrew@piglet:~/git/flashbench$ sudo ./flashbench /dev/mmcblk0 --open-au --erasesize=$[4*1024*1024] --blocksize=$[16*1024] --random --open-au-nr=8 4MiB 9.44M/s 2MiB 7.47M/s 1MiB 7.63M/s 512KiB 7.61M/s 256KiB 7.44M/s ^C
## 7 open-au random, too.
Not a bad little card.
Nice! I should test my EVO+ card too. I bought that after seeing good reviews (with random writes being higher than others), but I haven't actually tested it.
Arnd
flashbench-results@lists.linaro.org