RTS -I switch

Simon Marlow simonmarhaskell at gmail.com
Tue Nov 14 05:19:45 EST 2006


Bulat Ziganshin wrote:
> Hello glasgow-haskell-users,
> 
> i still forget to ask: if my program is idle during long time, is GC
> will occur each 0.3 seconds or GHC is smart enough to check that no
> much memory was allocated after last GC?

You'll only get one GC.  Or at least that's the theory: I remember seeing cases 
where one GC caused a finalizer to be created, which in turn triggered another 
idle GC (because the heap had changed), which in turn created a new finalizer, 
and so on.  If you see something like this, we should investigate.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list