GCC memory consumption increased by recent patch!
gcctest@suse.de
gcctest@suse.de
Tue Jan 4 05:56:00 GMT 2005
Hi,
Comparing memory consumption on compilation of combine.i and generate-3.4.ii I got:
comparing combine.c compilation at -O0 level:
Overall memory needed: 24389k
Peak memory use before GGC: 9063k
Peak memory use after GGC: 8377k
Maximum of released memory in single GGC run: 2864k
Garbage: 41736k
Leak: 5862k
Overhead: 5544k
GGC runs: 352
comparing combine.c compilation at -O1 level:
Overall memory needed: 25361k
Peak memory use before GGC: 8951k
Peak memory use after GGC: 8450k
Maximum of released memory in single GGC run: 2024k
Garbage: 66726k
Leak: 6257k
Overhead: 10310k
GGC runs: 545
comparing combine.c compilation at -O2 level:
Overall memory needed: 28853k -> 28849k
Peak memory use before GGC: 12383k
Peak memory use after GGC: 12257k
Maximum of released memory in single GGC run: 2533k
Garbage: 80657k
Leak: 6081k
Overhead: 14119k
GGC runs: 546
comparing combine.c compilation at -O3 level:
Overall memory needed: 31345k
Peak memory use before GGC: 12635k
Peak memory use after GGC: 12257k
Maximum of released memory in single GGC run: 3347k
Garbage: 109133k
Leak: 6618k
Overhead: 18983k
GGC runs: 613
comparing insn-attrtab.c compilation at -O0 level:
Overall memory needed: 117268k
Peak memory use before GGC: 77779k
Peak memory use after GGC: 45259k
Maximum of released memory in single GGC run: 42606k
Garbage: 159302k
Leak: 10432k
Overhead: 20571k
GGC runs: 294
comparing insn-attrtab.c compilation at -O1 level:
Overall memory allocated via mmap and sbrk increased from 128080k to 128492k, overall 0.32%
Overall memory needed: 128080k -> 128492k
Peak memory use before GGC: 83296k
Peak memory use after GGC: 69015k
Maximum of released memory in single GGC run: 40616k
Garbage: 441432k
Leak: 10778k
Overhead: 77163k
GGC runs: 431
comparing insn-attrtab.c compilation at -O2 level:
Overall memory needed: 153252k
Peak memory use before GGC: 99056k
Peak memory use after GGC: 84176k
Maximum of released memory in single GGC run: 41525k
Garbage: 487966k
Leak: 10702k
Overhead: 85263k
GGC runs: 363
comparing insn-attrtab.c compilation at -O3 level:
Overall memory needed: 153128k
Peak memory use before GGC: 99057k
Peak memory use after GGC: 84178k
Maximum of released memory in single GGC run: 41525k
Garbage: 489168k
Leak: 10744k
Overhead: 85423k
GGC runs: 373
comparing Gerald's testcase PR8361 compilation at -O0 level:
Overall memory needed: 110796k
Peak memory use before GGC: 86609k
Peak memory use after GGC: 85641k
Maximum of released memory in single GGC run: 19292k
Garbage: 246468k
Leak: 54976k
Overhead: 43123k
GGC runs: 369
comparing Gerald's testcase PR8361 compilation at -O1 level:
Overall memory needed: 103705k
Peak memory use before GGC: 85639k
Peak memory use after GGC: 84690k
Maximum of released memory in single GGC run: 18904k
Garbage: 466427k
Leak: 56722k
Overhead: 66942k
GGC runs: 553
comparing Gerald's testcase PR8361 compilation at -O2 level:
Overall memory needed: 103761k
Peak memory use before GGC: 85639k
Peak memory use after GGC: 84691k
Maximum of released memory in single GGC run: 18904k
Garbage: 500759k
Leak: 57294k
Overhead: 76404k
GGC runs: 597
comparing Gerald's testcase PR8361 compilation at -O3 level:
Overall memory needed: 111445k -> 111449k
Peak memory use before GGC: 92444k
Peak memory use after GGC: 85893k
Maximum of released memory in single GGC run: 19736k
Garbage: 520652k
Leak: 57627k
Overhead: 78243k
GGC runs: 579
Head of changelog is:
--- /usr/src/SpecTests/sandbox-britten-memory/x86_64/mem-result/ChangeLog 2005-01-03 23:07:44.000000000 +0000
+++ /usr/src/SpecTests/sandbox-britten-memory/gcc/gcc/ChangeLog 2005-01-04 04:55:12.000000000 +0000
@@ -1,3 +1,28 @@
+2005-01-03 Daniel Berlin <dberlin@dberlin.org>
+
+ Fix PR debug/17924
+ Fix PR debug/19191
+ * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
+ is a decl.
+ * gimple-low.c (mark_blocks_with_used_vars): New function.
+ (mark_blocks_with_used_subblocks): Ditto.
+ (mark_used_blocks): Ditto.
+ (pass_mark_used_blocks): New pass.
+ * tree-inline.c: Include debug.h.
+ (expand_call_inline): Call outlining_inline_function here.
+ * tree-optimize.c (init_tree_optimization_passes): Add
+ pass_mark_used_blocks.
+ * tree-pass.h (pass_mark_used_blocks): New.
+ * Makefile.in (tree-inline.o): Add debug.h dependency.
+
+2005-01-03 Geoffrey Keating <geoffk@apple.com>
+
+ * config/darwin.c (darwin_handle_weak_import_attribute): Permit
+ VAR_DECLs to have weak_import attribute.
+
+ * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
+ 'struct ucontext'.
+
2004-01-03 Steven Bosscher <stevenb@suse.de>
* passes.c (rest_of_compilation): Don't run regmove if only
I am friendly script caring about memory consumption in GCC. Please contact
jh@suse.cz if something is going wrong.
The results can be reproduced by building compiler with
--enable-gather-detailed-mem-stats targetting x86-64 and compiling preprocessed
combine.c or testcase from PR8632 with:
-fmem-report --param=ggc-min-heapsize=1024 --param=ggc-min-expand=1 -Ox -Q
The memory consumption summary appears in the dump after detailed listing of
the places they are allocated in. Peak memory consumption is actually computed
by looking for maximal value in {GC XXXX -> YYYY} report.
Yours testing script.
More information about the Gcc-regression
mailing list