[erlang-questions] SMP support in OpenBSD

Nikolay Epifanov nik.epifanov@REDACTED
Sun Aug 9 10:18:14 CEST 2009


> Try using a finite number of processes say between 4 and 256 and see if
> your
> cpu-utilization increases.
>
I tried running

run() ->
        spawn(fun() -> p(999, 999999) end),
        spawn(fun() -> p(999, 999999) end),
        spawn(fun() -> p(999, 999999) end),
        spawn(fun() -> p(999, 999999) end).

but it's all happened same way. It's probably OpenBSD's fault.



So when Erlang is being run on SMP system only _one_ beam.smp process is
started? And its threads are put on different cores?

OpenBSD process affinity is coming soon.
http://undeadly.org/cgi?action=article&sid=20090324210236

But it is unknown when threads will go multicore.
http://groups.google.com/group/comp.unix.bsd.openbsd.misc/browse_thread/thread/cbea9c8b273ac0d6

But threads able to run on different cores are necessary, right?


More information about the erlang-questions mailing list