public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] During boot is U-Boot doing its jobs sequentially or in parallel?
Date: Tue, 18 Mar 2014 12:53:52 +0100	[thread overview]
Message-ID: <20140318115352.A3BE33803FD@gemini.denx.de> (raw)
In-Reply-To: <53283CA4020000460004BF9D@gwia2.rz.hs-offenburg.de>

Dear Frank,

In message <53283CA4020000460004BF9D@gwia2.rz.hs-offenburg.de> you wrote:
> 
> I realized a behavior of U-Boot, which isn't quiet clear to me. I
> have an ARM9 SAM9G25, that has this boot sequence: AT91Bootstrap ->
> U-Boot 2010.06 -> Linux 2.6.39. With that system I did 4 Test series
> about silencing the U-Boot output:

Q1: why are you using so old software?

Q2: Do you actually have a plan for your optimizations, or are you
    just poking around at random?

> - An image with U-Boot output, without network support in U-Boot - takes about 10.6 s to boot.
> - An image like above, but without U-Boot output - takes about 10.4 s to boot.
> --> 200 ms gained

I think it makes little sense to optimize the small parts - like some
200 ms here - when you appear to ignore the big chunks: a total of 10
seconds appears to be way too much.  Did you a profiling of the boot
process, so you can really focus on the big fish?


> Now why is it, when I disable the output, the time stays the same
> with network support, but around 200 ms are saved without the
> network? One thing that comes to my mind U-Boot doing its jobs in
> parallel, is that true? Since there's a waiting when initializing the
> network there's enough time to do the output ?

We cannot comment on this, as we have no idea what your tests actually
are, and what exactly you mean by "with or without network support".
the general rule is that U-Boot is strictly single-tasking, i. e.
there are no actions running in parallel.

If you are interested in short boot times you should look into using
the SPL with Falcon mode instead.  Heiko Schocher has some patches in
the works to do this for the AT91SAM9G20 - here we do not need any
Atmel code any more; we boot directly into SPL. So you could use
Falcon mode and load Linux directly from the SPL.

But of course none of this is present with an ancient v2010.06
U-Boot...

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
"Science makes godlike -- it is all over with priests and  gods  when
man becomes scientific. Moral: science is the forbidden as such -- it
alone  is  forbidden. Science is the *first* sin, the *original* sin.
*This alone is  morality.*  ``Thou  shalt  not  know''  --  the  rest
follows."                                       - Friedrich Nietzsche

  reply	other threads:[~2014-03-18 11:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 11:31 [U-Boot] During boot is U-Boot doing its jobs sequentially or in parallel? Frank Ihle
2014-03-18 11:53 ` Wolfgang Denk [this message]
2014-03-18 12:21   ` Frank Ihle
2014-03-18 14:13     ` Wolfgang Denk
2014-03-18 14:52     ` Andreas Bießmann

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=20140318115352.A3BE33803FD@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox