[GHC] #14193: Add RTS flag to disable 1TB address space allocaiton

GHC ghc-devs at haskell.org
Fri Sep 8 06:42:31 UTC 2017


#14193: Add RTS flag to disable 1TB address space allocaiton
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9706, #14192     |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonmar):

 This seems to suggest that we should use PROT_NONE instead of
 MAP_NORESERVE to work around issues with overcommit:
 https://lwn.net/Articles/627557/

 As I said over in #14192, adding a flag to disable the large address space
 would have a performance cost, because we'd have to check the flag in the
 inner loop of the GC, so I'd rather avoid that if at all possible.

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


More information about the ghc-tickets mailing list