andrum99
Posts: 911
Joined: Fri Jul 20, 2012 2:41 pm

Re: USB problem on Pi 4B

Sat Aug 17, 2019 11:49 pm

Looks like I spoke too soon - the errors came back. I've updated to the latest rpi-update kernel and firmware and it looks OK so far, but it took a while before the errors showed up without the ring buffer fix, so we'll see.

dazbobaby
Posts: 5
Joined: Tue Jun 30, 2015 9:09 pm
Contact: Website

Re: USB problem on Pi 4B

Sun Aug 18, 2019 12:38 pm

I bought these from Amazon and they fixed the poor performance. As stated before, these Sabrent USB dongles work on all systems, just not the Pi 4.... Why?

https://smile.amazon.co.uk/gp/product/B07F7WDZGT
My Pi Blog https://the-bionic-cyclist.co.uk/

pica200
Posts: 151
Joined: Tue Aug 06, 2019 10:27 am

Re: USB problem on Pi 4B

Sun Aug 18, 2019 3:49 pm

I think i got one of these quirky enclosures aswell (it's like 5 years or so old at this point). On Pi 4 with 64 bit kernel it detects it's a bad one and uses the old driver which at least gives 108 MiB/s (SATA HDD). On my main machine it does not detect it as bad drive and it uses the uas driver resulting in only 57.2 MiB/s. Weird.

On the Notebook:

Code: Select all

[ 1905.999186] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 1906.016545] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 1906.016547] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1906.016548] usb 2-1: Product: ASMT1153E
[ 1906.016549] usb 2-1: Manufacturer: asmedia
[ 1906.016549] usb 2-1: SerialNumber: 123456789166
[ 1906.049998] usbcore: registered new interface driver usb-storage
[ 1906.056856] scsi host5: uas
[ 1906.056974] usbcore: registered new interface driver uas
[ 1906.057319] scsi 5:0:0:0: Direct-Access     asmedia  ASMT1153E        0    PQ: 0 ANSI: 6
...
The serial number doesn't fill me with confidence but i had no issues with the drive ¯\_(ツ)_/¯

andrum99
Posts: 911
Joined: Fri Jul 20, 2012 2:41 pm

Re: USB problem on Pi 4B

Mon Aug 19, 2019 2:01 am

pica200 wrote:
Sun Aug 18, 2019 3:49 pm
I think i got one of these quirky enclosures aswell (it's like 5 years or so old at this point). On Pi 4 with 64 bit kernel it detects it's a bad one and uses the old driver which at least gives 108 MiB/s (SATA HDD). On my main machine it does not detect it as bad drive and it uses the uas driver resulting in only 57.2 MiB/s. Weird.

On the Notebook:

Code: Select all

[ 1905.999186] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 1906.016545] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 1906.016547] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1906.016548] usb 2-1: Product: ASMT1153E
[ 1906.016549] usb 2-1: Manufacturer: asmedia
[ 1906.016549] usb 2-1: SerialNumber: 123456789166
[ 1906.049998] usbcore: registered new interface driver usb-storage
[ 1906.056856] scsi host5: uas
[ 1906.056974] usbcore: registered new interface driver uas
[ 1906.057319] scsi 5:0:0:0: Direct-Access     asmedia  ASMT1153E        0    PQ: 0 ANSI: 6
...
The serial number doesn't fill me with confidence but i had no issues with the drive ¯\_(ツ)_/¯
From what I can gather from googling it, ASM1153E is meant to be one of the better chips, although it depends on the implementation. What is the make and model of the adaptor you have with that chip in it? I've got a startech.com S2510BMU33 which uses the ASM1153E chip and it seems to work well on the Pi 4B. The JMS578 bridges which I flashed with questionable firmware are now not spinning down the attached hard disks at all, and they silently ignore attempts to put the drives into standby, grrr.

Time to order more of the startech.com enclosures!

andrum99
Posts: 911
Joined: Fri Jul 20, 2012 2:41 pm

Re: USB problem on Pi 4B

Mon Aug 19, 2019 2:04 am

dazbobaby wrote:
Sun Aug 18, 2019 12:38 pm
I bought these from Amazon and they fixed the poor performance. As stated before, these Sabrent USB dongles work on all systems, just not the Pi 4.... Why?

https://smile.amazon.co.uk/gp/product/B07F7WDZGT
What problem are you seeing with those adapters on the Pi 4B? What does lsusb report for that adaptor?

Kendek
Posts: 128
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: USB problem on Pi 4B

Mon Aug 19, 2019 9:48 am

andrum99 wrote:
Mon Aug 19, 2019 2:01 am
I've got a startech.com S2510BMU33 which uses the ASM1153E chip and it seems to work well on the Pi 4B.
...
Time to order more of the startech.com enclosures!
I have two types of cable-style adapter, USB3S2SAT3CB with ASM1153E, and USB312SAT3CB with ASM1351 controller chip inside. Both work well in UAS mode, and the ASM1351 is support UNMAP/TRIM as well. My HDD on Pi is a 2TB SMR (WD20SPZX), which is recommends the TRIM, to operate in optimal performance. So if the UNMAP is required (SSD or SMR HDD), the ASM1351 is a better choise.

pica200
Posts: 151
Joined: Tue Aug 06, 2019 10:27 am

Re: USB problem on Pi 4B

Mon Aug 19, 2019 10:28 am

