I just tried to attatch my USB harddisk to my Pi over a powered hub but the performance is abysmal:
- Code: Select all
root@raspi:~# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 276 MB in 2.00 seconds = 137.84 MB/sec
Timing buffered disk reads: 12 MB in 32.44 seconds = 378.84 kB/sec
a USB stick at the same hub connected at the same time gives this:
- Code: Select all
root@raspi:~# hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 276 MB in 2.01 seconds = 137.13 MB/sec
Timing buffered disk reads: 76 MB in 3.07 seconds = 24.79 MB/sec
i also got this in dmesg:
- Code: Select all
[ 1237.547035] usb 1-1.2.4.2: reset high speed USB device number 7 using dwc_otg
[ 1276.717993] usb 1-1.2.4.2: reset high speed USB device number 7 using dwc_otg
[ 1277.047990] usb 1-1.2.4.2: reset high speed USB device number 7 using dwc_otg
[ 1277.347997] usb 1-1.2.4.2: reset high speed USB device number 7 using dwc_otg
[ 1307.778810] usb 1-1.2.4.2: reset high speed USB device number 7 using dwc_otg
I'm using the kernel
- Code: Select all
3.1.9+ #144 PREEMPT Sun Jul 1 12:37:10 BST 2012
I'm using the raspbian distro. I also tried with the Raspian kernel and i couldn't even mount the HD.
dmesg was getting flooded:
- Code: Select all
[ 4140.873166] usb 1-1.2.4.2: new high-speed USB device number 8 using dwc_otg
[ 4142.632131] usb 1-1.2.4.2: New USB device found, idVendor=174c, idProduct=5106
[ 4142.650200] usb 1-1.2.4.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 4142.668634] usb 1-1.2.4.2: Product: AS2105
[ 4142.683473] usb 1-1.2.4.2: Manufacturer: ASMedia
[ 4142.698793] usb 1-1.2.4.2: SerialNumber: 100925PBN306GTKH3MHS
[ 4142.729509] scsi1 : usb-storage 1-1.2.4.2:1.0
[ 4143.776555] scsi 1:0:0:0: Direct-Access HITACHI HTS545032B9A300 PB3Z PQ: 0 ANSI: 5
[ 4143.806186] sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 4143.846795] sd 1:0:0:0: [sda] Write Protect is off
[ 4143.862289] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 4143.883674] sd 1:0:0:0: [sda] No Caching mode page present
[ 4143.899803] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 4143.924782] sd 1:0:0:0: [sda] No Caching mode page present
[ 4143.940850] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 4144.000297] sda: sda1 sda2
[ 4144.026808] sd 1:0:0:0: [sda] No Caching mode page present
[ 4144.042825] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 4144.059391] sd 1:0:0:0: [sda] Attached SCSI disk
[ 4203.684582] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 4203.684603]
[ 4203.714332] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.714352]
[ 4203.745832] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.745852]
[ 4203.775705] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.775725]
[ 4203.805407] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.805428]
[ 4203.835281] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.835301]
[ 4203.865155] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.865175]
[ 4203.896718] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4203.896739]
[ 4203.926479] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
snip
[ 4222.821828]
[ 4222.851580] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4222.851601]
[ 4222.881302] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4222.881325]
[ 4222.910965] DEBUG:handle_hc_chhltd_intr_dma:: XactErr with NYET/NAK/ACK
[ 4222.910987]
[ 4222.911124] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 4222.911138]
[ 4222.970443] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK
[ 4222.970462]
[ 4223.030687] usb 1-1.2.4.2: USB disconnect, device number 8
[ 4223.078050] scsi 1:0:0:0: [sda] killing request
[ 4223.093516] scsi 1:0:0:0: [sda] Unhandled error code
[ 4223.109288] scsi 1:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 4223.128023] scsi 1:0:0:0: [sda] CDB: Read(10): 28 00 00 40 0b d8 00 00 08 00
[ 4223.146230] end_request: I/O error, dev sda, sector 4197336
[ 4223.162631] Buffer I/O error on device sda2, logical block 123
until I unplugged the drive.
What's the matter with this?
I was planning on using this drive as external root drive.
Regards
Aydan