[Haskell-cafe] help understanding zlib space leak

diego souza dsouza at bitforest.org
Mon May 6 02:08:47 CEST 2013


Sorry, I should've removed the pid number from the output. The
following should be correct:

> $ sudo dd if=/dev/sda bs=4K count=2048K | ./test +RTS -M1M -s >/dev/null                                                   
...
8589934592 bytes (8.6 GB) copied, 243.525 s, 35.3 MB/s
  41,942,119,192 bytes allocated in the heap
     228,827,904 bytes copied during GC
         104,048 bytes maximum residency (6 sample(s))
          24,408 bytes maximum slop
               2 MB total memory in use (0 MB lost due to fragmentation)
...

> $ while pidof test >/dev/null; do ps -o rss= -p $(pidof test); sleep 1; done | tail
32056
32408
32832
33264
33684
34100
34560
34900
35384
35816 # ~ 35MB

Thanks!
~dsouza



More information about the Haskell-Cafe mailing list