Changes between Version 8 and Version 9 of Status/Nov07
- Dec 4, 2007 2:15:36 PM (9 years ago)
v8 v9 120 120 Roshan James did an internship at MSR in 2006 during which he and I (Simon M) worked on parallelising the major collections in GHC's generational garbage collector. We had a working algorithm, but didn't observe much speedup on a multi-processor. Since then, I rewrote the implementation and spent a large amount of time with various profiling tools, which uncovered some cache-unfriendly behaviour. We are now seeing some speedup, but there is more tweaking and measuring still to be done. 121 121 122 This parallel GC is likely to be in GHC 6.10. If you have enough cores and your program does enough GC, you might even see a speedup for purely single-threaded Haskell programs. 122 This parallel GC is likely to be in GHC 6.10. . 123 123 124 124 The other side of the coin is to parallelise the ''minor'' collections. These are normally too small and quick to apply the full-scale parallel GC to, and yet the whole system still has to stop to perform a minor GC. The solution is almost certainly to allow each CPU to GC its own nursery independently. There is existing research describing how to do this, and we plan to try applying it in context of GHC.