Hi, Martin Hicks <mort@xxxxxxxx> writes: > I've run into a huge performance gap between running a g_mass_storage > gadget with the backing file pointing to a raw partition (/dev/mmcblk1) > vs. creating a file on an ext4 filesystem and exporting that. > > With the partition I see write rates around 5MB/s, and with /proc/sys/vm/block_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? try the nofua parameter of g_mass_storage: modprobe g_mass_storage nofua=1 -- balbi
Attachment:
signature.asc
Description: PGP signature