Re: Poor performance with USB 1.1 drive connected to USB 3.0 port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/09/2014 07:07 PM, Mark Knibbs wrote:
[For removable media, it's a good idea to disable polling for medium
changes before running a test. Depending on kernel & distribution that could
be achieved by doing
     udisks --inhibit-all-polling
and/or for example
     echo -1 >/sys/block/sdb/events_poll_msecs
before running the test.]

I still can't reproduce this issue.

>>> Disable polling

root@allen-ivb:/home/allen# uname -a
Linux allen-ivb 3.17.0+ #1 SMP Thu Oct 9 16:19:28 CST 2014 x86_64 x86_64 x86_64 GNU/Linux
root@allen-ivb:/home/allen# udisks --inhibit-all-polling
Inhibiting polling on all devices. Press Ctrl+C to exit.

>>> Change to another terminal

>>> Connected to USB 2.0 port via USB 1.1 hub:

root@allen-ivb:/home/allen# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 3: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 12M root@allen-ivb:/home/allen# ddpt if=/dev/sg2 bs=512 bpt=240 count=65536 verbose=2
 >> Input file type: pass-through [pt] device
open /dev/sg2 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sg2: ASMT      2105              0     [pdt=0]
 >> Output file type: null device
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
  /dev/sg2 [pt]: blocks=62500000 [0x3b9aca0], _bs=512, 32.00 GB
skip=0 (blocks on input), seek=0 (blocks on output)
  ibs=512 bytes, obs=512 bytes, OBPC=0
  initial count=65536 (blocks of input), blocks_per_transfer=240
Output file not specified so no copy, just reading input
65536+0 records in
0+0 records out
time to read data: 30.097182 secs at 1.11 MB/sec

>>> Connected to USB 3.0 port via USB 1.1 hub:

root@allen-ivb:/home/allen# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 6: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 6: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
root@allen-ivb:/home/allen# ddpt if=/dev/sg2 bs=512 bpt=240 count=65536 verbose=2
 >> Input file type: pass-through [pt] device
open /dev/sg2 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sg2: ASMT      2105              0     [pdt=0]
 >> Output file type: null device
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
  /dev/sg2 [pt]: blocks=62500000 [0x3b9aca0], _bs=512, 32.00 GB
skip=0 (blocks on input), seek=0 (blocks on output)
  ibs=512 bytes, obs=512 bytes, OBPC=0
  initial count=65536 (blocks of input), blocks_per_transfer=240
Output file not specified so no copy, just reading input
65536+0 records in
0+0 records out
time to read data: 27.900788 secs at 1.20 MB/sec

Thanks,
-baolu


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux