[Haskell-cafe] is 256M RAM insufficient for a 20 million element Int/Int map?

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Oct 19 07:35:18 EDT 2008

Hello Philippa,

Sunday, October 19, 2008, 3:25:26 PM, you wrote:

>> ... that, like everything else, should be multiplied by 2-3 to
>> account GC effect

> Unless I'm much mistaken, that isn't the case when you're looking at the
> minimum heap size because the GC'll run more frequently when you hit the
> max heap size supported anyway, no?

what you mean? max heap size is 2gb probably. it may be configured on
cmdline and if you will enable say 200 mb heap and your program use
only 180 mb - it will run successfully, using only 200 mb of memory.
drawback, of course, is that it may become 10x slower

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list