multi-core processors and erlang

Inswitch Solutions <>
Thu Jul 20 14:11:03 CEST 2006


Hi Joe,

In the link
http://www.erlang.org/ml-archive/erlang-questions/200606/msg00187.html  you
wrote:
"Sure I *could* speed things up with messy optimised code, but the code
would be less beautiful, and more difficult to maintain."

What kind of optimizations can be done, to the code mentioned there, to
speed things up?


regards, Eduardo Figoli



----- Original Message ----- 
From: "Joe Armstrong (TN/EAB)" <>
To: "Only OpenSource" <>;
<>
Sent: Thursday, July 20, 2006 6:15 AM
Subject: RE: multi-core processors and erlang


>
> Absolutely -
>
> <<aside>>
> just think, when "other languages" (TM) have caught onto the idea
> of "no sharing, no-locking, lightweight processes" they will be were
> Erlang was twenty years ago :-)
> <</aside>>
>
> Yes Erlang runs happily on multi core processors - drop your Erlang
> program onto a multi core
> and it *will* go faster, exactly how much faster depends upon the
> dependencies between you parallel
> processes. If they are all independent and CPU bound you'll probably run
> K * N
> times faster on an N core CPU. Say 16 times on a Sun Niagara.
>
> << K depends upon the Erlang implementation, it's currently about 0.5,
> were hoping for 0.75,
>    the current implementation strategy emphasis stability over speed ...
> >>
>
> Turning a sequential program into a parallel program is also really
> really easy, for
> example, I changed a single map to pmap (pmap is a parallel map
> function)
> and the program went 7 times faster.
>
> Read
>
> http://www.erlang.org/ml-archive/erlang-questions/200606/msg00187.html
>
>
> See also
>
> Multicore Erlang performance
>
> http://www.erlang-stuff.net/blog/
>
>
> /Joe
>
> > -----Original Message-----
> > From: 
> > [mailto:] On Behalf Of Only
> > OpenSource
> > Sent: den 20 juli 2006 10:52
> > To: 
> > Subject: multi-core processors and erlang
> >
> > hello
> >
> > Does erlang take benefit of multi-core processors which are
> > now available in desktop machines ?
> >
> > erlang supports concurrency and can definitely benefit from
> > native support from multi-core processors.
> >
> > Is it a correct assumption or am I just too sleepy ?
> >
> > --
> > oo@@oo
> >
>





More information about the erlang-questions mailing list