Comment 69 for bug 500069

Revision history for this message
adri58 (adri58) wrote : Re: [Bug 500069] Re: USB file transfer causes system freezes; ops take hours instead of minutes

In Windows I have no problem at all. So, there must be something wrong with
the Linux kernel

2012/4/2 Ming Lei <email address hidden>

> On Sun, Apr 1, 2012 at 1:15 PM, adri58 <email address hidden> wrote:
>
> https://bugs.launchpad.net/bugs/500069/+attachment/2980204/+files/1u.mon.out
>
> adri58, thanks for your post.
>
> >From your usbmon trace, I found that it may take about ~22ms averagely
> to complete writing 120KB[1] into your usb mass storage, so the max write
> performance is about 5.3MB/sec, for example:
>
> /*send WRITE cmd from host to usb mass storage device*/
> ffff880037674d40 905709519 S Bo:2:007:2 -115 31 = 55534243 9f080000
> 00e00100 00000a2a 00000457 c60000f0 00000000 000000
> ffff880037674d40 905709611 C Bo:2:007:2 0 31 >
>
> /*write 120KB data to usb mass storage device*/
> ffff8801139ac080 905709619 S Bo:2:007:2 -115 122880 = 831683e5
> c00e55d7 83e9c00e 95c1f2bf fb0300c6 81908c93 c98144a9 5980441a
> ffff8801139ac080 905731863 C Bo:2:007:2 0 122880 >
>
> /*read the status of writing operation*/
> ffff880037674d40 905731871 S Bi:2:007:1 -115 13 <
> ffff880037674d40 905733112 C Bi:2:007:1 0 13 = 55534253 9f080000 00000000
> 00
>
> The above 3 steps are an intact procedures to write 120KB into usb
> mass storage device.
>
> Also looks no any error information is found in your trace, so your problem
> should be that the usb mass storage is slow device, especially wrt. writing
> performance.
>
> I suggest you to do some tests on windows to see if you can get same
> performance with ubuntu.
>
> [1], 120KB is the max transfer unit per scsi command, also it is the most
> frequent transfer unit in linux usb mass storage read/write.
>
> Thanks
> --
> Ming Lei
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (477843).
> https://bugs.launchpad.net/bugs/500069
>
> Title:
> USB file transfer causes system freezes; ops take hours instead of
> minutes
>
> Status in The Linux Kernel:
> Confirmed
> Status in “linux” package in Ubuntu:
> Triaged
> Status in “linux” package in Fedora:
> Unknown
>
> Bug description:
> USB Drive is a MP3 Player 2GB
>
> sbec@Diamant:~$ lsusb
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse
> Receiver
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 004: ID 0402:5661 ALi Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> sbec@Diamant:~$
>
> Linux Diamant 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC
> 2009 i686 GNU/Linux
> Ubuntu 2.6.31-15.50-generic
>
> to test, i issued dd command:
> dd if=/dev/zero of=/media/usb-disk/test-file bs=32
>
> while dd is running i run dstat.... this is in the log file attached.
>
> other logs are also in the tar.gz file...
>
> there is a huge USB performance Bug report #1972262. this Report is
> something simular
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/500069/+subscriptions
>