
main = forever performGC The OS reported memory usage skyrockets. If i enable +RTS -S the GC statistics show the heap "live bytes" being constant. Is it accumulating statistics even when profiling is disabled (and can you turn that off), or is there something going on with the FFI call to performGC. Compiled with "ghc -O2 -fvia-C -optc-O2 -funbox-strict-fields -threaded" btw.

On 22/07/2009 02:51, Neal Alexander wrote:
Neal Alexander wrote:
Compiled with "ghc -O2 -fvia-C -optc-O2 -funbox-strict-fields -threaded" btw.
GHC 6.10.3 on 64bit windows7.
Interesting. It's completely flat on Linux, but gobbles up about 1MB/s on Windows. I'm investigating. Cheers, Simon

On 23/07/2009 11:53, Simon Marlow wrote:
On 22/07/2009 02:51, Neal Alexander wrote:
Neal Alexander wrote:
Compiled with "ghc -O2 -fvia-C -optc-O2 -funbox-strict-fields -threaded" btw.
GHC 6.10.3 on 64bit windows7.
Interesting. It's completely flat on Linux, but gobbles up about 1MB/s on Windows. I'm investigating.
Found it - there was a CriticalSection being re-initialised at each GC. Cheers, Simon

Simon Marlow wrote:
On 23/07/2009 11:53, Simon Marlow wrote:
On 22/07/2009 02:51, Neal Alexander wrote:
Neal Alexander wrote:
Compiled with "ghc -O2 -fvia-C -optc-O2 -funbox-strict-fields -threaded" btw.
GHC 6.10.3 on 64bit windows7.
Interesting. It's completely flat on Linux, but gobbles up about 1MB/s on Windows. I'm investigating.
Found it - there was a CriticalSection being re-initialised at each GC.
Cheers, Simon
Cool, thanks for checking it out.
participants (2)
-
Neal Alexander
-
Simon Marlow