All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] RE :  Reduce time to load
Date: Thu, 26 Feb 2009 22:33:26 +0100	[thread overview]
Message-ID: <20090226213326.AFD8B832E43F@gemini.denx.de> (raw)
In-Reply-To: <51D9710FF5643747BB605F97B8DE56CD0231C16E@STEGOSAURE.adetel.com>

Dear Simon,

In message <51D9710FF5643747BB605F97B8DE56CD0231C16E@STEGOSAURE.adetel.com> you wrote:
> 
> U-boot take about 2 seconds to load the kernel.

That sounds resonable, depending on the device you load Linux from.

> The rest of the system take about 10 seconds until I get the prompt, so

10 seconds is a lot. I bet you use slow and/or big root file system, then.

And how long does it take to start the real application, then?

> it represents ~16% of total time needed to have an operational system.
> I agree to say that most of the work to reduce boot time have to be done
> on the kernel and userspace, but I'm trying to save as much time as
> possible, even if it's 100ms.

Well, trace the execution (for example by simply timestamping the
messages printed by U-Boot - expect comes in handy to do that), and
find out which poarts in U-Boot contribute most to these 2 seconds.

The old rules that always apply are: you can trade off reliability
for speed (like switching off image checksumming by setting the
"verify" variable to "no"), and you can trade off cose (like flash
memory foorprint) for speed (like using an uncompressed ext2 file
system in a MTD device, preferrably on NOR flash). See the DULG for
root file system selection, etc.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A committee is a group that keeps the minutes and loses hours.
                                                      -- Milton Berle

  reply	other threads:[~2009-02-26 21:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-26 10:24 [U-Boot] (no subject) POLETTE Simon
2009-02-26 11:36 ` Wolfgang Denk
2009-02-26 15:57   ` [U-Boot] RE : Reduce time to load POLETTE Simon
2009-02-26 21:33     ` Wolfgang Denk [this message]
2009-02-27 16:54 [U-Boot] RE?: " Minkyu Kang

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=20090226213326.AFD8B832E43F@gemini.denx.de \
    --to=wd@denx.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.