[erlang-questions] OSX: binding schedulers to processor cores doesn't work

34 views
Skip to first unread message

Zabrane Mickael

unread,
Sep 16, 2012, 6:00:51 AM9/16/12
to Erlang Questions
Hi guys,

Trying to bind schedulers to processor cores simply fail on my MacOSX (10.7.4) using R15B01 and R15B02:
$ erl +sbt db
setting scheduler bind type 'db' failed: not supported
[...]

All other binding options failed too. Why?

How one can use "+sbt db", now that the call to "erlang:system_flag(scheduler_bind_type,default_bind)" is deprecated?

Regards,
Zabrane

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Rickard Green

unread,
Sep 16, 2012, 2:44:35 PM9/16/12
to Erlang-Questions Questions
Binding of schedulers has never been supported on MacOSX. I've not put much effort into it, but when I last looked into it (a long time ago) I couldn't find any functionality in MacOSX that could be used for this. This might have changed, thought. If you want to look into it, a patch implementing this is welcome.

Regards,
Rickard Green, Erlang/OTP, Ericsson AB

Zabrane Mickael

unread,
Sep 17, 2012, 6:38:57 PM9/17/12
to Rickard Green, Erlang-Questions Questions
Hi Richard,

Spent time looking for "set_affinity" equivalent on OSX today.

it looks like OSX' scheduler (Snow, Lion, Mountain) still doesn't implement processor affinity for processes nor threads. 

Grrrrrrr !

Regards,
Zabrane

Reply all
Reply to author
Forward
0 new messages