[Haskell-cafe] ghc +RTS -M and -A behaving strange

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Tue Dec 28 20:37:50 CET 2010


Hello.

When I run a program compiled with ghc-6.12.3 like this:

...  +RTS -A2G -M8G -s 

I get as an answer:

Heap exhausted;
Current maximum heap size is 0 bytes (0 MB);
use `+RTS -M<size>' to increase it.

and when I put the options

... +RTS -A2000M -M8000M -s

I get 

Heap exhausted;
Current maximum heap size is 4093640704 bytes (3904 MB);
use `+RTS -M<size>' to increase it.

and both numbers look strange.

The behaviour of the program is also strange (instead of "heap exhausted"
I'd expect it to do some smore garbage collections, which it does indeed without
the -A option)







More information about the Haskell-Cafe mailing list