On Thu, Mar 17, 2011 at 01:29:27PM +0100, Arnd Bergmann wrote:
In the list above, you can see the * next to the active mode. The card is evidently using UDMA5, meaning it can get up to 100 MB/s in terms of interface speed. This makes the 4 MB/s maximum throughput even more disappointing, but means that your host system is able to drive cards in very fast modes.
A lot of cards apparently only support the slower PIO modes, and with a PCMCIA adapter, you would only get pio0 with 3.3 MB/s maximum interface speed.
OK, thanks
Here is another (older) one. Package says : "Sony CompactFlash 66x 10MB/s [Read] 1GB" and on reverse side "NCFB1G"
tmp179:~ # hdparm -i /dev/sdc
/dev/sdc:
Model=Sony NCFB1G, FwRev=HDX 4.07, SerialNo=110621A1797H5232 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic } RawCHS=1986/16/63, TrkSize=0, SectSize=576, ECCbytes=4 BuffType=DualPort, BuffSize=1kB, MaxMultSect=4, MultSect=off CurCHS=1986/16/63, CurSects=2001888, LBA=yes, LBAsects=2001888 IORDY=no, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 *mdma2 AdvancedPM=no Drive conforms to: Unspecified: ATA/ATAPI-4
* signifies the current active mode
tmp179:~ # ./flashbench -a -b 1024 /dev/sdc sched_setscheduler: Operation not permitted align 33554432 pre 588µs on 867µs post 567µs diff 289µs align 16777216 pre 577µs on 876µs post 568µs diff 303µs align 8388608 pre 588µs on 732µs post 573µs diff 151µs align 4194304 pre 582µs on 722µs post 566µs diff 148µs align 2097152 pre 582µs on 724µs post 567µs diff 149µs align 1048576 pre 583µs on 723µs post 566µs diff 148µs align 524288 pre 582µs on 722µs post 566µs diff 148µs align 262144 pre 577µs on 584µs post 571µs diff 10.1µs align 131072 pre 577µs on 584µs post 571µs diff 10.4µs align 65536 pre 577µs on 584µs post 571µs diff 9.98µs align 32768 pre 575µs on 586µs post 572µs diff 13.2µs align 16384 pre 577µs on 587µs post 574µs diff 11.1µs align 8192 pre 571µs on 579µs post 571µs diff 7.57µs align 4096 pre 567µs on 574µs post 566µs diff 7.31µs align 2048 pre 566µs on 573µs post 566µs diff 6.57µs tmp179:~ # for i in `seq 1 10`; do echo $i; ./flashbench --open-au --open-au-nr=$i --erasesize=$[512 * 1024] --blocksize=8192 /dev/sdc --random; done 1 sched_setscheduler: Operation not permitted 512KiB 5.39M/s 256KiB 12.7M/s 128KiB 10.2M/s 64KiB 10.3M/s 32KiB 9.35M/s 16KiB 7.42M/s 8KiB 6.53M/s 2 sched_setscheduler: Operation not permitted 512KiB 12.9M/s 256KiB 13M/s 128KiB 10.6M/s 64KiB 8.92M/s 32KiB 8.08M/s 16KiB 6.78M/s 8KiB 4.62M/s 3 sched_setscheduler: Operation not permitted 512KiB 12.9M/s 256KiB 13M/s 128KiB 11.6M/s 64KiB 8.2M/s 32KiB 7.13M/s 16KiB 6.05M/s 8KiB 4.37M/s 4 sched_setscheduler: Operation not permitted 512KiB 12.9M/s 256KiB 8.07M/s 128KiB 2.8M/s 64KiB 1.26M/s 32KiB 604K/s 16KiB 298K/s 8KiB 148K/s 5 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 6.1M/s 128KiB 2.75M/s 64KiB 1.25M/s 32KiB 604K/s 16KiB 298K/s 8KiB 148K/s 6 sched_setscheduler: Operation not permitted 512KiB 12.9M/s 256KiB 6.04M/s 128KiB 2.74M/s 64KiB 1.25M/s 32KiB 605K/s 16KiB 299K/s 8KiB 148K/s 7 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.99M/s 128KiB 2.73M/s 64KiB 1.25M/s 32KiB 605K/s 16KiB 299K/s 8KiB 149K/s 8 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.99M/s 128KiB 2.71M/s 64KiB 1.25M/s 32KiB 606K/s 16KiB 299K/s 8KiB 149K/s 9 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.94M/s 128KiB 2.71M/s 64KiB 1.25M/s 32KiB 607K/s 16KiB 299K/s 8KiB 149K/s 10 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.91M/s 128KiB 2.7M/s 64KiB 1.25M/s 32KiB 607K/s 16KiB 299K/s 8KiB 149K/s tmp179:~ # for i in `seq 1 10`; do echo $i; ./flashbench --open-au --open-au-nr=$i --erasesize=$[512 * 1024] --blocksize=8192 /dev/sdc; done 1 sched_setscheduler: Operation not permitted 512KiB 5.3M/s 256KiB 12.8M/s 128KiB 12.9M/s 64KiB 11.8M/s 32KiB 10.1M/s 16KiB 7.82M/s 8KiB 6.85M/s 2 sched_setscheduler: Operation not permitted 512KiB 12.9M/s 256KiB 13M/s 128KiB 13.1M/s 64KiB 12.2M/s 32KiB 10.7M/s 16KiB 8.6M/s 8KiB 6.82M/s 3 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 13M/s 128KiB 13.1M/s 64KiB 12.3M/s 32KiB 10.9M/s 16KiB 8.87M/s 8KiB 6.8M/s 4 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 7.52M/s 128KiB 2.79M/s 64KiB 1.26M/s
32KiB 608K/s 16KiB 300K/s 8KiB 149K/s 5 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 6.16M/s 128KiB 2.77M/s 64KiB 1.26M/s 32KiB 608K/s 16KiB 300K/s 8KiB 149K/s 6 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 6.04M/s 128KiB 2.74M/s 64KiB 1.26M/s 32KiB 608K/s 16KiB 300K/s 8KiB 149K/s 7 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 6.02M/s 128KiB 2.74M/s 64KiB 1.26M/s 32KiB 608K/s 16KiB 300K/s 8KiB 149K/s 8 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.98M/s 128KiB 2.72M/s 64KiB 1.25M/s 32KiB 608K/s 16KiB 300K/s 8KiB 149K/s 9 sched_setscheduler: Operation not permitted 512KiB 13M/s 256KiB 5.98M/s 128KiB 2.72M/s 64KiB 1.26M/s 32KiB 609K/s 16KiB 301K/s 8KiB 149K/s 10 sched_setscheduler: Operation not permitted 512KiB 13.1M/s 256KiB 5.93M/s 128KiB 2.7M/s 64KiB 1.25M/s 32KiB 609K/s 16KiB 301K/s 8KiB 149K/s tmp179:~ # ./flashbench --findfat --fat-nr=10 --erasesize=$[512 * 1024] /dev/sdcsched_setscheduler: Operation not permitted 512KiB 5.62M/s 5.21M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 256KiB 13.1M/s 13.1M/s 13.2M/s 13.2M/s 13.1M/s 13.1M/s 13.2M/s 13.1M/s 13.2M/s 13.2M/s 128KiB 13.2M/s 13.2M/s 13.2M/s 13.3M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.3M/s 13.3M/s 64KiB 12.5M/s 12.5M/s 12.5M/s 12.5M/s 12.6M/s 12.5M/s 12.5M/s 12.4M/s 12.6M/s 12.5M/s 32KiB 11.3M/s 11.2M/s 11.2M/s 11.3M/s 11.5M/s 11.3M/s 11.5M/s 11.2M/s 11.3M/s 11.2M/s 16KiB 9.28M/s 9.59M/s 9.41M/s 9.49M/s 9.27M/s 9.51M/s 9.35M/s 9.41M/s 9.3M/s 9.32M/s tmp179:~ # ./flashbench --findfat --fat-nr=10 --erasesize=$[512 * 1024] /dev/sdcsched_setscheduler: Operation not permitted 512KiB 13.1M/s 5.17M/s 13.2M/s 13.2M/s 13.1M/s 13.2M/s 13.1M/s 13.2M/s 13.1M/s 13.2M/s 256KiB 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.1M/s 13.1M/s 13.2M/s 13.2M/s 128KiB 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.3M/s 64KiB 12.6M/s 12.5M/s 12.6M/s 12.6M/s 12.5M/s 12.6M/s 12.5M/s 12.3M/s 12.5M/s 12.6M/s 32KiB 11.4M/s 11.4M/s 11.2M/s 11.2M/s 11.3M/s 11.2M/s 11.3M/s 11.3M/s 11.2M/s 11.1M/s 16KiB 9.29M/s 9.38M/s 9.29M/s 9.26M/s 9.29M/s 9.27M/s 9.23M/s 9.26M/s 9.22M/s 9.32M/s tmp179:~ # ./flashbench --findfat --fat-nr=10 --erasesize=$[512 * 1024] --blocksize=8192 /dev/sdc sched_setscheduler: Operation not permitted 512KiB 13M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 256KiB 13.1M/s 13.2M/s 13.2M/s 13.1M/s 13.1M/s 13.2M/s 13.1M/s 13.2M/s 13.2M/s 13.1M/s 128KiB 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.3M/s 13.3M/s 13.2M/s 64KiB 12.5M/s 12.5M/s 12.5M/s 12.5M/s 12.5M/s 12.6M/s 12.6M/s 12.4M/s 12.6M/s 12.5M/s 32KiB 11.2M/s 11.2M/s 11.3M/s 11.5M/s 11.3M/s 11.5M/s 11.3M/s 11.3M/s 11.2M/s 11.1M/s 16KiB 9.01M/s 9.38M/s 9.37M/s 9.52M/s 9.28M/s 9.47M/s 9.33M/s 9.4M/s 9.29M/s 9.31M/s 8KiB 6.82M/s 6.83M/s 6.81M/s 6.8M/s 6.84M/s 6.81M/s 6.78M/s 6.78M/s 6.82M/s 6.88M/s tmp179:~ # ./flashbench --findfat --fat-nr=10 --erasesize=$[512 * 1024] --blocksize=1024 /dev/sdc sched_setscheduler: Operation not permitted 512KiB 13.1M/s 13.2M/s 13.1M/s 5.17M/s 13.1M/s 13.1M/s 13.1M/s 13.1M/s 13.2M/s 13.1M/s 256KiB 13.2M/s 13.1M/s 13.2M/s 13.2M/s 13.1M/s 13.2M/s 13.1M/s 13.2M/s 13.2M/s 13.2M/s 128KiB 13.2M/s 13.2M/s 13.3M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.2M/s 13.3M/s 64KiB 12.6M/s 12.5M/s 12.5M/s 12.5M/s 12.5M/s 12.6M/s 12.5M/s 12.5M/s 12.5M/s 12.4M/s 32KiB 11.2M/s 11.3M/s 11.2M/s 11.2M/s 11.2M/s 11.2M/s 11.2M/s 11.2M/s 11.3M/s 11.2M/s 16KiB 9.34M/s 9.17M/s 9.22M/s 9.25M/s 9.38M/s 9.31M/s 9.34M/s 9.32M/s 9.26M/s 9.31M/s 8KiB 6.83M/s 6.8M/s 6.77M/s 6.69M/s 6.81M/s 6.8M/s 6.82M/s 6.89M/s 6.79M/s 6.79M/s 4KiB 4.49M/s 4.52M/s 4.54M/s 4.48M/s 4.51M/s 4.42M/s 4.5M/s 4.58M/s 4.49M/s 4.48M/s 2KiB 2.48M/s 2.47M/s 2.47M/s 2.45M/s 2.52M/s 2.5M/s 2.52M/s 2.5M/s 2.49M/s 2.41M/s 1KiB 1.28M/s 1.28M/s 1.25M/s 1.28M/s 1.28M/s 1.26M/s 1.28M/s 1.26M/s 1.26M/s 1.28M/s tmp179:~ # time dd if=/dev/sdc bs=512K of=/dev/null 1954+1 records in 1954+1 records out 1024966656 bytes (1.0 GB) copied, 71.3464 s, 14.4 MB/s
real 1m11.348s user 0m0.001s sys 0m1.550s tmp179:~ # time dd if=/dev/zero bs=512K of=/dev/sdc dd: writing `/dev/sdc': No space left on device 1955+0 records in 1954+0 records out 1024966656 bytes (1.0 GB) copied, 81.3408 s, 12.6 MB/s
real 1m21.342s user 0m0.000s sys 0m0.915s tmp179:~ # time dd if=/dev/zero bs=2M of=/dev/sdc dd: writing `/dev/sdc': No space left on device 489+0 records in 488+0 records out 1024966656 bytes (1.0 GB) copied, 81.2364 s, 12.6 MB/s
real 1m21.238s user 0m0.000s sys 0m0.912s tmp179:~ # time dd if=/dev/sdc bs=2M of=/dev/null 488+1 records in 488+1 records out 1024966656 bytes (1.0 GB) copied, 71.3836 s, 14.4 MB/s
real 1m11.386s user 0m0.002s sys 0m1.586s tmp179:~ #
Philippe