Well this is interesting. So what you are saying is that if your haskell application requires a peek memory utilisation of (for example) 1GB, after the memory intesive computation has completed and the GC has run (assuming all references have been dropped) the GHC RTS will retain the 1GB allocated to the process. Does this occur on both windows and posix platforms, does anyone know ? If so then this is a real issue. It would be reasonable to expect that the RTS release resources to the OS when not explicitly required.

jvl

----- Original Message ----- From: "Bulat Ziganshin" <bulat.zigans...@gmail.com>
To: "FFT" <fft1...@gmail.com>
Cc: "Chris Forno" <je...@jekor.com>; <hask...@haskell.org>; <haskell-cafe@haskell.org>
Sent: Thursday, May 07, 2009 6:18 AM
Subject: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for WebApplications? (ANN: Vocabulink)


Hello FFT,

Wednesday, May 6, 2009, 11:59:53 PM, you wrote:

I've heard it's hard to contain a long-running Haskell application in
a finite amount of memory

not exactly. you may alloc fixed pool of memory to application (say, 1gb)
if you know that it never need more memory. but as far as you don't do
it, memory usage grows with each major GC. ghc just don't provide
any way to return memory to OS (there is a ticket on it, you can add
yourself to CC list to vote for its resolution)

--
Best regards,
Bulat                            mailto:bulat.zigans...@gmail.com

_______________________________________________
Haskell mailing list
hask...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to