[Haskell-cafe] memory usage in repeated reading of an external
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Thu Jun 21 08:18:23 EDT 2007
On Jun 21, 2007, at 6:40 , Andrea Rossato wrote:
> I have this very simple program that executes an external program,
> reads its output and prints it (the program is "date").
> The readings is done with pipes.
> The problem is that memory usage constantly increases over time.
> Profiling does not show garbage collection of any sort.
Huh. Thank you; I'd observed that behavior in one of my programs but
hadn't sat down to figure out why yet, mostly because I have a
workaround: if you cap the heap (+RTS -M...) it *does* do GC.
Which makes it sound like something I don't know how to debug. :/
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe