#3408: idle GC causes large CPU usage if run more frequently than 1 second
---------------------------------+------------------------------------------
Reporter: JeremyShaw | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 6.12.1
Component: Runtime System | Version: 6.10.4
Severity: normal | Resolution:
Keywords: idle GC | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonmar):
I see the problem with GHCi 6.10.4+ on Windows. I think what is happening
is this:
* Haskeline is using `ReadConsoleInput` to wait for input
* `ReadConsoleInput` returns non-key events
* Windows is sending some non-key events every second or so
* every 0.3 seconds of idle time, the RTS does another GC
* setting -I large enough means that the RTS is never idle for long
enough to
trigger a GC
I'm not sure what the best fix is. I'll make the default idle time longer
for now.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3408#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs