Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HDD-USB read/write at (217.93 kB/sec) [Solved]

Need help with peripherals or devices?
Post Reply
Message
Author
User avatar
isladelobos
Posts: 4
Joined: 2017-06-30 12:26
Location: Spain

HDD-USB read/write at (217.93 kB/sec) [Solved]

#1 Post by isladelobos »

Hi.

Some weeks ago i have a problem with my external USB-HDDisk.

This is the problem: (USB disk read and write slow, very slow) (writes start's at ~11mB/sec but after ~8sec downgrade to ~220 kB/sec)

sdb disk is one external SATA 500Gb USB-HDD connected via usb interface.
sda disk is one 8GB compact flash with the system.
root@debian:/# hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 2 MB in 9.40 seconds = 217.93 kB/sec
Timing buffered disk reads: 2 MB in 9.40 seconds = 217.93 kB/sec

root@debian:/# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 412 MB in 2.00 seconds = 206.02 MB/sec
Timing buffered disk reads: 64 MB in 3.04 seconds = 21.06 MB/sec
My debian system:
root@debian:/# uname -a
Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) i686 GNU/Linux

root@debian:/# cat /proc/version
Linux version 3.16.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26)

root@debian:/# cat /etc/*version
8.8
Dmesg drivers output seems correct:
root@debian:/# dmesg | grep usb
[ 3.695730] usbcore: registered new interface driver usbfs
[ 3.695786] usbcore: registered new interface driver hub
[ 3.704223] usbcore: registered new device driver usb
[ 3.720330] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.720339] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.720345] usb usb1: Product: EHCI Host Controller
[ 3.720351] usb usb1: Manufacturer: Linux 3.16.0-4-686-pae ehci_hcd
[ 3.720357] usb usb1: SerialNumber: 0000:00:03.3
[ 3.778282] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 3.778298] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.778305] usb usb2: Product: OHCI PCI host controller
[ 3.778311] usb usb2: Manufacturer: Linux 3.16.0-4-686-pae ohci_hcd
[ 3.778317] usb usb2: SerialNumber: 0000:00:03.0
[ 3.854147] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 3.854163] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.854170] usb usb3: Product: OHCI PCI host controller
[ 3.854176] usb usb3: Manufacturer: Linux 3.16.0-4-686-pae ohci_hcd
[ 3.854181] usb usb3: SerialNumber: 0000:00:03.1
[ 4.032074] usb 1-3: new high-speed USB device number 2 using ehci-pci
[ 5.052166] usb 1-3: New USB device found, idVendor=1bcf, idProduct=0c31
[ 5.052181] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.052188] usb 1-3: Product: USB to Serial-ATA bridge
[ 5.052194] usb 1-3: Manufacturer: Sunplus Innovation Technology
[ 5.052200] usb 1-3: SerialNumber: FFFFFBA0FF0000000000012FFC6C6F
[ 6.514227] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 6.540187] scsi2 : usb-storage 1-3:1.0
[ 6.540552] usbcore: registered new interface driver usb-storage
And fstab modified lines: (500GB disk with two partitions: sdb1 400Gb and sdb2 100Gb)
UUID=4bdbbcf1-c4f2-4466-8701-21810fb42816 /var/www/html/shared ext4 defaults,nofail 0 0
UUID=22551ed0-94b9-4339-a5db-dd2c061dc98b /media/400GB ext4 defaults,nofail 0 0
I have shared the disk via Samba but the transfer rates are soooo slow.
I tested some other's USB external disk's (pendrives) and all ones have same very slow transfer rates.

Please, some suggestions?
Last edited by isladelobos on 2017-07-02 10:03, edited 1 time in total.

User avatar
isladelobos
Posts: 4
Joined: 2017-06-30 12:26
Location: Spain

Re: HDD-USB read/write at (217.93 kB/sec)

#2 Post by isladelobos »

More info?

Code: Select all

root@debian:~# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
    |__ Port 3: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M

root@debian:~# free
             total       used       free     shared    buffers     cached
Mem:        999332     528524     470808      10204      57848     359732
-/+ buffers/cache:     110944     888388
Swap:       368636          0     368636

Ok i tested some ideas but not solve:
Tested unloading ehci_hcd and ohci_hcd and reloading in correct order.
root@debian:~# rmmod ehci_pci
root@debian:~# rmmod ehci_hcd
root@debian:~# rmmod ohci_pci
root@debian:~# rmmod ohci_hcd
root@debian:~# modprobe ohci_pci
root@debian:~# modprobe ohci_hcd
root@debian:~# modprobe ehci_pci
root@debian:~# modprobe ehci_hcd

root@debian:~# hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 2 MB in 16.85 seconds = 121.56 kB/sec
Timing buffered disk reads: 2 MB in 13.30 seconds = 154.03 kB/sec
Now more slow!!

And tested the disk integrity with S.M.A.R.T. (no errors)

Code: Select all

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     11071         -
root@debian:~# lshw

Code: Select all

