[Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for WebApplications? (ANN: Vocabulink)

John Lask jvlask at hotmail.com
Thu May 7 03:37:17 EDT 2009


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.ziganshin at gmail.com>
To: "FFT" <fft1976 at gmail.com>
Cc: "Chris Forno" <jekor at jekor.com>; <haskell at haskell.org>; 
<haskell-cafe at 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.Ziganshin at gmail.com
>
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
> 



More information about the Haskell-Cafe mailing list