-M works strangely
S.D.Mechveliani
mechvel at math.botik.ru
Thu Sep 27 08:12:48 EDT 2001
Dear ghc-5.02-linux-i386-unknown,
I doubt about your -M option work.
I command (on 32M RAM machine),
ghci +RTS -M16m -RTS
...
Prelude> sum [1..333000]
GHC's heap exhausted;
while trying to allocate 0 bytes in a 19996672-byte heap;
use the `-H<size>' option to increase the total heap size.
The top command measures the memory on other linux terminal.
And it shows 92% usage of memory in some moment,
then, the disk starts to work hardly,
and only then, `heap exhausted' appears.
Setting -M8m prevents such expansion.
By the way, there was announced something about changes of meaning
with -H, -M ...
But I had not noticed the change.
Was it for default values?
-----------------
Serge Mechveliani
mechvel at botik.ru
More information about the Glasgow-haskell-bugs
mailing list