[Haskell-cafe] Re: Over-allocation

Simon Marlow simonmarhaskell at gmail.com
Fri Nov 30 07:57:48 EST 2007


Gracjan Polak wrote:

> My program is eating too much memory:
> 
> copyfile source.txt dest.txt +RTS -sstderr
> Reading file...
> Reducing structure...
> Writting file...
> Done in 20.277s
> 1,499,778,352 bytes allocated in the heap
> 2,299,036,932 bytes copied during GC (scavenged)
> 1,522,112,856 bytes copied during GC (not scavenged)
>  17,846,272 bytes maximum residency (198 sample(s))
> 
>        2860 collections in generation 0 ( 10.37s)
>         198 collections in generation 1 (  8.35s)
> 
>          50 Mb total memory in use
> 
>   INIT  time    0.00s  (  0.00s elapsed)
>   MUT   time    1.26s  (  1.54s elapsed)
>   GC    time   18.72s  ( 18.74s elapsed)
>   EXIT  time    0.00s  (  0.00s elapsed)
>   Total time   19.98s  ( 20.28s elapsed)

ooh.  May I have your program (the unfixed version) for benchmarking the 
parallel GC?

Cheers,
	Simon, currently collecting space leaks


More information about the Haskell-Cafe mailing list