mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 0/2] USB fastboot onto eMMC: make 30% faster!
Date: Thu, 27 Feb 2020 17:58:23 +0100	[thread overview]
Message-ID: <20200227165825.1624-1-a.fatoum@pengutronix.de> (raw)

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

             reply	other threads:[~2020-02-27 16:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 16:58 Ahmad Fatoum [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200227165825.1624-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox