Re: [Haskell-cafe] Turn GC off

2011-09-29 Thread Ovidiu Deac
To me this sounds like a problem where Erlang might be a better choice. On Wed, Sep 28, 2011 at 4:04 PM, Andreas Voellmy andreas.voel...@gmail.com wrote: On Sat, Sep 17, 2011 at 1:38 AM, Jesse Schalken jesseschal...@gmail.com wrote: There might be a way to do it, I don't know, but this sounds

Re: [Haskell-cafe] Turn GC off

2011-09-29 Thread David Barbour
On Wed, Sep 28, 2011 at 6:04 AM, Andreas Voellmy andreas.voel...@gmail.comwrote: Sure. I'm writing a server that serves a number of long-lived TCP connections. How many are you looking at? (ROFLSCALEhttp://www.youtube.com/watch?v=majbJoD6fzo?) And how much activity? Do you need real-time

Re: [Haskell-cafe] Turn GC off

2011-09-29 Thread austin seipp
On Thu, Sep 29, 2011 at 3:14 PM, David Barbour dmbarb...@gmail.com wrote: minor collections of this nursery do not result in whole system pauses. Yes, they do. GHC has a parallel garbage collector (so collection pauses the mutator threads, and collects garbage -in parallel- on multiple CPUs)

Re: [Haskell-cafe] Turn GC off

2011-09-29 Thread David Barbour
Thank you for the clarification. I had read those papers, but I was under the impression that it was something already part of GHC 7. Regards, Dave On Thu, Sep 29, 2011 at 8:45 PM, austin seipp a...@hacks.yi.org wrote: On Thu, Sep 29, 2011 at 3:14 PM, David Barbour dmbarb...@gmail.com wrote:

Re: [Haskell-cafe] Turn GC off

2011-09-28 Thread Andreas Voellmy
On Sat, Sep 17, 2011 at 1:38 AM, Jesse Schalken jesseschal...@gmail.comwrote: There might be a way to do it, I don't know, but this sounds like an XYhttp://www.perlmonks.org/index.pl?node_id=542341 problem http://mywiki.wooledge.org/XyProblem. Can I ask what you're trying to achieve by doing

Re: [Haskell-cafe] Turn GC off

2011-09-21 Thread Leon Smith
I doubt it. Even if you could turn GC completely off, the vast majority of GHC Haskell programs will run out of memory very quickly. Lazy evaluation has been called evaluation by allocation; unless your program has very simple requirements and can live in the completely-strict fragment of

Re: [Haskell-cafe] Turn GC off

2011-09-16 Thread Jesse Schalken
There might be a way to do it, I don't know, but this sounds like an XYhttp://www.perlmonks.org/index.pl?node_id=542341 problem http://mywiki.wooledge.org/XyProblem. Can I ask what you're trying to achieve by doing this, or is it just out of curiosity regarding how much garbage is created? (It's a

[Haskell-cafe] Turn GC off

2011-09-14 Thread Andreas Voellmy
Hi everyone, Is there a way to completely turn garbage collection off in the Haskell runtime system? I'm aware of the -A runtime option, but I'd like to completely turn it off, if possible. I'm OK with running the program until it runs out of memory, and I'm willing to recompile GHC if needed.