All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matthias Weißer" <weisserm@arcor.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Reduce build times
Date: Wed, 02 Nov 2011 13:35:35 +0100	[thread overview]
Message-ID: <4EB13917.5090208@arcor.de> (raw)
In-Reply-To: <1320216842-29785-1-git-send-email-wd@denx.de>

Am 02.11.2011 07:54, schrieb Wolfgang Denk:
> U-Boot Makefiles contain a number of tests for compiler features etc.
> which so far are executed again and again.  On some architectures
> (especially ARM) this results in a large number of calls to gcc.
>
> This patch makes sure to run such tests only once, thus largely
> reducing the number of "execve" system calls.
>
> Example: number of "execve" system calls for building the "P2020DS"
> (Power Architecture) and "qong" (ARM) boards, measured as:
> 	->  strace -f -e trace=execve -o /tmp/foo ./MAKEALL<board>
> 	->  grep execve /tmp/foo | wc -l
>
> 	Before: After:	Reduction:
> ==================================
> P2020DS 20555	15205	-26%
> qong	31692	14490	-54%
>
> As a result, built times are significantly reduced, typically by
> 30...50%.
>
> Signed-off-by: Wolfgang Denk<wd@denx.de>
> Cc: Andy Fleming<afleming@gmail.com>
> Cc: Kumar Gala<galak@kernel.crashing.org>
> Cc: Albert Aribaud<albert.aribaud@free.fr>
> cc: Graeme Russ<graeme.russ@gmail.com>
> cc: Mike Frysinger<vapier@gentoo.org>
> ---

Nice. Some additional numbers:

zmx25: make
-----------
real    1m47.546s 0m57.213s -53%
user    1m39.698s 0m54.831s
sys     0m24.798s 0m9.509s


zmx25: make -j2
---------------
real    0m56.791s 0m32.187s -57%
user    1m38.478s 0m55.571s
sys     0m24.522s 0m9.513s

Tested-by: Matthias Weisser <weisserm@arcor.de>

Matthias

  parent reply	other threads:[~2011-11-02 12:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02  6:54 [U-Boot] [PATCH] Reduce build times Wolfgang Denk
2011-11-02 11:08 ` Graeme Russ
2011-11-02 12:35 ` Matthias Weißer [this message]
2011-11-02 14:49 ` Premi, Sanjeev
2011-11-02 15:37   ` Tom Rini
2011-11-02 18:20     ` Simon Glass
2011-11-02 18:57 ` Daniel Schwierzeck
2011-11-02 22:48   ` Wolfgang Denk
2011-11-03  1:33     ` Daniel Schwierzeck
2011-11-03 15:25     ` Daniel Schwierzeck
2011-11-03 19:49       ` Wolfgang Denk
2011-11-04  2:01       ` Aneesh V
2011-11-03  2:21 ` 馬克泡
2011-11-03  3:53 ` Mike Frysinger

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=4EB13917.5090208@arcor.de \
    --to=weisserm@arcor.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.