mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] USB fastboot onto eMMC: make 30% faster!
@ 2020-02-27 16:58 Ahmad Fatoum
  2020-02-27 16:58 ` [PATCH 1/2] usb: gadget: fastboot: call discard_range for sparse files as well Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2020-02-27 16:58 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

I got a 2.9G image that I flash via fastboot to the eMMC and that takes
quite a while on my i.MX6Q.

Instead of fixing my image generation to make proper use of the sparse
format's don't care chunk types to save oneself from writing all these
holes at the end of the partitions, I went the easy route by tweaking the
block layer a bit:

barebox v2020.02.0: 445s
With first patch:   376s
With second patch:  300s

Of these 300s, 180s are spent writing zeroes...

Cheers,
Ahmad Fatoum (2):
  usb: gadget: fastboot: call discard_range for sparse files as well
  Revert "block: Adjust cache sizes"

 common/block.c                  | 4 ++--
 drivers/usb/gadget/f_fastboot.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-02  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 16:58 [PATCH 0/2] USB fastboot onto eMMC: make 30% faster! Ahmad Fatoum
2020-02-27 16:58 ` [PATCH 1/2] usb: gadget: fastboot: call discard_range for sparse files as well Ahmad Fatoum
2020-02-28  9:58   ` [PATCH] fixup! " Ahmad Fatoum
2020-02-27 16:58 ` [PATCH 2/2] Revert "block: Adjust cache sizes" Ahmad Fatoum
2020-03-02  8:15 ` [PATCH 0/2] USB fastboot onto eMMC: make 30% faster! Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox