Hi Arnd,
As you asked for flashbench results, here's some:
Transcend µSDcard 2GB :
flashbench -a /dev/mmcblk1
align 536870912 pre 3.24ms on 3.8ms post 2.67ms diff 845µs
align 268435456 pre 3.05ms on 3.6ms post 2.53ms diff 814µs
align 134217728 pre 3.11ms on 3.65ms post 2.56ms diff 814µs
align 67108864 pre 3.07ms on 3.65ms post 2.52ms diff 854µs
align 33554432 pre 3.08ms on 3.63ms post 2.49ms diff 851µs
align 16777216 pre 3.09ms on 3.59ms post 2.58ms diff 756µs
align 8388608 pre 3.25ms on 3.82ms post 2.68ms diff 850µs
align 4194304 pre 2.93ms on 3.5ms post 2.52ms diff 772µs
align 2097152 pre 2.96ms on 3.51ms post 2.49ms diff 788µs
align 1048576 pre 2.45ms on 2.5ms post 2.47ms diff 37.6µs
align 524288 pre 2.46ms on 2.47ms post 2.5ms diff -7440ns
align 262144 pre 2.45ms on 2.47ms post 2.51ms diff -13815n
align 131072 pre 2.45ms on 2.47ms post 2.49ms diff 2.15µs
align 65536 pre 2.45ms on 2.47ms post 2.49ms diff -1188ns
align 32768 pre 2.45ms on 2.46ms post 2.5ms diff -15476n
Seems to be a 2MiB eraseblock
Kingston µSD-HC card 4GB:
flashbench -a /dev/mmcblk1
align 1073741824 pre 1.76ms on 2.09ms post 1.86ms diff 280µs
align 536870912 pre 1.75ms on 2.09ms post 1.88ms diff 274µs
align 268435456 pre 1.76ms on 2.1ms post 1.88ms diff 279µs
align 134217728 pre 1.75ms on 2.1ms post 1.89ms diff 275µs
align 67108864 pre 1.75ms on 2.11ms post 1.9ms diff 282µs
align 33554432 pre 1.74ms on 2.09ms post 1.91ms diff 269µs
align 16777216 pre 1.92ms on 2.26ms post 1.88ms diff 362µs
align 8388608 pre 1.76ms on 2.1ms post 1.87ms diff 280µs
align 4194304 pre 1.75ms on 2.09ms post 1.88ms diff 268µs
align 2097152 pre 1.72ms on 1.91ms post 1.88ms diff 110µs
align 1048576 pre 1.85ms on 2.02ms post 1.85ms diff 171µs
align 524288 pre 1.72ms on 1.88ms post 1.85ms diff 98.5µs
align 262144 pre 1.72ms on 1.91ms post 1.88ms diff 108µs
align 131072 pre 1.73ms on 1.9ms post 1.87ms diff 96.3µs
align 65536 pre 1.72ms on 1.9ms post 1.86ms diff 105µs
align 32768 pre 1.72ms on 1.88ms post 1.85ms diff 89.5µs
Seems to be a standard 4MiB eraseblock.
Emmc 32GB:
./flashbench -a /dev/mmcblk0
align 8589934592 pre 467µs on 470µs post 470µs diff 1.25µs
align 4294967296 pre 470µs on 469µs post 466µs diff 976ns
align 2147483648 pre 472µs on 473µs post 476µs diff -1154ns
align 1073741824 pre 479µs on 487µs post 483µs diff 5.83µs
align 536870912 pre 474µs on 480µs post 481µs diff 2.9µs
align 268435456 pre 490µs on 497µs post 486µs diff 8.85µs
align 134217728 pre 485µs on 485µs post 486µs diff -145ns
align 67108864 pre 491µs on 493µs post 480µs diff 7.05µs
align 33554432 pre 495µs on 490µs post 495µs diff -4414ns
align 16777216 pre 491µs on 496µs post 495µs diff 2.32µs
align 8388608 pre 500µs on 504µs post 491µs diff 8.27µs
align 4194304 pre 475µs on 492µs post 497µs diff 6.63µs
align 2097152 pre 478µs on 477µs post 481µs diff -1896ns
align 1048576 pre 481µs on 488µs post 488µs diff 3.58µs
align 524288 pre 489µs on 489µs post 484µs diff 2.3µs
align 262144 pre 487µs on 485µs post 479µs diff 1.92µs
align 131072 pre 477µs on 477µs post 486µs diff -4437ns
align 65536 pre 484µs on 487µs post 481µs diff 4.52µs
align 32768 pre 485µs on 478µs post 484µs diff -6095ns
I didn't see a pattern on this one.
regards,
Richard
Hi!
I am unsubscribing this mailing list due to what seems to excessive spam
originating from China.
In case you still want to reply to any of my posts, i.e. regarding my
little shell script to automate analysis of cards and sticks a bit, using
flashbench, then please CC me.
This basically appears to be pretty quiet and unmaintained anyway.
Thanks,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Name: SAMSUNG EVO UHS-1 HC-1 CL10
Size: 16GB ( 15.7GB, 15720251392 bytes )
Allocation Unit: 4MB
Write Size: 32KB
Page Size: 8KB
FAT Location: -
# open Aus linear: 28
# open Aus random: 28
Algorithm: random sector or page access ?
Manuf ID: 0x1B
OEMID: 0x534D
NOTE: Another card with Manuf ID: 0x1D showed very inferior random write
speeds compared to this one ( about 2x less ). I suspect it may be a fake,
and curiously enough the good one was bought from Hong Kong on Ebay while
this other was bought on a major store in my country.
Hi there,
Here are my results for the SanDisk Cruzer Blade 16GB tests. The unit seems
to behave a bit better than the smaller ones already in the list. The USB
ID is identical to those of the smaller ones, however.
At first, flashbench -a gave an uneven list of diff values. After reading
that amount of writes can make a difference, I zeroed the (brand new) drive
to all zeroes: dd if=/dev/zero of=/dev/sdx bs=4M. I then got the following:
sudo flashbench -a /dev/sdf --blocksize=1024
align 4294967296 pre 748µs on 1.09ms post 756µs
diff 335µs
align 2147483648 pre 749µs on 1.16ms post 751µs
diff 406µs
align 1073741824 pre 748µs on 1.15ms post 751µs
diff 402µs
align 536870912 pre 746µs on 1.15ms post 750µs diff 401µs
align 268435456 pre 752µs on 1.16ms post 752µs diff 408µs
align 134217728 pre 738µs on 1.15ms post 756µs diff 406µs
align 67108864 pre 749µs on 1.14ms post 749µs diff 395µs
align 33554432 pre 753µs on 1.14ms post 752µs diff 392µs
align 16777216 pre 746µs on 1.14ms post 754µs diff 394µs
align 8388608 pre 745µs on 1.13ms post 747µs diff 388µs
align 4194304 pre 744µs on 983µs post 747µs diff 237µs
align 2097152 pre 752µs on 885µs post 744µs diff 137µs
align 1048576 pre 753µs on 893µs post 753µs diff 140µs
align 524288 pre 752µs on 880µs post 739µs diff 134µs
align 262144 pre 750µs on 891µs post 757µs diff 137µs
align 65536 pre 748µs on 888µs post 750µs diff 139µs
align 32768 pre 749µs on 883µs post 745µs diff 137µs
align 16384 pre 750µs on 890µs post 751µs diff 139µs
align 8192 pre 745µs on 803µs post 748µs diff 56.8µs
align 4096 pre 747µs on 804µs post 753µs diff 53.5µs
align 2048 pre 746µs on 803µs post 745µs diff 57.3µs
Leading to an assumption of erase size of 4M and page size of 8K.
With a sequence of
sudo flashbench -O --erasesize=$[4*1024*1024] --blocksize=$[8*1024]
/dev/sdf --open-au-nr=X
Where X increased linearly from 2 to 10 I determined the cutoff at AU=8
Because of:
AU=2
4MiB 22M/s
2MiB 21.9M/s
1MiB 21.9M/s
512KiB 21.6M/s
256KiB 20.9M/s
128KiB 19.3M/s
64KiB 18.7M/s
32KiB 16.2M/s
16KiB 11.4M/s
8KiB 6.99M/s
AU=7
4MiB 22M/s
2MiB 21.9M/s
1MiB 21.8M/s
512KiB 21.6M/s
256KiB 20.6M/s
128KiB 19.1M/s
64KiB 18.3M/s
32KiB 15.7M/s
16KiB 10.8M/s
8KiB 6.58M/s
AU=8
4MiB 14.4M/s
2MiB 21.4M/s
1MiB 21.8M/s
512KiB 21.6M/s
256KiB 20.6M/s
128KiB 19.1M/s
64KiB 18.2M/s
32KiB 15.6M/s
16KiB 10.7M/s
8KiB 6.47M/s
AU=9
4MiB 11.3M/s
2MiB 7M/s
1MiB 4.58M/s
512KiB 5.15M/s
256KiB 5.4M/s
128KiB 4.96M/s
64KiB 5.84M/s
32KiB 5.17M/s
16KiB 4.91M/s
8KiB 3.7M/s
Random performance sucks at smaller sizes. Results nearly the same for AU=1
through 6
sudo flashbench -O --erasesize=$[4*1024*1024] --blocksize=$[8*1024]
/dev/sdf --random --open-au-nr=6
[sudo] password for gaby:
4MiB 22.2M/s
2MiB 22M/s
1MiB 22M/s
512KiB 20M/s
256KiB 9.8M/s
128KiB 2.69M/s
64KiB 1.12M/s
32KiB 563K/s
16KiB 285K/s
8KiB 132K/s
If there's anything else I can test/check, let me know?
Regards,
Gaby Schilders
I am not subscribed to linaro-dev, so please Cc me in case you drop flashbench-results
mailinglist from receivers.
Hi Arnd, hi everyone!
For now quick and short.
A simple script to automate common steps on reporting flash medium test
results. It goes as far as read tests for erase block size and then suggests
some open au tests together with a warning that these write to the device.
I checked other flashbench-results posts as to what info would be
interesting.
Find it at:
git://gitorious.org/flashbench/flashbench.git
Example output is at:
[Flashbench] Samsung Plus MB-SPAGFFP Class 10 SDHC 16GB
Sat Dec 1 16:02:18 UTC 2012
http://lists.linaro.org/pipermail/flashbench-results/2012-December/000346.h…
Sorry that I occupied flashbench upstream name for project. I can look
into renaming it to "flashbench-martin" or something like that.
The script is in branch "flashreport".
In branch "defaultblocksize" you find a currently untested patch for
changing default block size to 1024.
I can try to send patches as mails via git, but I´d have to look it up first,
since I do this quite rarely.
Up to then please use the repo urls :)
Nice weekend,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Salut,
for housing a debian chroot in my android phone, I want to set up a 2.5G
partition on this new micro sd card. For that, I want to figure out
which parameters to give to mke2fs, as in
> mkfs.ext4 -E stride=2,stripe-width=2048 -L debian_chroot /dev/sdb2
Now to figure out the internal erase block size, flashbench was
recommended. But I can not quite make sense of my result..
> # fdisk.distrib -l /dev/sdb
>
> Disk /dev/sdb: 15.9 GB, 15931539456 bytes
> 255 heads, 63 sectors/track, 1936 cylinders, total 31116288 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
> Disk identifier: 0x000604f9
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 2048 25890815 12944384 b W95 FAT32
> /dev/sdb2 25890816 31115263 2612224 83 Linux
> # flashbench -va /dev/sdb --blocksize=1024 |(echo "align,pre [µs],on [µs],post [µs],diff [µs]" && sed -r 's/\w+ //g;s/\t/,/g;s/[0-9]+ns*/0/g;s/µs//g')|tee flashbench-16gb-sandisk-extreme-microsdhc-blocksize-1024.csv
> # flashbench -va /dev/sdb --blocksize=$[3*1024] |(echo "align,pre [µs],on [µs],post [µs],diff [µs]" && sed -r 's/\w+ //g;s/\t/,/g;s/[0-9]+ns*/0/g;s/µs//g')|tee flashbench-16gb-sandisk-extreme-microsdhc-blocksize-$[3*1024].csv
resulting CSV files attached.. I created a spreadsheet chart showing a
drop.. does this mean the erasure block size is 128KB?
That would give a stripe-width of 128KB/(2*4KB)=16?
And I have not at all grokked the benefit/applicability of
open-au/open-au-nr for practical purposes..
Any clarification greatly appreciated.
#Regards!Marcel