[grapefruit] growing heap usage

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Thu Jul 30 07:49:11 EDT 2009


Am Mittwoch, 22. Juli 2009 03:43 schrieb Neal Alexander:
>  > Do you know when the garbage collector starts collecting garbage?
>
> It collects several times per second according to the +RTS -S messages.
>
> And btw, I think something might be wrong with the GC, maybe its
> accumulating statistics even when profiling is disabled, or theres
> something going on with the FFI call to performGC.
>
> With the program:
>
> main = forever $ performGC
>
> The OS reported memory usage grows fast. If i enable +RTS -S the GC
> statistics show the heap "live bytes" being constant.

Hello Neal,

I saw your post on haskell-cafe and the answer from Simon Marlow. So there 
seems to be a bug on Windows which is fixed now. However, I’m not sure 
whether this fixes the problem with Grapefruit and garbage collection 
completely since I experienced problems also on Linux.

I’m not having the time at the moment to do experiments using my insufficient 
profiling skills. So could you please assist me a bit? As I told you, heap 
profiling always gave me a single band for 
Internal.Signal.Discrete.Vista.CAF. How can I split this monolithic band into 
smaller ones that let me see where exactly the space is being leaked?

Best wishes,
Wolfgang



More information about the Grapefruit mailing list