
#14407: rts: Threads/caps affinity -------------------------------------+------------------------------------- Reporter: pacak | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4143 Wiki Page: | -------------------------------------+------------------------------------- Comment (by pacak):
How does this relate to the `setThreadAfinity` mentioned in #10229, that was implemented 3 years ago in GHC 7.10?
They serve slightly different purpose. #10229 deals with distributing Haskell OS thread between underlying CPU cores in order to avoid when possible running code on different logical CPUs that gets mapped to the same physical CPU, while this `setAffinity` deals with distributing Haskell light threads between different capabilities - to allow giving some threads priority over some other threads but without having to manually pin them to specific capabilities. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14407#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler