All of lore.kernel.org
 help / color / mirror / Atom feed
From: qemu-devel@email.fries.net
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] large memory requirements for translate.c a barrier
Date: Thu, 21 Mar 2013 02:53:34 -0500	[thread overview]
Message-ID: <20130321075334.GA17306@fries.net> (raw)
In-Reply-To: <514429E5.2010003@redhat.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 2813 bytes --]

Penned by Paolo Bonzini on 20130316  3:14.29, we have:
| Il 15/03/2013 20:21, Todd T. Fries ha scritto:
| >   PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
| > 28818 todd      64    0 1142M   53M onproc/0  -         2:01 17.24% cc1
| > 
| > For systems with lower limits on user process memory, this prevents things
| > from building.
| > 
| > For systems with less physical ram, this presents lots of swapping just to
| > build the source files.
| > 
| > Is there any hints or hope of breaking translate.c up into a smaller file?
| 
| It's a GCC bug.  We have worked around it in recent versions of QEMU;
| what version are you trying to compile?
| 
| You can compile that file with "-O2 -fno-gcse".
| 
| Paolo

I don't note a huge improvement:

load averages:  6.74,  6.23,  5.17                    leveno.fries.net 02:42:23
201 processes: 200 idle, 1 on processor
CPU0 states:  0.4% user,  0.0% nice, 33.3% system, 37.1% interrupt, 29.1% idle
CPU1 states:  0.2% user,  0.0% nice, 64.5% system,  0.0% interrupt, 35.3% idle
Memory: Real: 359M/907M act/tot Free: 80M Cache: 46M Swap: 1076M/4095M
Seconds to delay: 
  PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
19820 todd      -5    0 1116M   38M sleep/1   biowait   2:54 14.75% cc1

todd@leveno/pE ~¦239$ ps awwwx | grep cc1
19820 pz  D+      2:49.61 /usr/lib/gcc-lib/i386-unknown-openbsd5.3/4.2.1/cc1 -fpreprocessed /home/todd/.ccache/tmp/translate.tmp.leveno.fries.net.1478.i -quiet -dumpbase translate.tmp.leveno.fries.net.1478.i -m32 -auxbase-strip /home/todd/.ccache/6/2/648c89832d69fca8ff8953cca44f28-1086936.o.tmp.leveno.fries.net.1478 -g -O2 -Wstrict-prototypes -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -Wno-redundant-decls -Wendif-labels -Wmissing-include-dirs -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wold-style-definition -fPIE -fno-strict-aliasing -fno-gcse -fstack-protector-all -o /home/todd/.tmp/cc1YGXzU.s

Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.3/4.2.1/specs
Target: i386-unknown-openbsd5.3
Configured with: OpenBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 
-- 
Todd Fries .. todd@fries.net

 ____________________________________________
|                                            \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com            \  1.866.792.3418 (FAX)
| PO Box 16169, Oklahoma City, OK 73113      \  sip:freedaemon@ekiga.net
| "..in support of free software solutions." \  sip:4052279094@ekiga.net
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

  parent reply	other threads:[~2013-03-21  7:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-15 19:21 [Qemu-devel] large memory requirements for translate.c a barrier Todd T. Fries
2013-03-16  8:14 ` Paolo Bonzini
2013-03-19 15:05   ` qemu-devel
2013-03-21  7:53   ` qemu-devel [this message]
2013-03-21  8:25     ` Paolo Bonzini
2013-03-22  7:08       ` qemu-devel
2013-03-22  7:30         ` 陳韋任 (Wei-Ren Chen)
2013-03-22 15:19           ` qemu-devel
2013-03-22 15:28             ` Peter Maydell
2013-03-22  9:34         ` Paolo Bonzini
2013-03-19 15:18 ` Andreas Färber

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=20130321075334.GA17306@fries.net \
    --to=qemu-devel@email.fries.net \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=todd@fries.net \
    /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.