andrum99 wrote:
Mon Aug 19, 2019 2:01 am
From what I can gather from googling it, ASM1153E is meant to be one of the better chips, although it depends on the implementation. What is the make and model of the adaptor you have with that chip in it? I've got a startech.com S2510BMU33 which uses the ASM1153E chip and it seems to work well on the Pi 4B. The JMS578 bridges which I flashed with questionable firmware are now not spinning down the attached hard disks at all, and they silently ignore attempts to put the drives into standby, grrr.

Time to order more of the startech.com enclosures!
It has printed "fantech" on the top and has an aluminium enclosure. Not sure what model. Just some generic enclosure i found on amazon. It's working fine on the Pi 4 as said but it's detected as bad causing it to use the old driver. I can hear the head moving a lot more with uas driver which explains the poor performance. I tested the performance with "dd if=/dev/zero of=test1.bin oflag=sync bs=8M count=2048 status=progress" and it's formatted as NTFS.

andrum99
Posts: 911
Joined: Fri Jul 20, 2012 2:41 pm

Re: USB problem on Pi 4B

Mon Aug 19, 2019 10:43 am

pica200 wrote:
Mon Aug 19, 2019 10:28 am
andrum99 wrote:
Mon Aug 19, 2019 2:01 am
From what I can gather from googling it, ASM1153E is meant to be one of the better chips, although it depends on the implementation. What is the make and model of the adaptor you have with that chip in it? I've got a startech.com S2510BMU33 which uses the ASM1153E chip and it seems to work well on the Pi 4B. The JMS578 bridges which I flashed with questionable firmware are now not spinning down the attached hard disks at all, and they silently ignore attempts to put the drives into standby, grrr.

Time to order more of the startech.com enclosures!
It has printed "fantech" on the top and has an aluminium enclosure. Not sure what model. Just some generic enclosure i found on amazon. It's working fine on the Pi 4 as said but it's detected as bad causing it to use the old driver. I can hear the head moving a lot more with uas driver which explains the poor performance. I tested the performance with "dd if=/dev/zero of=test1.bin oflag=sync bs=8M count=2048 status=progress" and it's formatted as NTFS.
I don't trust generic stuff with my hard disks, although it seems branded stuff can be just as bad. Not sure about NTFS performance on the Pi 4, but when I tried it on the Pi 3 it was pretty awful. You should get better performance with ext4, although you then obviously lose the ability to detach it from the Pi and plug it into a Windows machine.

andrum99
Posts: 911
Joined: Fri Jul 20, 2012 2:41 pm

Re: USB problem on Pi 4B

Mon Aug 19, 2019 10:55 am

Kendek wrote:
Mon Aug 19, 2019 9:48 am
andrum99 wrote:
Mon Aug 19, 2019 2:01 am
I've got a startech.com S2510BMU33 which uses the ASM1153E chip and it seems to work well on the Pi 4B.
...
Time to order more of the startech.com enclosures!
I have two types of cable-style adapter, USB3S2SAT3CB with ASM1153E, and USB312SAT3CB with ASM1351 controller chip inside. Both work well in UAS mode, and the ASM1351 is support UNMAP/TRIM as well. My HDD on Pi is a 2TB SMR (WD20SPZX), which is recommends the TRIM, to operate in optimal performance. So if the UNMAP is required (SSD or SMR HDD), the ASM1351 is a better choise.
I don't really need anything too fancy. I'm using two old 640GB laptop drives as my main storage array, but since they I took them out of my mum and brother's laptops because they were dodgy they're in a RAID 1 array. The soon to be boot drive for my Pi 4 is an old 160GB laptop drive that came out of an old laptop of mine, and that is in the Startech.com case.

pica200
Posts: 151
Joined: Tue Aug 06, 2019 10:27 am

Re: USB problem on Pi 4B

Mon Aug 19, 2019 2:32 pm

andrum99 wrote:
Mon Aug 19, 2019 10:43 am
I don't trust generic stuff with my hard disks, although it seems branded stuff can be just as bad. Not sure about NTFS performance on the Pi 4, but when I tried it on the Pi 3 it was pretty awful. You should get better performance with ext4, although you then obviously lose the ability to detach it from the Pi and plug it into a Windows machine.
Actually the name is fantec not tech. It has been doing fine as drive for storing backups i do sometimes using clonezilla. NTFS is pretty mean to the little ARM cores indeed causing 50-53% load on one of them for the mentioned 108 MiB/s. With SSD that will be much higher for sure.

User avatar
RaTTuS
Posts: 10498
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: USB problem on Pi 4B

Mon Aug 19, 2019 2:37 pm

pica200 wrote:
Mon Aug 19, 2019 2:32 pm
andrum99 wrote:
Mon Aug 19, 2019 10:43 am
I don't trust generic stuff with my hard disks, although it seems branded stuff can be just as bad. Not sure about NTFS performance on the Pi 4, but when I tried it on the Pi 3 it was pretty awful. You should get better performance with ext4, although you then obviously lose the ability to detach it from the Pi and plug it into a Windows machine.
Actually the name is fantec not tech. It has been doing fine as drive for storing backups i do sometimes using clonezilla. NTFS is pretty mean to the little ARM cores indeed causing 50-53% load on one of them for the mentioned 108 MiB/s. With SSD that will be much higher for sure.
if they are used on the PI then format them as ext3 - not as ntfs -
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “General discussion”