#3838: Performance issues with blackholes
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:  simonmar               
        Type:  bug               |       Status:  new                    
    Priority:  normal            |    Milestone:  6.14 branch            
   Component:  Runtime System    |      Version:  6.12.1                 
    Keywords:                    |   Difficulty:                         
          Os:  Unknown/Multiple  |     Testcase:                         
Architecture:  Unknown/Multiple  |      Failure:  Runtime performance bug
---------------------------------+------------------------------------------

Comment(by simonmar):

 After several weeks of research, heated discussion, hacking, epic
 debugging, and with casualties including one whiteboard:

 {{{
 > ./thread-delay -n 20000 +RTS -s
 ./thread-delay -n 20000 +RTS -s
      134,165,424 bytes allocated in the heap
      151,967,568 bytes copied during GC
       23,767,936 bytes maximum residency (7 sample(s))
        7,930,616 bytes maximum slop
               81 MB total memory in use (1 MB lost due to fragmentation)

   Generation 0:   239 collections,     0 parallel,  0.25s,  0.25s elapsed
   Generation 1:     7 collections,     0 parallel,  0.10s,  0.15s elapsed

   Parallel GC work balance: nan (0 / 0, ideal 1)

                         MUT time (elapsed)       GC time  (elapsed)
   Task  0 (worker) :    0.00s    (  0.16s)       0.00s    (  0.00s)
   Task  1 (worker) :    0.00s    (  0.00s)       0.25s    (  0.28s)
   Task  2 (worker) :    0.00s    (  0.16s)       0.00s    (  0.00s)
   Task  3 (bound)  :    0.00s    (  0.16s)       0.09s    (  0.11s)

   SPARKS: 0 (0 converted, 0 pruned)

   INIT  time    0.00s  (  0.00s elapsed)
   MUT   time    0.14s  (  0.16s elapsed)
   GC    time    0.34s  (  0.40s elapsed)
   EXIT  time    0.00s  (  0.00s elapsed)
   Total time    0.48s  (  0.56s elapsed)
 }}}

 And it always runs in <0.6s.  Now all I have to do is get these patches
 cleaned up and committed.

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