#3408: idle GC causes large CPU usage if run more frequently than 1 second
---------------------------------+------------------------------------------
    Reporter:  JeremyShaw        |        Owner:  simonmar   
        Type:  bug               |       Status:  new        
    Priority:  normal            |    Milestone:  6.12 branch
   Component:  Runtime System    |      Version:  6.10.4     
    Severity:  normal            |   Resolution:             
    Keywords:  idle GC           |   Difficulty:  Unknown    
    Testcase:                    |           Os:  Linux      
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by robgreayer):

 * cc: [email protected] (added)

Comment:

 Perhaps related ... I've noticed a problem running GHCi on Windows; after
 loading a fairly complex set of modules, the 'idle' CPU usage of GHC can
 be quite high.  After seeing this bug report, I tried setting the idle GC
 time to something other than its default, (e.g. ghci.exe +RTS -I1 -RTS
 ...) and the 'idle' CPU usage drops to 0.

 With idle GC = 0.3 (or unset), after initialization GHCi's idle CPU usage
 is about 2%.
 After loading a test case (Main module of frag-1.1.2, from hackage), it
 hovers at 15%-25%.

 With idle GC set to 1, in both cases idle CPU usage is 0%.
 (This is on XP SP2, Intel Core 2 Duo CPU 2.2Ghz).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3408#comment:3>
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

Reply via email to