Re: patch to shift memory allocations to usb_alloc_urb()

Matthew Dharm <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization One Eyed Alien Networks
Message-ID <[email protected]>
On Mon, Jul 02, 2007 at 09:15:03AM +0200, Oliver Neukum wrote:
> Am Montag, 2. Juli 2007 schrieb Alan Stern:
> > If you look at usbmon logs of real usb-storage data transfers you'll
> > see that multi-page sg elements occur quite frequently.  (Of course,
> > that doesn't prevent us from transferring only one page per URB.)
> 
> OK, but the storage driver allocates the URBs on the fly. If we change
> that to preallocation we need to have enough URBs for the worst case.

Of course, in the storage case we control the worst-case.  By adjusting the
parameter which controls how long a sg list the SCSI core will send us, we
can effectively limit the worst-case number of URBs needed.

Matt

-- 
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

I want my GPFs!!!
					-- Stef
User Friendly, 11/9/1998

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGjVTeHL9iwnUZqnkRArmSAKCIyspV4WB71S1aq2kYWVp6VvERAQCfTp5l
R/jUbcTVKYpsTydzpmaQxKY=
=YUuP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.