Hi, On Thu, Dec 15, 2011 at 10:31:36AM +0100, Sebastian Andrzej Siewior wrote: > * Felipe Balbi | 2011-12-14 22:18:17 [+0200]: > > >Gadget framework now has support for Scatter-Gather, > >let's use it to avoid the unnecessary memcpy(). > > btw: do you have any numbers with/withous sg and this vs the other > storage gadget? I still room for improvement from the gadget point of > view but I would like to know were I stand right now :) on my Desktop with FPGA as a PCIe card, they all perform about the same: - UASP Target with SGs: $ ./msc -t0 -o /dev/sdc -s 65536 -c 1024 test 0: sent 64.0000 MBytes read 29872.42 kB/s write 23015.73 kB/s ... success - UASP Target without SGs: $ ./msc -o /dev/sdc -t 0 -s 65536 -c 1024 test 0: sent 64.0000 MBytes read 29346.45 kB/s write 22953.50 kB/s ... success - g_mass_storage: $ ./msc -o /dev/sdc -t 0 -s 65536 -c 1024 test 0: sent 64.0000 MBytes read 30221.51 kB/s write 27481.89 kB/s ... success Maybe we will see differences when CPU is very busy. -- balbi
Attachment:
signature.asc
Description: Digital signature