All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@avionic-design.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ext2load: increase read speed
Date: Thu, 26 Apr 2012 14:54:51 +0200	[thread overview]
Message-ID: <20120426125451.GA2952@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <1332945431-12441-1-git-send-email-u-boot@lakedaemon.net>

* Jason Cooper wrote:
> This patch dramatically drops the amount of time u-boot needs to read a
> file from an ext2 partition.  On a typical 2 to 5 MB file (kernels and
> initrds) it goes from tens of seconds to a couple seconds.
> 
> All we are doing here is grouping contiguous blocks into one read.
> 
> Boot tested on Globalscale Technologies Dreamplug (Kirkwood ARM SoC)
> with three different files.  sha1sums were calculated in Linux
> userspace, and then confirmed after ext2load.
> 
> Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>

Before:

	Tegra2 (Medcom) # time ext2load mmc 0 0x17000000 /boot/uImage
	Loading file "/boot/uImage" from mmc device 0:1 (xxa1)
	5609104 bytes read

	time: 4.638 seconds, 4638 ticks
	Tegra2 (Medcom) # crc32 0x17000000 559690
	CRC32 for 17000000 ... 1755968f ==> 158788be

After:

	Tegra2 (Medcom) # time ext2load mmc 0 0x17000000 /boot/uImage
	Loading file "/boot/uImage" from mmc device 0:1 (xxa1)
	5609104 bytes read

	time: 0.317 seconds, 317 ticks
	Tegra2 (Medcom) # crc32 0x17000000 559690
	CRC32 for 17000000 ... 1755968f ==> 158788be

I can also successfully load the loaded uImage to a prompt, so:

Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120426/7e136327/attachment.pgp>

  parent reply	other threads:[~2012-04-26 12:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 14:37 [U-Boot] [PATCH] ext2load: increase read speed Jason Cooper
2012-04-26  1:17 ` Eric Nelson
2012-05-08 15:43   ` Jason Cooper
2012-05-08 15:53     ` Eric Nelson
2012-04-26 12:54 ` Thierry Reding [this message]
2012-05-08 15:48   ` Jason Cooper
2012-05-08 16:13 ` [U-Boot] [GIT PULL] ext2load speedup Jason Cooper
2012-05-21  1:35   ` [U-Boot] [GIT PULL RESEND] " Jason Cooper
2012-05-21  5:19     ` Wolfgang Denk
2012-06-01 15:41     ` Jason Cooper
2012-06-01 15:54 ` [U-Boot] [PATCH v2] ext2load: increase read speed Jason Cooper
2012-06-21 20:49   ` Wolfgang Denk
2012-07-03 16:05     ` [U-Boot] [PATCH] ext2fs: fix warning: 'blocknxt' may be used uninitialized Kim Phillips
2012-07-03 22:12       ` Andreas Bießmann
2012-07-03 22:41         ` [U-Boot] [PATCH v2] " Kim Phillips
2012-07-04  6:09           ` Thierry Reding
2012-07-06 13:31           ` Jason Cooper
2012-07-08 20:55           ` Wolfgang Denk
2012-07-23 18:56             ` Tom Rini
2012-07-24  4:59               ` Thierry Reding

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=20120426125451.GA2952@avionic-0098.mockup.avionic-design.de \
    --to=thierry.reding@avionic-design.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.