#3553: parallel gc suffers badly if one thread is descheduled
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:  igloo       
        Type:  merge             |       Status:  new         
    Priority:  normal            |    Milestone:  6.12.2      
   Component:  Runtime System    |      Version:  6.10.4      
    Keywords:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 I tried using futexes today, and so far haven't managed to beat the
 performance of the `sched_yield` spinlocks, but I might not be using them
 right. I fully expect futexes to be better.  (also, futexes are not
 exactly a real API.  The syscall isn't even exposed by glibc, you have to
 define it manually, as I discovered with some help from folks on #ghc).

 I can entirely believe that `sched_yield` is never the absolute right
 thing, but it might be the best ''portable'' solution we have.

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