Re: g_mass_storage performance on partition vs. file

2018-08-15 Thread Martin Hicks
On Fri, Aug 03, 2018 at 12:56:37PM -0400, Alan Stern wrote: > On Fri, 3 Aug 2018, Martin Hicks wrote: > > > > > Hi, > > > > I've run into a huge performance gap between running a g_mass_storage > > gadget with the backing file pointing to a raw partiti

g_mass_storage performance on partition vs. file

2018-08-03 Thread Martin Hicks
_dump enabled I can see that all writes are 512-byte single-sector writes. Using a file within ext4fs, I get around 20MB and block_dump shows large IOs (mostly 2048 sector). Is there any way to get raw-partition to better use caching and not write back every sector individually? Thanks, mh -- M