<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>From shell:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>1> SendFunc = fun(Pid, Msg, Times, Func) when Times>0 -> Pid ! Msg, Func(Pid, Msg, Times-1. Func); (_,_,0,_)-> ok end.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>2> F = SendFunc(Pid, <<00>>, 300000000, SendFunc).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>3> spawn(F).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px;
font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>where Pid is the pid of a simple receive function on the other node, that counts messages. </span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Gleb Peregud <gleber.p@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Dror Mein <drormein@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Erlang-Questions Questions <erlang-questions@erlang.org>
<br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 2, 2013 10:11 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [erlang-questions] Is there a lomit on erlang vm nodes connection speed<br> </font> </div> <div class="y_msg_container"><br>I was able to get 5+gbps over multiple connections out of a single<br>Erlang VM. Max probably did even more. There is no explicit limit in<br>connection speed. Show us your code and we'll probably be able to tell<br>you why it can not get good throughput.<br><br>On Tue, Jul 2, 2013 at 8:47 AM, Dror Mein <<a ymailto="mailto:drormein@yahoo.com" href="mailto:drormein@yahoo.com">drormein@yahoo.com</a>> wrote:<br>> I'm trying to send data between two nodes on two different servers, that<br>> talk through a 10 Gbps switch. Running iperf on the connection shows<br>> consistent 5-7 gbps throughput. But with Erlang I can't exceed 300Mbps, when<br>> looking through iptraf,
and all I do is send data from one node to a dummy<br>> process on the other.<br>> Is there a limitation on connection speed on erlang? Is there a flag that<br>> need to be configured?<br>><br>> _______________________________________________<br>> erlang-questions mailing list<br>> <a ymailto="mailto:erlang-questions@erlang.org" 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></div> </div> </div> </div></body></html>