garbage collection

Bulat Ziganshin bulatz at HotPOP.com
Tue Apr 12 10:58:57 EDT 2005


Hello glasgow-haskell-users,

1) can you add disableGC and enableGC procedures? this can
significantly improve performance in some cases

2) if, for example, program's data before GC is 80 mb and after GC is
60 mb then the program will occupy after GC the whole 140 mb and ALL
this space will be marked by OS as used! if there's a memory shortage,
old program data even can be swapped to disk despite the fact that we
absolutely don't need them! that behaviour significantly enlarge
memory needs of GHC-compiled programs

if this unused memory will be returned to OS or marked as unneeded
after GC then will problem will go on. preferably this must be done
during the time of GC, on each page which contents has been already
compacted. in this case such program will never use more than 80mb of
real memory (+ 1 page + memory for GC)

-- 
Best regards,
 Bulat                          mailto:bulatz at HotPOP.com





More information about the Glasgow-haskell-users mailing list