Skip to contentSkip to conversation

(2.6.0-test9) usb_storage/uhci_hcd much slower write than linux-2.4

DISCUSSION Tim Shepard 1 participant 1 message Nov 3, 2003

lore
Share & tools
lore
#0 lore raw

Someone sent me a private e-mail message suggesting that I apply this patch that Matthew Dharm posted to the linux-usb-devel list yesterday and see if that would restore the write throughput to linux-2.4 levels.

The patch limits the size of the transfers, and can be found at

	http://sourceforge.net/mailarchive/message.php?msg_id=6429200

or right here:

usb/storage/scsiglue.c renamed from usb/storage/scsiglue.c.orig +3 -0
@@ -315,6 +315,9 @@
 	/* lots of sg segments can be handled */
 	.sg_tablesize =			SG_ALL,
 
+	/* limit the total size of a transfer to 120 KB */
+	.max_sectors =			240,
+
 	/* merge commands... this seems to help performance, but
 	 * periodically someone should test to see which setting is more
 	 * optimal.

I am happy to report that this patch has restored the write throughput to the same speed that it was on linux-2.4.

Problem solved. Thanks much.

-Tim Shepard