[GHC] #12764: Be able to pin a thread to a numa node without fixing a capabiity

GHC ghc-devs at haskell.org
Fri Nov 11 04:50:41 UTC 2016


#12764: Be able to pin a thread to a numa node without fixing a capabiity
-------------------------------------+-------------------------------------
        Reporter:  darshan           |                Owner:  darshan
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  D2637
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"122d826d1d1b7ba6e73866331863fa1e0b3e99ea/ghc"
 122d826d/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="122d826d1d1b7ba6e73866331863fa1e0b3e99ea"
 rts: Add api to pin a thread to a numa node but without fixing a
 capability

 `rts_setInCallCapability` sets the thread affinity as well as pins the
 numa node. We should also have the ability to set the numa node without
 setting the capability affinity. `rts_pinNumaNodeForCapability` function
 is added and exported via `RtsAPI.h`.

 Previous callers of `rts_setInCallCapability` should now also call
 `rts_pinNumaNodeForCapability` to get the same effect as before.

 Test Plan:
   ./validate

 Reviewers: austin, simonmar, bgamari

 Reviewed By: simonmar, bgamari

 Subscribers: thomie, niteria

 Differential Revision: https://phabricator.haskell.org/D2637

 GHC Trac Issues: #12764
 }}}

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


More information about the ghc-tickets mailing list