|
From: Stephan M. <ste...@we...> - 2006-06-13 17:18:48
|
Libusb's kernel driver doesn't have any built-in limitations because it doesn't internally queue any data. It just allocates an URB for each userspace request and passes that URB down the stack. But it should be obvious that the host controller driver has to queue these request and that the size of this queue is limited since kernel=20 memory is a limited resource. I wrote a small test program (see attachment) to see how many requests Windows' USB stack can handle at once. And the limit on WinXP-SP2=20 (with 1GB of RAM) seems to be exactly 2500 URBs regardless of the URB's=20 data size. The maximum amount of data I was able to request at once with the test=20 program was 2500 URB each with 64kB of data. That's more than 150MB! This limit may depend on the host controller driver and the Windows versio= n. Stephan > Hi all, >=20 > I did some poking around on the web but have had a hard time finding an = answer=20 > to this question. Maybe someone here knows. >=20 > Is there a maximum number of URBs that can be submitted to an endpoint /= =20 > interface / device at any given time=3F For example, can I submit 1024 UR= Bs=20 > each with 16 KB data to a read endpoint or will I be restricted by the d= river=20 > stack, host controller, or something else=3F If there is such a restricti= on,=20 > does it apply to the device as a whole, just the interface, or just the=20 > endpoint=3F >=20 > Any insights would be much appreciated. >=20 > Best regards, > Gopal >=20 >=20 > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfach! =09 Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131 |