[Haskell-cafe] help optimizing memory usage for a program

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Mar 2 12:29:22 EST 2009


Hello Manlio,

Monday, March 2, 2009, 8:16:10 PM, you wrote:

> 1) With default collection algorithm, I have:

> 2) With -c option:

> So, nothing changed.

you should look into +RTS -s stats. those 409 vs 418 mb is just
somewhat random values, since GCs in those 2 inviocations are not
synchronized. you should run program severaltimes with various sized
datasets. and take a look into other RTS options, i think it would be
better to fix heap size so that you will have maximum performance
for the given amount of memory used. also try to make -A option close
to L2 cache size


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



More information about the Haskell-Cafe mailing list