FiberTaskingLib
FiberTaskingLib copied to clipboard
OS X Thread Affinity is unimplemented
I've made progress on this and will PR soon with an implementation.
Curious: what is the status of this issue? Did it ever get attention?
It's stalled. I haven't heard back from underscorediscovery. That said, my brief look into OSX thread affinity suggests that it's not possible from the kernel level. OSX purposely doesn't allow you to set the affinity.
Hey apparently I slept on this. here's a post on how http://yyshen.github.io/2015/01/18/binding_threads_to_cores_osx.html
If my local build of this still compiles I can try update and PR for that piece, was there a test (to confirm affinity) in place @RichieSams?
Not currently, but I could whip one up this week. It would just spin up threads and compare their thread ids to check uniqueness.
@RichieSams that'd be helpful, I think it'd make sure it's consistent on all targets going forward.
Definitely. Will do
Thanks, a ton, you two.
My small team will be experimenting with Fibers and perhaps we can assist with some of the other open issues.
Awesome!
Affinity tests for Windows and Linux are implemented: https://github.com/RichieSams/FiberTaskingLib/tree/test_updates
Alright cool, I'll use that as a jumping point.
OSX Affinity is theoretically implemented. It needs the tests though. And verification that I did it right. I've only tried it on a VM.
ah ok, missed that bit, I'll have a run at it