[erlang-questions] logical_processors_available unknown on mac

Alin Popa alin.popa@REDACTED
Thu Feb 18 12:46:46 CET 2016


Hmmmm, sure, I think it makes sense, but still, it works fine on Linux as
I've tested.
Also, not entirely sure what should I use instead of that on OSX, any idea?

Thanks,
Alin

On Wed, Feb 17, 2016 at 3:32 PM, Jesper Louis Andersen <
jesper.louis.andersen@REDACTED> wrote:

>
> On Wed, Feb 17, 2016 at 1:25 PM, Alin Popa <alin.popa@REDACTED> wrote:
>
>> I was recently trying to use
>> `erlang:system_info(logical_processors_available).` on my mac, and getting
>> `unknown` atom back; anyone has any idea if this is really by design?
>>
>
> A bit of guesswork here, and someone will correct my mistakes I'm sure:
>
> You can't take your core off-line in OSX and replace it while the system
> is running to the best of my knowledge. So you may not be able to query
> this information from the kernel at all. Illumos/Solaris has support for
> this for instance, and I guess this is why there is an entry for it.
>
> If your Solaris server has a failing CPU package, you can take it offline
> from the OS, replace it, and start the new CPU package, without stopping
> the system. When this happens, you might have fewer logical processors
> available in the system for some reason.
>
> Many of the settings regarding CPUs are not that supported on OSX. Another
> such call is the +sbt option, which you can't use on OSX since there is no
> way to bind threads to CPU cores.
>
>
> --
> J.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160218/c9153a4a/attachment.htm>


More information about the erlang-questions mailing list