*-usb:0
             description: USB controller
             product: USB 1.1 Controller
             vendor: Silicon Integrated Systems [SiS]
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 0f
             width: 32 bits
             clock: 33MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32 maxlatency=80
             resources: irq:3 memory:ec124000-ec124fff
           *-usbhost
                product: OHCI PCI host controller
                vendor: Linux 3.16.0-4-686-pae ohci_hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 3.16
                capabilities: usb-1.10
                configuration: driver=hub slots=3 speed=12Mbit/s
        *-usb:1
             description: USB controller
             product: USB 1.1 Controller
             vendor: Silicon Integrated Systems [SiS]
             physical id: 3.1
             bus info: pci@0000:00:03.1
             version: 0f
             width: 32 bits
             clock: 33MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32 maxlatency=80
             resources: irq:5 memory:ec120000-ec120fff
           *-usbhost
                product: OHCI PCI host controller
                vendor: Linux 3.16.0-4-686-pae ohci_hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 3.16
                capabilities: usb-1.10
                configuration: driver=hub slots=3 speed=12Mbit/s
        *-usb:2
             description: USB controller
             product: USB 2.0 Controller
             vendor: Silicon Integrated Systems [SiS]
             physical id: 3.3
             bus info: pci@0000:00:03.3
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pm ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32 maxlatency=80
             resources: irq:12 memory:ec121000-ec121fff
           *-usbhost
                product: EHCI Host Controller
                vendor: Linux 3.16.0-4-686-pae ehci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 3.16
                capabilities: usb-2.00
                configuration: driver=hub slots=6 speed=480Mbit/s
              *-usb
                   description: Mass storage device
                   product: USB to Serial-ATA bridge
                   vendor: Sunplus Innovation Technology
                   physical id: 3
                   bus info: usb@1:3
                   logical name: scsi7
                   version: 1.32
                   serial: FFFFFBA0FF0000000000012FFC6C6F
                   capabilities: usb-2.00 scsi emulated
                   configuration: driver=usb-storage maxpower=2mA speed=480Mbit/s
                 *-disk
                      description: SCSI Disk
                      physical id: 0.0.0
                      bus info: scsi@7:0.0.0
                      logical name: /dev/sdb
                      size: 465GiB (500GB)
                      capabilities: partitioned partitioned:dos
                      configuration: logicalsectorsize=512 sectorsize=512 signature=c51c09aa
                    *-volume:0
                         description: EXT4 volume
                         vendor: Linux
                         physical id: 1
                         bus info: scsi@7:0.0.0,1
                         logical name: /dev/sdb1
                         logical name: /media/400GB
                         version: 1.0
                         serial: 22551ed0-94b9-4339-a5db-dd2c061dc98b
                         size: 400GiB
                         capacity: 400GiB
                         capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                         configuration: created=2016-11-13 15:13:42 filesystem=ext4 lastmountpoint=/media/400GB modified=2017-07-01 13:55:18 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2017-07-01 13:55:18 state=mounted
                    *-volume:1
                         description: EXT4 volume
                         vendor: Linux
                         physical id: 2
                         bus info: scsi@7:0.0.0,2
                         logical name: /dev/sdb2
                         logical name: /var/www/html/shared
                         version: 1.0
                         serial: 4bdbbcf1-c4f2-4466-8701-21810fb42816
                         size: 65GiB
                         capacity: 65GiB
                         capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                         configuration: created=2016-11-13 15:13:17 filesystem=ext4 lastmountpoint=/var/www/html/shared modified=2017-07-01 13:55:04 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2017-07-01 13:55:04 state=mounted

User avatar
isladelobos
Posts: 4
Joined: 2017-06-30 12:26
Location: Spain

Re: HDD-USB read/write at (217.93 kB/sec)

#3 Post by isladelobos »

OK.

More test's...

Im umplugged the USB disk and the system showme the disk plugged.
Im plugged another USB disk and the system not show nacing...

The system not detect plugged or unplugged USB devices..
It is only recognized when reboot the system.

At this point im not sure if this is a software or hardware problem. In the past, the system recognise the plugged or unplugged devices and show in dmesg or lsusb or etc...

Some recommendations for tests?
I will to install in another Compactflash a new Debian system for test purposes?

User avatar
isladelobos
Posts: 4
Joined: 2017-06-30 12:26
Location: Spain

Re: HDD-USB read/write at (217.93 kB/sec)

#4 Post by isladelobos »

Ok.

Finally this was a hardware problem.

Humidity Inside the USB port and white oxide. (i use WD40 but not luck)
The Hard drive now is connected via IDE with a IDE<->SATA adaptor.

sda=8GB compact flash
sdb=2.5 500Gb hard disk

Code: Select all

root@debian:~# hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   406 MB in  2.00 seconds = 202.84 MB/sec
 Timing buffered disk reads:  64 MB in  3.02 seconds =  21.21 MB/sec

root@debian:~# hdparm -tT /dev/sdb
/dev/sdb:
 Timing cached reads:   408 MB in  2.00 seconds = 203.85 MB/sec
 Timing buffered disk reads:  92 MB in  3.07 seconds =  30.01 MB/sec
These were my monologue conclusions. :lol:

Post Reply