Loading ...
Sorry, an error occurred while loading the content.

6362Re: [nslu2-general] Re: Troubleshooting USB enclosure speeds?

Expand Messages
  • John Klimek
    May 10, 2007
    • 0 Attachment
      Thanks for the replies!

      According to the FlashDriveLifespanSurvey article, I should execute this
      command on my NSLU2:

      $ dd if=/dev/zero of=/file/on/drive bs=8192 count=1024 conv=fsync

      However, when I try to do that it says "dd: invalid converion 'fsync'"

      However, here are some other commands I've tried (and their results):


      # hdparm -T /dev/sda1
      /dev/sda1:
      Timing cached reads: 152 MB in 2.02 seconds = 75.25 MB/sec

      # hdparm -t /dev/sda1
      /dev/sda1:
      Timing buffered disk reads: 24 MB in 3.04 seconds = 7.89 MB/sec

      How do those results look? I have no idea what I'm actually looking for...
      (eg. what the numbers should be)
      On 5/8/07, Lars Jensen <larz.jensen@...> wrote:
      >
      > I basically time how long it takes to copy say a 5MB file (eg: cp
      > my5mbFile
      > my5mbFileCopy). On my slug with my enclosure running at 12mbit, this takes
      > about 25 seconds (!!!), wheras I think this should take only about 2
      > seconds
      > (or less) at USB2.0 speeds.
      >
      > If that's working, you might want to try some similar tests with FTP to
      > and
      > from your nslu2 vs between other machines on your LAN to try and narrow
      > down
      > where the bottleneck is. Perhaps there are more sophisticated ways to
      > profile this, but I'm not aware of them (I'd be interested to hear anyone
      > else's suggestions - or any on how I might be able to force my enclosure
      > to
      > be used at full speed!)
      >
      > Cheers,
      > Larz
      >
      > On 5/8/07, John Klimek <jklimek@... <jklimek%40gmail.com>> wrote:
      > >
      > > Thanks for the information!!
      > >
      > > How can I test to make sure the HDD access speed isn't my problem? Do I
      > > need to copy a file locally and somehow monitor the transfer rate? ...or
      > > should I download it using FTP on one of my machines connected to my
      > LAN?
      > >
      > > Thanks! Good luck with your enclosure!
      > >
      > > On 5/8/07, Lars Jensen <larz.jensen@... <larz.jensen%40gmail.com><
      > larz.jensen%40gmail.com>>
      > > wrote:
      > > >
      > > > HMm ok. So you have a couple of entries for USB OHCI Root Hub - these
      > > > are
      > > > your USB bus entries I think.
      > > >
      > > > Your USB enclosure is probably this entry:
      > > > T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
      > > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
      > > > P: Vendor=067b ProdID=3507 Rev= 0.01
      > > > S: Manufacturer=Prolific Technology Inc.
      > > > S: Product=ATAPI-6 Bridge Controller
      > > >
      > > > Prolific are a manufacturer of USB enclosure chipsets. Looks like
      > you've
      > > > got the PL3507, which is pretty common. But according to the above,
      > > yours
      > > > (unlike mine!) is being picked up as a USB2.0 device and running at
      > > > 480mbit. So I think you're speed problems may lie elsewhere. You might
      > > > want to do some tests copying large files around on your drive to
      > > confirm
      > > > whether or not the HD access speeds are the issue?
      > > >
      > > > Interestingly, my USB enclosure is based on the same chipset as yours,
      > > but
      > > > still only runs at 12mbit :(
      > > >
      > > > T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
      > > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
      > > > P: Vendor=067b ProdID=3507 Rev= 1.00
      > > > S: Manufacturer=Prolific Technology Inc.
      > > > S: Product=Mass Storage Device
      > > >
      > > > I'm thinking I'm going to have to buy a new enclosure.
      > > >
      > > > Cheers,
      > > > Lars
      > > >
      > > > On 5/8/07, John Klimek <jklimek@... <jklimek%40gmail.com><jklimek%40gmail.com><jklimek%
      > 40gmail.com>> wrote:
      > > > >
      > > > > Thanks for the reply...
      > > > >
      > > > > To be honest, I'm not sure what too familar with
      > > /proc/bus/usb/devices,
      > > > > but
      > > > > here is the entire listing from my NSLU2:
      > > > >
      > > > > (The *only* thing plugged into the NSLU2 is my Ultra ULT31310 USB
      > > > > enclosure,
      > > > > which is plugged into Port 2)
      > > > >
      > > > > # cat /proc/bus/usb/devices
      > > > > T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
      > > > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
      > > > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      > > > > P: Vendor=0000 ProdID=0000 Rev= 0.00
      > > > > S: Product=USB OHCI Root Hub
      > > > > S: SerialNumber=c3880000
      > > > > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      > > > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      > > > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
      > > > > T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
      > > > > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
      > > > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      > > > > P: Vendor=0000 ProdID=0000 Rev= 0.00
      > > > > S: Product=USB OHCI Root Hub
      > > > > S: SerialNumber=c387a000
      > > > > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      > > > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      > > > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
      > > > > T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
      > > > > B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
      > > > > D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
      > > > > P: Vendor=0000 ProdID=0000 Rev= 2.04
      > > > > S: Manufacturer=Linux 2.4.22-xfs ehci_hcd
      > > > > S: Product=NEC Corporation USB 2.0
      > > > > S: SerialNumber=00:01.2
      > > > > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      > > > > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      > > > > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
      > > > > T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
      > > > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
      > > > > P: Vendor=067b ProdID=3507 Rev= 0.01
      > > > > S: Manufacturer=Prolific Technology Inc.
      > > > > S: Product=ATAPI-6 Bridge Controller
      > > > > S: SerialNumber=BF5ECBA
      > > > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
      > > > > I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
      > > Driver=usb-storage
      > > > > E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      > > > > E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      > > > >
      > > > > On 5/8/07, Lars Jensen <larz.jensen@...<larz.jensen%40gmail.com>
      > <larz.jensen%40gmail.com><
      > > larz.jensen%40gmail.com><
      > > > larz.jensen%40gmail.com>>
      > > > > wrote:
      > > > > >
      > > > > > Hi John,
      > > > > >
      > > > > > It definitely looks from what you posted that your USB device is
      > > > USB1.1
      > > > > (ie
      > > > > > Ver= 1.10), whereas in my case my device is actually detected as
      > > > USB2.0,
      > > > > > but
      > > > > > still running at USB1.1 speeds.
      > > > > >
      > > > > > The /proc/bus/usb/devices file contains two entries, in addition
      > to
      > > > any
      > > > > > USB
      > > > > > devices plugged in. These represent the 'USB Bus'. You will
      > actually
      > > > see
      > > > > > two of these, one for High speed/2.0 and one for low speed 1.1.
      > > (From
      > > > > what
      > > > > > I understand, these are just 'logical' buses, they've got nothing
      > to
      > > > do
      > > > > > with
      > > > > > the physical ports on your nslu2).
      > > > > >
      > > > > > Is it possible you're looking at the wrong entry? Check out the
      > > > > > Vendor/Product lines to be sure...
      > > > > >
      > > > > > Cheers,
      > > > > > Larz
      > > > > >
      > > > > > On 5/8/07, John Klimek <jklimek@... <jklimek%40gmail.com><jklimek%40gmail.com><jklimek%
      > 40gmail.com><jklimek%
      > > 40gmail.com><jklimek%
      > > > 40gmail.com>> wrote:
      > > > > > >
      > > > > > > Here is some more information about my USB enclosure...
      > > > > > >
      > > > > > > My USB enclosure is connected directly to my NSLU2 which is
      > > > connected
      > > > > > > to my network (standard 100 Mbps LAN).
      > > > > > >
      > > > > > > The enclosure I have is the Ultra ULT31310 (see link below for
      > > more
      > > > > > > details).
      > > > > > >
      > > > > > > The product information page says it supports USB 2.0.
      > > > > > >
      > > > > > >
      > > > > > >
      > > > > >
      > > > >
      > > >
      > >
      > http://www.circuitcity.com/ccd/productDetail.do?oid=143287&WT.mc_n=26364&WT.mc_t=U&cm_ven=EMAIL&cm_cat=CIRCUITCITY.COM&cm_pla=EMA_SHIPPING_NOTIFICATION-
      > > > > > >
      > > > > >
      > > > >
      > > >
      > >
      > >S2%20-%20PRODUCT%20SPOT&cm_ite=12694%20PRODUCT%20PURCHASED&cm_keycode=26364
      > > > > > >
      > > > > > > On 5/7/07, jbgluttmer <b20709@... <b20709%40macnews.de><b20709%40macnews.de><b20709%40macnews.de><b20709%40macnews.de><b20709%40macnews.de><b20709%40macnews.de>>
      >
      > > wrote:
      > > > > > > > Hello,
      > > > > > > >
      > > > > > > > on my slug it shows for the external drive like that:
      > > > > > > >
      > > > > > > > ---> snipp <---
      > > > > > > > T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh=
      > 0
      > > > > > > > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
      > > > > > > > P: Vendor=05e3 ProdID=0702 Rev= 0.02
      > > > > > > > S: Product=USB TO IDE
      > > > > > > > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 96mA
      > > > > > > > I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
      > > > > > Driver=usb-storage
      > > > > > > > E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      > > > > > > > E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
      > > > > > > > ---< snapp >---
      > > > > > > >
      > > > > > > > As far as I know is your device a USB 1.1 hub.
      > > > > > > >
      > > > > > > > Is your slug connected via LAN or WLAN with your PC?
      > > > > > > >
      > > > > > > > Kind regards,
      > > > > > > >
      > > > > > > > /JoLu
      > > > > > > >
      > > > > > > >
      > > > > > > > --- In nslu2-general@yahoogroups.com<nslu2-general%40yahoogroups.com>
      > <nslu2-general%40yahoogroups.com>
      > > <nslu2-general%40yahoogroups.com>
      > > > <nslu2-general%40yahoogroups.com><nslu2-general%40yahoogroups.com
      > > ><nslu2-general%40yahoog
      > > >
      > > > > roups.com>,
      > > > >
      > > > > > > "John Klimek" <jklimek@...> wrote:
      > > > > > > > >
      > > > > > > > > Interesting message!
      > > > > > > > >
      > > > > > > > > I'm having problems with my NSLU2 (or more precisely, my USB
      > > > > > > enclosure?) and
      > > > > > > > > maybe you have found my problem as well!
      > > > > > > > >
      > > > > > > > > Here are my T and D lines from /proc/bus/usb/devices:
      > > > > > > > > T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh=
      > 2
      > > > > > > > > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      > > > > > > > >
      > > > > > > > > From what you're saying it looks like my USB enclosure is
      > > > running
      > > > > at
      > > > > > > > > USB 1.2speed (?). Maybe that's why it is INCREDIBLY slow to
      > > use
      > > > > over
      > > > > > > > > the network?
      > > > > > > > > (via the NSLU2)
      > > > > > > > >
      > > > > > > > > Hopefully you can get this figured and hopefully the fix
      > will
      > > > help
      > > > > > me
      > > > > > > as
      > > > > > > > > well!
      > > > > > > > >
      > > > > > > > >
      > > > > > > > > [Non-text portions of this message have been removed]
      > > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > >
      > > > > > >
      > > > > >
      > > > > > [Non-text portions of this message have been removed]
      > > > > >
      > > > > >
      > > > > >
      > > > >
      > > > > [Non-text portions of this message have been removed]
      > > > >
      > > > >
      > > > >
      > > >
      > > > [Non-text portions of this message have been removed]
      > > >
      > > >
      > > >
      > >
      > > [Non-text portions of this message have been removed]
      > >
      > >
      > >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 10 messages in this topic