public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: Diego Novillo <dnovillo@google.com>,
	Daniel Berlin <dberlin@dberlin.org>,
	 	David Edelsohn <dje.gcc@gmail.com>,
	gcc@gcc.gnu.org
Subject: Re: VTA merge?
Date: Sun, 21 Jun 2009 11:02:00 -0000	[thread overview]
Message-ID: <84fc9c000906210402s313782abm8bbe47e81e7359d0@mail.gmail.com> (raw)
In-Reply-To: <orbpoitc42.fsf@free.oliva.athome.lsd.ic.unicamp.br>

On Sun, Jun 21, 2009 at 7:00 AM, Alexandre Oliva<aoliva@redhat.com> wrote:
> On Jun 18, 2009, Alexandre Oliva <aoliva@redhat.com> wrote:
>
>>> - Memory consumption in cc1/cc1plus at -Ox -g over that set of apps.
>
> I had to use a different machine for this test.  The one I was using had
> to be taken off line and moved, for reasons beyond my control, and I
> probably won't be able to get into it to collect the results before I
> hit the road later this week.  Sorry.
>
>
> For the total memory uses below, I moved gcc to gcc.actual in both the
> trunk and vta install trees, and installed a new gcc script that ran
> maxmem2.sh $0.actual "$@".
>
> I modified maxmem-pipe2.py to output to a named pipe, and for maxmem2.sh
> to wait for the "cat >&2" from the named pipe to complete, just so that
> I could correlate the memory use output with the command that produced
> it.  Without this change, in a number of cases the python script output
> the totals after make had already printed the following command, which
> got the output mangled and confusing.
>
> Having logged the build output of each of the trees that I had
> configured before (-O2 is used for all of them), now with the maxmem
> wrapper, I totaled the "total:" lines it printed for each of the builds,
> resulting the values in the memory column below.
>
> #  name       mem(KiB) %Δ#1 which  gflags
> 1  g0-trunk   58114157 0    trunk  -g0
> 2  g0         58114261 0    vta    -g0
> 3  g-novt     59722133 2.77 vta    -g -fno-$vt -fno-vta
> 4  g-novta    59840445 2.97 vta    -g -f$vt    -fno-$vta
> 5  g-novt-vta 59764629 2.84 vta    -g -fno-$vt -f$vta
> 6  g          59997781 3.24 vta    -g -f$vt    -f$vta
>
> Conclusions: generating debug information incurred a memory penalty of
> nearly 3% before VTA, for a C-only optimized GCC build.
>
> Carrying VTA notes uses very little memory besides that which is
> required to generate debug info without VT (0.07% more).
>
> Actually using VTA notes to emit debug information in the VT pass
> increases maximum memory use, when compared with VT without VTA, by as
> little as 0.26%.
>
> Wow, this was actually much better than I had anticipated.

The overhead of carrying VTA notes at -g0 vs not doing so would be
the same 0.07%?  I'm just curious because I try to be insisting on that
we do exactly this ;)

I wonder if the above figures apply to compiling a C++ application as well
(I see a lot of VTA notes - more than 50% of all tree instructions - when
compiling tramp3d for example).

Thanks,
Richard.

  reply	other threads:[~2009-06-21 11:02 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 10:06 Alexandre Oliva
2009-06-05 10:19 ` Richard Guenther
2009-06-05 10:53   ` Alexandre Oliva
2009-06-05 11:18     ` Richard Guenther
2009-06-06  8:12   ` Eric Botcazou
2009-06-07 21:32     ` Alexandre Oliva
2009-06-08  2:49       ` Eric Botcazou
2009-06-08 21:31         ` Alexandre Oliva
2009-06-05 10:42 ` Joseph S. Myers
2009-06-05 11:11   ` Alexandre Oliva
2009-06-05 12:28 ` David Edelsohn
2009-06-05 19:18   ` Alexandre Oliva
2009-06-05 20:56     ` Daniel Berlin
2009-06-07 20:04       ` Alexandre Oliva
2009-06-08 16:19         ` Frank Ch. Eigler
2009-06-08 17:35         ` Diego Novillo
2009-06-08 21:04           ` Alexandre Oliva
2009-06-08 21:30             ` Joe Buck
2009-06-09  1:15               ` Alexandre Oliva
2009-06-18 11:04             ` Diego Novillo
2009-06-18 20:58               ` Alexandre Oliva
2009-06-18  8:37           ` Alexandre Oliva
2009-06-18 10:00             ` Paolo Bonzini
2009-06-18 12:31               ` Michael Matz
2009-06-18 13:35                 ` Diego Novillo
2009-06-18 18:05                   ` Gerald Pfeifer
2009-06-21  5:01             ` Alexandre Oliva
2009-06-21 11:02               ` Richard Guenther [this message]
2009-06-21 11:38                 ` Richard Guenther
2009-06-21 11:50                   ` Richard Guenther
2009-07-01  5:26                   ` Alexandre Oliva
2009-07-03 10:15           ` VTA compile time memory usage comparison Jakub Jelinek
2009-06-05 22:11     ` Machine Description Template? Graham Reitz
2009-06-05 22:31       ` Ramana Radhakrishnan
2009-06-05 22:46       ` Michael Hope
2009-06-05 22:55         ` Graham Reitz
2009-06-09  8:57           ` Martin Guy
2009-06-05 23:48       ` Jeff Law
2009-06-12 21:36       ` Michael Meissner

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=84fc9c000906210402s313782abm8bbe47e81e7359d0@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=aoliva@redhat.com \
    --cc=dberlin@dberlin.org \
    --cc=dje.gcc@gmail.com \
    --cc=dnovillo@google.com \
    --cc=gcc@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).