<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div id="yiv1074385442"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div id="yiv1074385442yui_3_16_0_9_1410168073813_4"><span id="yiv1074385442yui_3_16_0_9_1410168073813_11">active false worked better than active once?</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yiv1074385442yqt9663265212" id="yiv1074385442yqt52278"><div class="yiv1074385442yahoo_quoted" id="yiv1074385442yui_3_16_0_9_1410168073813_7" style="display: block;"> <div class="yiv1074385442yui_3_16_0_1_1410168073813_15701" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div
 class="yiv1074385442yui_3_16_0_1_1410168073813_15702" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, September 8, 2014 3:12 PM, Jihyun Yu <yjh0502@gmail.com> wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv1074385442y_msg_container">Hi,<br clear="none"><br clear="none">I couldn't spend much time after last
 update. It seems that using<br clear="none">multiple TCP sockets is not that scalable as well. I ran a test with<br clear="none">following configurations.<br clear="none"><br clear="none"> - 12 cores, 24 threads server (Intel L5640 x 2)<br clear="none"> - Two Erlang VM on two docker containers<br clear="none"> - Connects with 12 TCP connections and send/recv packets<br clear="none"> - [{delay_send,true}, {high_watermark,1024000}]<br clear="none"><br clear="none">With single integer term, total bandwidth is capped on about ~10MB/s.<br clear="none">With single binary term <<"hello">>, total bandwidth is capped on about<br clear="none">20~30MB/s. Two Erlang VM consume almost all CPU resources (2400% total),<br clear="none">so bandwidth per CPU usage is much worse than Erlang messaging case. I<br clear="none">didn't run perf yet, so I don't know where is an bottleneck.<br clear="none"><br clear="none">I attached test source code so you can
 reproduce the result. Please tell<br clear="none">me if there is an error on configurations/test codes/...<br clear="none"><br clear="none"><br clear="none">[1] <a rel="nofollow" shape="rect" target="_blank" href="http://www.erlang.org/doc/man/inet.html">http://www.erlang.org/doc/man/inet.html</a><br clear="none"><div class="yiv1074385442yqt7769518632" id="yiv1074385442yqtfd69189"><br clear="none">On Mon, Sep 08, 2014 at 03:59:04AM -0700, Dror Mein wrote:<br clear="none">> I encountered the same problem. any updates or new successes? the binary_to_term over tcp sounds promising.<br clear="none"></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div> </div></div></div></div></body></html>