3 ms·
> The cores may be bound to schedulers, through the +sbt flag, which means the schedulers will not "jump around" between cores. It only works on modern operatin
by mietek 11y ago
> The cores may be bound to schedulers, through the +sbt flag, which means the schedulers will not "jump around" between cores. It only works on modern operating systems, so OSX can't do it, naturally.
That’s a bit out of date.
https://developer.apple.com/library/mac/releasenotes/Performance/RN-AffinityAPI/index.html https://developer.apple.com/library/mac/releasenotes/Perform...
- cpeterso 11y agoNote that OS X's thread affinity APIs, unlike other operating systems, don't allow to pin threads to specific processors. You can only define an "affinity set" of threads that should be scheduled on the same processor. Similarly, you can spread threads to different processors by assigning them to different affinity sets. I wrote some code to do this in Firefox for OS X, Linux, and Windows: https://mxr.mozilla.org/mozilla-central/source/xpcom/threads/nsThread.cpp#302 https://mxr.mozilla.org/mozilla-central/source/xpcom/threads...
- deleted 10y ago[deleted]