<div dir="ltr">Looks like pg2 may affect you network performance. Could you try get rid of it, and make bech again?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-20 15:49 GMT+04:00 Jihyun Yu <span dir="ltr"><<a href="mailto:yjh0502@gmail.com" target="_blank">yjh0502@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What I want to say is, the benchmark does not scale on multi-core<br>
machine while it uses multiple erlang processes to send message.<br>
<br>
I ran the benchmark with two erlang VM instances, on quad-core<br>
laptop. It couldn't saturate all CPU cores, AFAIK because of lock<br>
in erlang VM. The benchmark scales when it runs on single erlang<br>
VM instance, which shows message passing on single erlang VM<br>
scales as expected.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Aug 20, 2014 at 12:37:02PM +0100, Jon Schneider wrote:<br>
> Isn't this simply pushing the performance of Erlang regardless of<br>
> networking ?<br>
><br>
> I'm sitting at a machine which yes is several years old and running<br>
> Windows XP but with a simple ping-pong atom message test between a pair of<br>
> processes I get around 125k messages/second.<br>
><br>
> Compiling with [hipe] doesn't seem to make any difference.<br>
><br>
> Jon<br>
><br>
> > Hi, Thanks for reply!<br>
> ><br>
> > I just tried, but it seems that there is no signigicant difference<br>
> > on performance. Here's script which used on benchmarking.<br>
> ><br>
> > <a href="https://gist.github.com/yjh0502/68d6ffce93bcbc425435" target="_blank">https://gist.github.com/yjh0502/68d6ffce93bcbc425435</a><br>
> ><br>
> ><br>
> ><br>
> > On Wed, Aug 20, 2014 at 02:11:07PM +0400, Alexander Petrovsky wrote:<br>
> >> Hello!<br>
> >><br>
> >> Have you tried to use:<br>
> >><br>
> >> #  erl ... inet_default_connect_options '[{delay_send, true}]'<br>
> >>  inet_default_listen_options '[{delay_send, true}]'<br>
> >><br>
> >> ?<br>
> >><br>
> >><br>
> >> 2014-08-19 16:59 GMT+04:00 Jihyun Yu <<a href="mailto:yjh0502@gmail.com">yjh0502@gmail.com</a>>:<br>
> >><br>
> >> > Hi,<br>
> >> ><br>
> >> > There is a prior discusson[1] about inter-node communication<br>
> >> bottleneck,<br>
> >> > and I experienced same issue on inter-node messaging. I dig into the<br>
> >> > issue and it found that there is a lock on inter-node messaging[2]<br>
> >> which<br>
> >> > causes bottleneck on sending messages to single node. With simple<br>
> >> > experiment, I found that there is a limitation on number of messages<br>
> >> per<br>
> >> > second, not bandwidth. 1Gbps link could be easily satuated by<br>
> >> messaging<br>
> >> > betweeen two erlang nodes if message size is large enough, e.g. 4KB<br>
> >> > binary message. However if message is small, e.g. single integer term,<br>
> >> > number of messages per seconds is limited about 200~300k/sec.<br>
> >> ><br>
> >> > Is there any effort to solve the problem? In fact the problem could be<br>
> >> > solved by using external channel like multiple TCP connection pool for<br>
> >> > rpc, but I believe using erlang messaging keeps code much simpler.<br>
> >> > Actually for me the problem is quite embrassing, because I thought<br>
> >> > scalable messaging is a key feature and strength of Erlang.<br>
> >> ><br>
> >> ><br>
> >> > [1]<br>
> >> <a href="http://erlang.org/pipermail/erlang-questions/2013-December/076232.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2013-December/076232.html</a><br>
> >> > [2]<br>
> >> > <a href="https://github.com/erlang/otp/blob/OTP-17.1/erts/emulator/beam/dist.c#L1768-L1826" target="_blank">https://github.com/erlang/otp/blob/OTP-17.1/erts/emulator/beam/dist.c#L1768-L1826</a><br>
> >> > _______________________________________________<br>
> >> > erlang-questions mailing list<br>
> >> > <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> >> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
> >> ><br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> Петровский Александр / Alexander Petrovsky,<br>
> >><br>
> >> Skype: askjuise<br>
> >> Phone: +7 914 8 820 815<br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
> ><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div><br></div></div></div>
</div>