Re: [PATCH 5/5] usb_debug: EXPERIMENTAL - poll hcd device to force writes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 May 2009, Oliver Neukum wrote:

> On a fundamental note, thinking about this in terms of numbers of URBs
> is strictly speaking wrong. We need to limit data in flight. For efficiency
> we should make buffers as large as possible within that limit.

But for latency you should submit URBs as soone as possible within that 
limit, which generally means small buffers.

How about setting the upper limit to URBs in flight based on the baud
rate?  Faster transfers deserve more URBs, right?  Assuming some
minimum number of bytes per URB (4? 8?), there should be enough URBs to
fill a pipeline whose length is around 5 ms or so (interrupt latency).

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux