[GHC] #8257: System.Mem: Expose performMinorGC

GHC ghc-devs at haskell.org
Mon Sep 9 14:30:19 CEST 2013


#8257: System.Mem: Expose performMinorGC
-------------------------------------+------------------------------------
        Reporter:  nh2               |            Owner:
            Type:  bug               |           Status:  patch
        Priority:  normal            |        Milestone:  7.8.1
       Component:  libraries/base    |          Version:  7.6.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by nh2):

 It is very useful for us, since our minor GCs are simply coming at the
 wrong time.

 Imagine a loop that does something for 5 ms and then sleeps for 5 ms.
 Currently, ghc schedules the minor GCs right into the ''doing something''
 part significantly decreasing its performance. By triggering a minor GC in
 the pause, it almost never interrupts the active part.

 If ghc thinks that it is time for a major collection, we trust its
 glorious decisions.

 {{{
 disableMajorGC, enableMajorGC :: IO ()
 }}}

 would be a useful addition as well, but are out of the range of this
 feature request.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8257#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler




More information about the ghc-tickets mailing list