[GHC] #9314: Each object file in a static archive file (.a) is loaded into its own mmap()ed page

GHC ghc-devs at haskell.org
Thu Nov 12 16:35:44 UTC 2015


#9314: Each object file in a static archive file (.a) is loaded into its own
mmap()ed page
-------------------------------------+-------------------------------------
        Reporter:  kazu-yamamoto     |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.0.1
       Component:  Runtime System    |              Version:  7.8.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by hsyl20):

 @simonmar wrote: "I like not having to memcpy all the memory for an object
 file into the 1-2GB region, we just mmap it - this is also useful because
 various tools (like perf) understand the mapping and can give symbol
 names. For .a files I think it's fine to memcpy the bits though."
 (https://phabricator.haskell.org/D985#26591)

 I think that's why D975 doesn't bring the memory improvement while D985
 did. Maybe we should add a flag (or use -g) to switch between the mmap
 mode that tools like perf understand and the memcpy mode that is much
 cheaper (the latter becoming the default mode).

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


More information about the ghc-tickets mailing list