> From: Michal Nazarewicz [mailto:m...@google.com] On Behalf Of Michal 
> Nazarewicz
> Sent: Wednesday, October 31, 2012 1:10 PM
> 
> On Wed, Oct 31 2012, Paul Zimmerman wrote:
> > Regarding that, would you guys accept a patch that adds the "buflen"
> > module parameter to the mass-storage gadget? Without increasing the
> > buffer length above 16K, it's impossible to approach the max throughput
> > allowed by SuperSpeed hosts.
> 
> I have no problem with that.  But did you try setting up 4 buffers?  you
> can set number of buffers g_{file,mass}_storage uses with config
> USB_GADGET_STORAGE_NUM_BUFFERS (or if you select USB_GADGET_DEBUG_FILES
> you get a fsg_num_buffers module parameter).

Yeah, I tried that, but it didn't have much effect. Whereas increasing 
num_buffers
to 4 and buffer length to 128K gives a large improvement, from less than 200 
MB/s
to about 290 MB/s.

-- 
Paul

Reply via email to