This site is now 100% read-only, and retired.

Question: USB 2.0 failure/timeout with large transfers

Posted by ffirman on Mon 7 Mar 2005 at 23:28

Tags: ,

I have found on Kernel's 2.4.27 (debian) 2.4.29 (mepis) and 2.6.10 (mepis), when I try to transfer a large volume of files, with total size about 1G, the usb harddrive, gets reset, and goes off line.

I have to unplug it at plug it back in, and the data I sent is not complete. Only about 300M is there.

This works with vfat, and ext3 formated partitions.

There doesn't seem to be a problem with usb 1.1 speed.

Also if I transfer about 900M of data, sweet. Then leave the drive for a little while (Might be 5 mins, ie when I realise the transfer has finished), I can transfer another 900M ok.

For Testing. The testing was done on Debian unstable (kernel 2.4.27-2-686

I used the following to see how large a transfer could be created:

dd if=/dev/zero of=test1 bs=1024 count=number 

When count=999k the transfer was good

When count=1000k the transfer failed.

(This was both on vfat and ext3).

The second test I did was, how soon can another transfer be done and succeed, for this I used

for ((x=1;x < 4;x++)) ; do dd if=/dev/zero of=test$x bs=1024 count=999k ; sleep 1 ; done

That worked fine.

 

 


Re: Question: USB 2.0 failure/timeout with large t
Posted by samapt (82.253.xx.xx) on Wed 9 Mar 2005 at 22:37
i had same pb with 2.4.* and via chipsets (uhci & ehci) but it solved with debian 2.6.8-1 !

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by ffirman (210.54.xx.xx) on Thu 10 Mar 2005 at 19:45
I tried under 2.6.10 with mepis live cd, and it failed just the same, thou I haven't done the size testing yet....

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by Anonymous (213.164.xx.xx) on Thu 10 Mar 2005 at 11:00
I've seen problems with this too.
I found that switching to rsync worked around the problem.
A cp -r made everything go horribly wrong.

It's a difficult one to bug report :/

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by Anonymous (213.214.xx.xx) on Sun 13 Mar 2005 at 14:12
Do you get any kernel messages (dmesg) which say "usb_bulk/ctrl_msg: timeout" or similar?

/Jocke

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by ffirman (210.54.xx.xx) on Sun 13 Mar 2005 at 20:42
Yes that message does turn up.

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by Anonymous (207.154.xx.xx) on Sun 13 Mar 2005 at 14:43
You have all the makings of a great bug report for the linux-kernel mailing list. Please consider fowarding a copy of this to there, as well as the linux-usb list.

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by ffirman (210.54.xx.xx) on Sun 13 Mar 2005 at 20:43
I have already mailed it to linux-usb-user and linux-usb-dev mailing lists.

I'll see what comes out of there.....

I expect more testing will be needed.

F.

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by Anonymous (213.164.xx.xx) on Wed 13 Apr 2005 at 07:30
What was the outcome of this?

[ Parent ]

Re: Question: USB 2.0 failure/timeout with large t
Posted by ffirman (210.54.xx.xx) on Wed 13 Apr 2005 at 23:58
I found that by changing the cable, I could make it better or worse....

With one cable a lot better.

What it comes down to a bit, is maybe the linux driver is just not tolerant enough to deal with bad communication....

[ Parent ]