Hi, David:<div><br></div><div> I tried hdparm and fio to test the SATA speed before.</div><div>Use hdparm the SATA driver report some error sometimes even I change other HDD.</div><div>Use fio not report any error.</div>
<div><br></div><div>==================</div><div>Below is my test result.
</div><div>==================
</div><div><div>sun4i login: root</div><div># hdparm -tT /dev/sda1</div><div><br></div><div>/dev/sda1:</div><div>Timing buffer-cache reads: 278 MB in 0.51 seconds = 557840 kB/s</div><div>Timing buffered disk reads: 31 MB in 0.69 seconds = 45402 kB/s</div>
<div># hdparm -tT /dev/sda1</div><div><br></div><div>/dev/sda1:</div><div>Timing buffer-cache reads: 276 MB in 0.51 seconds = 552730 kB/s</div><div>Timing buffered disk reads: 31 MB in 0.78 seconds = 40579 kB/s</div><div>
# </div><div># </div><div># hdparm -tT /dev/sda1</div><div><br></div><div>/dev/sda1:</div><div>Timing buffer-cache reads: 260 MB in 0.51 seconds = 521520 kB/s</div><div>Timing buffered disk reads:[ 42.600000] ata1.00: exception Emask 0x10 SAct 0x2 SErr 0x280100 action 0x6 frozen</div>
<div>[ 42.600000] ata1.00: irq_stat 0x08000000, interface fatal error</div><div>[ 42.610000] ata1: SError: { UnrecovData 10B8B BadCRC }</div><div>[ 42.620000] ata1.00: failed command: READ FPDMA QUEUED</div><div>[ 42.620000] ata1.00: cmd 60/80:08:81:1e:00/00:00:00:00:00/40 tag 1 ncq 65536 in</div>
<div>[ 42.620000] res 40/00:08:81:1e:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div><div>[ 42.630000] ata1.00: status: { DRDY }</div><div>[ 42.640000] ata1: hard resetting link</div><div>[ 42.990000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)</div>
<div>[ 43.000000] ata1.00: configured for UDMA/133</div><div>[ 43.000000] ata1: EH complete</div><div>[ 43.610000] ata1.00: exception Emask 0x10 SAct 0x3 SErr 0x280100 action 0x6 frozen</div><div>[ 43.630000] ata1.00: irq_stat 0x08000000, interface fatal error</div>
<div>[ 43.630000] ata1: SError: { UnrecovData 10B8B BadCRC }</div><div>[ 43.640000] ata1.00: failed command: READ FPDMA QUEUED</div><div>[ 43.640000] ata1.00: cmd 60/80:00:01:f0:00/00:00:00:00:00/40 tag 0 ncq 65536 in</div>
<div>[ 43.640000] res 40/00:00:01:f0:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div><div>[ 43.650000] ata1.00: status: { DRDY }</div><div>[ 43.660000] ata1.00: failed command: READ FPDMA QUEUED</div><div>
[ 43.660000] ata1.00: cmd 60/80:08:81:f0:00/00:00:00:00:00/40 tag 1 ncq 65536 in</div><div>[ 43.660000] res 40/00:00:01:f0:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div><div>[ 43.670000] ata1.00: status: { DRDY }</div>
<div>[ 43.670000] ata1: hard resetting link</div><div>[ 44.030000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)</div><div>[ 44.040000] ata1.00: configured for UDMA/133</div><div>[ 44.040000] ata1: EH complete</div>
<div> 31 MB in 1.62 seconds = 19492 kB/s</div><div># </div><div># hdparm -tT /dev/sda1</div><div><br></div><div>/dev/sda1:</div><div>Timing buffer-cache reads: 258 MB in 0.51 seconds = 516420 kB/s</div><div>Timing buffered disk reads:[ 49.890000] ata1.00: exception Emask 0x10 SAct 0x3 SErr 0x280100 action 0x6 frozen</div>
<div>[ 49.900000] ata1.00: irq_stat 0x08000000, interface fatal error</div><div>[ 49.910000] ata1: SError: { UnrecovData 10B8B BadCRC }</div><div>[ 49.910000] ata1.00: failed command: READ FPDMA QUEUED</div><div>[ 49.920000] ata1.00: cmd 60/80:00:01:1b:00/00:00:00:00:00/40 tag 0 ncq 65536 in</div>
<div>[ 49.920000] res 40/00:00:01:1b:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div><div>[ 49.940000] ata1.00: status: { DRDY }</div><div>[ 49.940000] ata1.00: failed command: READ FPDMA QUEUED</div><div>
[ 49.940000] ata1.00: cmd 60/80:08:81:1b:00/00:00:00:00:00/40 tag 1 ncq 65536 in</div><div>[ 49.940000] res 40/00:00:01:1b:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div><div>[ 49.950000] ata1.00: status: { DRDY }</div>
<div>[ 49.960000] ata1: hard resetting link</div><div>[ 50.310000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)</div><div>[ 50.320000] ata1.00: configured for UDMA/133</div><div>[ 50.320000] ata1: EH complete</div>
<div> 31 MB in 1.17 seconds = 26982 kB/s</div><div># hdparm -tT /dev/sda1</div><div><br></div><div>/dev/sda1:</div><div>Timing buffer-cache reads: 250 MB in 0.51 seconds = 501637 kB/s</div><div>Timing buffered disk reads:[ 57.070000] ata1: limiting SATA link speed to 1.5 Gbps</div>
<div>[ 57.070000] ata1.00: exception Emask 0x10 SAct 0x1 SErr 0x280100 action 0x6 frozen</div><div>[ 57.080000] ata1.00: irq_stat 0x08000000, interface fatal error</div><div>[ 57.090000] ata1: SError: { UnrecovData 10B8B BadCRC }</div>
<div>[ 57.100000] ata1.00: failed command: READ FPDMA QUEUED</div><div>[ 57.100000] ata1.00: cmd 60/2a:00:bb:10:00/00:00:00:00:00/40 tag 0 ncq 21504 in</div><div>[ 57.100000] res 40/00:00:bb:10:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error)</div>
<div>[ 57.110000] ata1.00: status: { DRDY }</div><div>[ 57.110000] ata1: hard resetting link</div><div>[ 57.470000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)</div><div>[ 57.480000] ata1.00: configured for UDMA/133</div>
<div>[ 57.480000] ata1: EH complete</div><div> 31 MB in 1.20 seconds = 26382 kB/s</div><div># fdisk -l /dev/sda</div><div><br></div><div>Disk /dev/sda: 500.1 GB, 500107862016 bytes</div><div>255 heads, 63 sectors/track, 60801 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div><br></div><div> Device Boot Start End Blocks Id System</div><div>/dev/sda1 1 4 32129+ 83 Linux</div><div>/dev/sda2 5 37 265072+ 83 Linux</div>
<div>/dev/sda3 38 103 530145 83 Linux</div><div>/dev/sda4 104 60801 487556685 5 Extended</div><div>/dev/sda5 104 365 2104514+ 83 Linux</div><div>/dev/sda6 366 26474 209720542 83 Linux</div>
<div>/dev/sda7 26475 60801 275731627 c Win95 FAT32 (LBA)</div></div><div><br></div><div><div><b># /mnt/sdb1/fio --name=random-writers --iodepth=4 --rw=randwrite --bs=512k --direct=1 --size=256m --numjobs=1</b></div>
<div>random-writers: (g=0): rw=randwrite, bs=512K-512K/512K-512K, ioengine=sync, iodepth=4</div><div>fio 2.0.3</div><div>Starting 1 process</div><div>random-writers: Laying out IO file(s) (1 file(s) / 256MB)</div><div>Jobs: 1 (f=1): [w] [100.0% done] [0K/28735K /s] [0 /54 iops] [eta 00m:00s]</div>
<div>random-writers: (groupid=0, jobs=1): err= 0: pid=183</div><div> write: io=262144KB, bw=26662KB/s, iops=52 , runt= 9832msec</div><div> clat (msec): min=11 , max=590 , avg=19.01, stdev=26.18</div><div> lat (msec): min=11 , max=590 , avg=19.14, stdev=26.18</div>
<div> clat percentiles (msec):</div><div> | 1.00th=[ 13], 5.00th=[ 13], 10.00th=[ 14], 20.00th=[ 14],</div><div> | 30.00th=[ 15], 40.00th=[ 16], 50.00th=[ 17], 60.00th=[ 18],</div><div> | 70.00th=[ 19], 80.00th=[ 20], 90.00th=[ 24], 95.00th=[ 29],</div>
<div> | 99.00th=[ 46], 99.50th=[ 79], 99.90th=[ 594]</div><div> bw (KB/s) : min= 839, max=31751, per=100.00%, avg=27014.42, stdev=7152.07</div><div> lat (msec) : 20=83.40%, 50=15.62%, 100=0.78%, 750=0.20%</div>
<div> cpu : usr=0.81%, sys=6.41%, ctx=556, majf=0, minf=0</div><div> IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%</div><div> submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div>
<div> complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> issued : total=r=11272/w=0/d=0, short=r=512/w=0/d=0</div><div><br></div><div>Run status group 0 (all jobs):</div><div>
WRITE: io=262144KB, aggrb=26662KB/s, minb=27302KB/s, maxb=27302KB/s, mint=9832msec, maxt=9832msec</div><div><br></div><div>Disk stats (read/write):</div><div> sda: ios=0/637, merge=0/638, ticks=0/55270, in_queue=36130, util=95.87%</div>
<div># </div></div><div><br></div><div><div><div><b># /mnt/sdb1/fio --name=seq-writers --iodepth=4 --rw=write --bs=128k --direct=0 --size=256m --numjobs=1</b></div><div>seq-writers: (g=0): rw=write, bs=128K-128K/128K-128K, ioengine=sync, iodepth=4</div>
<div>fio 2.0.3</div><div>Starting 1 process</div><div>seq-writers: Laying out IO file(s) (1 file(s) / 256MB)</div><div>Jobs: 1 (f=1): [W] [100.0% done] [0K/40203K /s] [0 /306 iops] [eta 00m:00s]</div><div>seq-writers: (groupid=0, jobs=1): err= 0: pid=219</div>
<div> write: io=262144KB, bw=40126KB/s, iops=313 , runt= 6533msec</div><div> clat (usec): min=695 , max=344688 , avg=3074.15, stdev=16745.91</div><div> lat (usec): min=728 , max=344721 , avg=3111.98, stdev=16745.51</div>
<div> clat percentiles (usec):</div><div> | 1.00th=[ 716], 5.00th=[ 724], 10.00th=[ 724], 20.00th=[ 732],</div><div> | 30.00th=[ 740], 40.00th=[ 748], 50.00th=[ 756], 60.00th=[ 764],</div><div> | 70.00th=[ 788], 80.00th=[ 844], 90.00th=[ 1032], 95.00th=[ 2512],</div>
<div> | 99.00th=[73216], 99.50th=[142336], 99.90th=[250880]</div><div> bw (KB/s) : min=21408, max=81920, per=100.00%, avg=40448.75, stdev=16655.93</div><div> lat (usec) : 750=47.51%, 1000=42.14%</div><div> lat (msec) : 2=3.76%, 4=3.12%, 10=0.54%, 20=0.63%, 50=0.34%</div>
<div> lat (msec) : 100=1.42%, 250=0.39%, 500=0.15%</div><div> cpu : usr=1.99%, sys=28.01%, ctx=370, majf=0, minf=0</div><div> IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%</div>
<div> submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> issued : total=r=11272/w=0/d=0, short=r=2048/w=0/d=0</div>
<div><br></div><div>Run status group 0 (all jobs):</div><div> WRITE: io=262144KB, aggrb=40126KB/s, minb=41089KB/s, maxb=41089KB/s, mint=6533msec, maxt=6533msec</div><div><br></div><div>Disk stats (read/write):</div><div>
sda: ios=0/580, merge=0/58846, ticks=0/285220, in_queue=279870, util=100.00%</div><div><b><br></b></div><div><b># /mnt/sdb1/fio --name=seq-writers --iodepth=4 --rw=write --bs=32k --direct=0 --size=256m --numjobs=1</b></div>
<div>seq-writers: (g=0): rw=write, bs=32K-32K/32K-32K, ioengine=sync, iodepth=4</div><div>fio 2.0.3</div><div>Starting 1 process</div><div>Jobs: 1 (f=1): [W] [85.7% done] [0K/40172K /s] [0 /1225 iops] [eta 00m:01s]</div>
<div>seq-writers: (groupid=0, jobs=1): err= 0: pid=223</div><div> write: io=262144KB, bw=43230KB/s, iops=1350 , runt= 6064msec</div><div> clat (usec): min=160 , max=155046 , avg=684.39, stdev=6630.26</div><div> lat (usec): min=170 , max=155056 , avg=695.02, stdev=6630.25</div>
<div> clat percentiles (usec):</div><div> | 1.00th=[ 171], 5.00th=[ 173], 10.00th=[ 175], 20.00th=[ 177],</div><div> | 30.00th=[ 179], 40.00th=[ 181], 50.00th=[ 183], 60.00th=[ 185],</div><div> | 70.00th=[ 189], 80.00th=[ 191], 90.00th=[ 199], 95.00th=[ 241],</div>
<div> | 99.00th=[ 2224], 99.50th=[68096], 99.90th=[86528]</div><div> bw (KB/s) : min=32768, max=61045, per=99.94%, avg=43201.45, stdev=9196.43</div><div> lat (usec) : 250=95.42%, 500=1.90%, 750=0.15%, 1000=0.71%</div>
<div> lat (msec) : 2=0.72%, 4=0.31%, 10=0.12%, 20=0.11%, 50=0.05%</div><div> lat (msec) : 100=0.42%, 250=0.10%</div><div> cpu : usr=3.13%, sys=31.67%, ctx=371, majf=0, minf=0</div><div> IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%</div>
<div> submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> issued : total=r=11272/w=0/d=0, short=r=8192/w=0/d=0</div>
<div><br></div><div>Run status group 0 (all jobs):</div><div> WRITE: io=262144KB, aggrb=43229KB/s, minb=44267KB/s, maxb=44267KB/s, mint=6064msec, maxt=6064msec</div><div><br></div><div>Disk stats (read/write):</div><div>
sda: ios=0/472, merge=0/57400, ticks=0/188570, in_queue=207300, util=91.78%</div><div><b><br></b></div><div><b># /mnt/sdb1/fio --name=seq-writers --iodepth=4 --rw=write --bs=4k --direct=0 --size=256m --numjobs=1</b></div>
<div>seq-writers: (g=0): rw=write, bs=4K-4K/4K-4K, ioengine=sync, iodepth=4</div><div>fio 2.0.3</div><div>Starting 1 process</div><div>Jobs: 1 (f=1): [W] [100.0% done] [0K/31418K /s] [0 /7670 iops] [eta 00m:00s]</div><div>
seq-writers: (groupid=0, jobs=1): err= 0: pid=226</div><div> write: io=262144KB, bw=41257KB/s, iops=10314 , runt= 6354msec</div><div> clat (usec): min=28 , max=245803 , avg=77.10, stdev=1792.31</div><div> lat (usec): min=30 , max=245806 , avg=80.55, stdev=1792.96</div>
<div> clat percentiles (usec):</div><div> | 1.00th=[ 29], 5.00th=[ 29], 10.00th=[ 30], 20.00th=[ 30],</div><div> | 30.00th=[ 30], 40.00th=[ 31], 50.00th=[ 31], 60.00th=[ 31],</div><div> | 70.00th=[ 32], 80.00th=[ 33], 90.00th=[ 35], 95.00th=[ 39],</div>
<div> | 99.00th=[ 56], 99.50th=[ 143], 99.90th=[ 4768]</div><div> bw (KB/s) : min=26680, max=68079, per=99.78%, avg=41165.92, stdev=10290.11</div><div> lat (usec) : 50=98.80%, 100=0.53%, 250=0.24%, 500=0.04%, 750=0.05%</div>
<div> lat (usec) : 1000=0.11%</div><div> lat (msec) : 2=0.11%, 4=0.03%, 10=0.02%, 20=0.02%, 50=0.02%</div><div> lat (msec) : 100=0.04%, 250=0.01%</div><div> cpu : usr=13.22%, sys=39.68%, ctx=582, majf=0, minf=0</div>
<div> IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%</div><div> submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div>
<div> issued : total=r=11272/w=0/d=0, short=r=65536/w=0/d=0</div><div><br></div><div>Run status group 0 (all jobs):</div><div> WRITE: io=262144KB, aggrb=41256KB/s, minb=42246KB/s, maxb=42246KB/s, mint=6354msec, maxt=6354msec</div>
<div><br></div><div>Disk stats (read/write):</div><div> sda: ios=0/521, merge=0/56354, ticks=0/202980, in_queue=205110, util=90.41%</div><div><br></div><div><b># /mnt/sdb1/fio --name=seq-writers --iodepth=4 --rw=write --bs=1k --direct=0 --size=256m --numjobs=1</b></div>
<div>seq-writers: (g=0): rw=write, bs=1K-1K/1K-1K, ioengine=sync, iodepth=4</div><div>fio 2.0.3</div><div>Starting 1 process</div><div>Jobs: 1 (f=1): [W] [100.0% done] [0K/13934K /s] [0 /13.7K iops] [eta 00m:00s]</div><div>
seq-writers: (groupid=0, jobs=1): err= 0: pid=229</div><div> write: io=262144KB, bw=9476.7KB/s, iops=9476 , runt= 27662msec</div><div> clat (usec): min=16 , max=471658 , avg=91.43, stdev=1992.11</div><div> lat (usec): min=18 , max=471660 , avg=93.74, stdev=1992.13</div>
<div> clat percentiles (usec):</div><div> | 1.00th=[ 17], 5.00th=[ 17], 10.00th=[ 17], 20.00th=[ 17],</div><div> | 30.00th=[ 18], 40.00th=[ 18], 50.00th=[ 20], 60.00th=[ 21],</div><div> | 70.00th=[ 22], 80.00th=[ 175], 90.00th=[ 179], 95.00th=[ 193],</div>
<div> | 99.00th=[ 342], 99.50th=[ 358], 99.90th=[ 908]</div><div> bw (KB/s) : min= 3704, max=13906, per=100.00%, avg=9662.38, stdev=3175.22</div><div> lat (usec) : 20=46.17%, 50=28.72%, 100=0.07%, 250=21.42%, 500=3.41%</div>
<div> lat (usec) : 750=0.09%, 1000=0.02%</div><div> lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.02%, 50=0.01%</div><div> lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%</div><div> cpu : usr=7.38%, sys=29.77%, ctx=66681, majf=0, minf=0</div>
<div> IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%</div><div> submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div><div> complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%</div>
<div> issued : total=r=11272/w=0/d=0, short=r=262144/w=0/d=0</div><div><br></div><div>Run status group 0 (all jobs):</div><div> WRITE: io=262144KB, aggrb=9476KB/s, minb=9704KB/s, maxb=9704KB/s, mint=27662msec, maxt=27662msec</div>
<div><br></div><div>Disk stats (read/write):</div><div> sda: ios=65158/536, merge=0/59300, ticks=17810/105790, in_queue=123470, util=68.39%</div><div># </div></div></div><div><br></div><div>Matt.<br><br><div class="gmail_quote">
David Given <span dir="ltr"><<a href="mailto:dg@cowlark.com">dg@cowlark.com</a>></span> 於 2012年3月27日上午12:53 寫道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Tom Cubie wrote:<br>
[...]<br>
<div class="im">> The Mele box is on sale again.<br>
><br>
> <a href="http://www.aliexpress.com/product-fm/532332455-Mele-A1000-TV-box-Allwinner-A10-hackable-device-wholesalers.html" target="_blank">http://www.aliexpress.com/product-fm/532332455-Mele-A1000-TV-box-Allwinner-A10-hackable-device-wholesalers.html</a><br>
<br>
</div>I see the spec says it's got real SATA --- but I don't see a socket on<br>
the back for SATA. Does it actually have this? (And, if anyone's tried<br>
it, what's the performance like?)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
┌─── dg@cowlark.com ───── <a href="http://www.cowlark.com" target="_blank">http://www.cowlark.com</a> ─────<br>
│ "Parents let children ride bicycles on the street. But parents do not<br>
│ allow children to hear vulgar words. Therefore we can deduce that<br>
│ cursing is more dangerous than being hit by a car." --- Scott Adams<br>
<br>
</font></span><br>_______________________________________________<br>
arm-netbook mailing list <a href="mailto:arm-netbook@lists.phcomp.co.uk">arm-netbook@lists.phcomp.co.uk</a><br>
<a href="http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook" target="_blank">http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook</a><br>
Send large attachments to <a href="mailto:arm-netbook@files.phcomp.co.uk">arm-netbook@files.phcomp.co.uk</a><br></blockquote></div><br></div>