Thanks Alan,

This weekend, I'll install 2.6.13 and will let you know about my
observations.

Actually, on our custom hardware we are using linux-2.4.30 and would
like to know any pointer on how I can proceed to fix this problem. As
you pointed- out:  I also observed that when I use a system with high
speed bus test case fails more frequently than low speed bus. 

Is there any patch which can solve my problem? 

Thanks for your help.

Thanks,
Brijesh

-----Original Message-----
From: Alan Stern [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 17, 2005 7:00 PM
To: Singh, Brijeshkumar
Cc: [email protected]
Subject: Re: [Linux-usb-users] USB Storage on Linux 2.4.30

On Fri, 16 Sep 2005, Singh, Brijeshkumar wrote:

> Hi,  
> 
> I am doing a regresses usb storage device test. I have written a
script
> which works shown below
> 
> While `true`; do
>       - mount /dev/sda1.
>       - copy 81MB of file.
>       - save md5sum of file in temp variable.
>       - execute sync cmd.
>       - umount /dev/sda1.
>       - mount /dev/sda1.
>       - read the file
>       - compare MD5SUM
>       - delete the file
>       - execute sync
>       - umount /dev/sda1
> done
> 
> Many of the pen drive failed this test after little iteration. Any
> pointer on this is appreciated.
> 
> # dmesg       
> usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
> usb-storage: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -104 xferred 2560/4096

This is great.  It's always good to see the result of stress testing --
it 
shows you where the problems really are.

I think you'll find in practice that a lot of the failures arise because

of flaws in the devices.  Linux tends to stress USB storage devices, 
especially high-speed ones, more than Windows does -- and the devices 
aren't able to handle it.

When that happens, error recovery becomes important.  The error recovery
in Linux 2.6 is much better than in 2.4.  You should try and see what
happens when you run your tests under 2.6.13.

Alan Stern




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to