On Tue, 16 Dec 2003, Cornelius Claussen wrote:

> >It may be that slowing down the transfer rate will help prevent those I/O
> >errors; that's worked for some people in the past.
> 
> 
> How can I do that?

On Wed, 17 Dec 2003, David Brownell wrote:

> Those changes to make SCSI use smaller I/O requests would
> seem to be the most effective tool we now have for slowing
> down traffic to USB disks.

Cornelius:

Try this.  I haven't got a patch for you, but you can easily make the 
change by hand.

In the kernel source file drivers/usb/storage/scsiglue.c, somewhere around 
lines 315 to 330, you'll see a couple of lines that say:

        /* limit the total size of a transfer to 120 KB */
        .max_sectors =                  240,

Change the 120 in the comment to 64 and change the 240 to 128.

That will certainly make a difference.  Whether it will help prevent your 
I/O errors is harder to predict.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to