#3664: Ghc eats tremendous heaps of RAM in -prof build (highlighting-kate)
-------------------------------------------+--------------------------------
Reporter: slyfox | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Compiler | Version: 6.12.1 RC1
Resolution: | Keywords:
Difficulty: | Os: Linux
Testcase: | Architecture: x86_64 (amd64)
Failure: Compile-time performance bug |
-------------------------------------------+--------------------------------
Comment (by slyfox):
Results:
{{{
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("Project version","6.10.4")
,("Booter version","6.10.4")
...
$ /usr/bin/time ./build.sh
...
<<ghc: 16394164352 bytes, 31188 GCs, 32045920/173159800 avg/max bytes
residency (44 samples), 358M in use, 0.00 INIT (0.00 elapsed), 29.55 MUT
(35.98 elapsed), 22.76 GC (23.75 elapsed) :ghc>>
56.29user 1.31system 1:00.03elapsed 95%CPU (0avgtext+0avgdata
1530144maxresident)k
17376inputs+0outputs (64major+134666minor)pagefaults 0swaps
}}}
Compiled successfully. Ate ~400MB
{{{
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("Project version","6.12.0.20091121")
,("Booter version","6.10.4")
...
$ /usr/bin/time ./build.sh
...
Heap exhausted;
Current maximum heap size is 768000000 bytes (732 MB);
use `+RTS -M<size>' to increase it.
<<ghc: 32113310800 bytes, 61096 GCs, 303443071/754207120 avg/max bytes
residency (45 samples), 761M in use, 0.00 INIT (0.00 elapsed), 39.25 MUT
(41.92 elapsed), 148.00 GC (150.19 elapsed) :ghc>>
Command exited with non-zero status 251
187.83user 1.69system 3:12.25elapsed 98%CPU (0avgtext+0avgdata
3192560maxresident)k
9488inputs+0outputs (39major+216475minor)pagefaults 0swaps
}}}
Failed: Heap exhausted (I limited heap in '''build.sh''' by 768M)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3664#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs