[erlang-questions] Message passing in Erlang is very slow with the -smp option.

Mikage Sawatari mikage@REDACTED
Fri Sep 28 08:50:00 CEST 2007


Sorry for omitting my environment:

SUSE Linux Enterprise Server 10 SP1 (x86_64)
Kernel: 2.6.16.46-0.14-smp
CPU: Intel(R) Xeon(R) CPU E5335 @ 2.00GHz x 2 sockets (total 8 cores)
Memory: 8GB
Erlang: R11B-5 (version 5.5.5)

On 9/28/07, Mikage Sawatari <mikage@REDACTED> wrote:
> I found message passing becomes very slow when the -smp option is in
> effect. I did a benchmark by passing messages circularly around several
> processes. The performance became about 1/7 with the -smp option.
>
> Is there any workaround for this? Or will this be improved in the future
> of Erlang?
>
> >> erl -noshell -eval 'ring_bench:start(1000,10000), halt().'
> >>
> > N = 1000, M = 10000; elapsed time = 1470 (1494) miliseconds
> >
> >
> >> erl -smp -noshell -eval 'ring_bench:start(1000,10000), halt().'
> >>
> > N = 1000, M = 10000; elapsed time = 9810 (9826) miliseconds
> >
>
> The program I used can be found in the following blog:
>
> > http://d.hatena.ne.jp/sumim/20070513/p1 (Japanese)
> >

-- 
-----------------------------------------------------------------------
SAWATARI Mikage (SANO Taku)



More information about the erlang-questions mailing list