<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1476216801148_445233" dir="ltr"><span style="font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1476216801148_445245">> I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.<br></span><span id="yui_3_16_0_ym19_1_1476216801148_445290"><br>Now bind them to cpus 1 and 3.<br><br>You got bound to 0 and 1 by default.  Also erlang is not using the hyperthreaded cpus you have available.  </span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Monday, October 17, 2016 10:33 AM, D├íniel Szoboszlay <dszoboszlay@gmail.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv6210113774"><div><div dir="ltr">Well, I tested, and it does work as long as you have 2 thread/core:<div><br clear="none"></div><div><div><font face="monospace">erl +sbt ts +SP 50:50</font></div><div><font face="monospace">Erlang/OTP 17 Klarna-g48fc1a0 [erts-6.4.1.5] [source-48fc1a0] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]</font></div><div><font face="monospace"><br clear="none"></font></div><div><font face="monospace">Eshell V6.4.1.5  (abort with ^G)</font></div><div><font face="monospace">1> erlang:system_info(cpu_topology).</font></div><div><font face="monospace">[{processor,[{core,[{thread,{logical,0}},</font></div><div><font face="monospace">                    {thread,{logical,2}}]},</font></div><div><font face="monospace">             {core,[{thread,{logical,1}},{thread,{logical,3}}]}]}]</font></div><div><font face="monospace">2> erlang:system_info(scheduler_bindings).</font></div><div><font face="monospace">{0,1}</font></div></div><div><br clear="none"></div><div>I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.</div></div><br clear="none"><div class="yiv6210113774gmail_quote"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd35414"><div dir="ltr">On Mon, 17 Oct 2016 at 16:05 Vans S <<a rel="nofollow" shape="rect" ymailto="mailto:vans_163@yahoo.com" target="_blank" href="mailto:vans_163@yahoo.com">vans_163@yahoo.com</a>> wrote:<br clear="none"></div></div><blockquote class="yiv6210113774gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd24606"><div class="yiv6210113774gmail_msg"><div class="yiv6210113774gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774gmail_msg" dir="ltr" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422377">> You may both want to look at the +sct option for the erl executable: </span></div></div></div><div class="yiv6210113774gmail_msg"><div class="yiv6210113774gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774gmail_msg" dir="ltr" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387">> <a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" target="_blank" href="http://erlang.org/doc/man/erl.html#+sct">http://erlang.org/doc/man/erl.html#+sct</a> <br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg">This is the right answer.</span></div></div></div><div class="yiv6210113774gmail_msg"><div class="yiv6210113774gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774gmail_msg" dir="ltr" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387"><br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg"><span class="yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422449" style="font-family:monospace;font-size:13px;">> erl +sbt ts +SP 50:50<br clear="none" class="yiv6210113774gmail_msg"></span><br clear="none" class="yiv6210113774gmail_msg"></span></div></div></div><div class="yiv6210113774gmail_msg"><div class="yiv6210113774gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774gmail_msg" dir="ltr" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387">This wont bind to the specific system cores.  It will use all cores the OS allows.</span></div></div></div></div><div class="yiv6210113774gmail_msg"><div class="yiv6210113774gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd90124"> <div class="yiv6210113774m_-3585336844506155975qtdSeparateBR yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg"></div></div><div class="yiv6210113774m_-3585336844506155975yahoo_quoted yiv6210113774gmail_msg" style="display:block;"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd42698"> </div><div class="yiv6210113774gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd84505"> </div><div class="yiv6210113774gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd92051"> <div class="yiv6210113774gmail_msg" dir="ltr"><font class="yiv6210113774gmail_msg" size="2" face="Arial"> On Monday, October 17, 2016 9:51 AM, Fred Hebert <<a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" ymailto="mailto:mononcqc@ferd.ca" target="_blank" href="mailto:mononcqc@ferd.ca">mononcqc@ferd.ca</a>> wrote:<br clear="none" class="yiv6210113774gmail_msg"></font></div>  <br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg"> </div><div class="yiv6210113774m_-3585336844506155975y_msg_container yiv6210113774gmail_msg"><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd65241">On 10/17, Vans S wrote:<br clear="none" class="yiv6210113774gmail_msg">>I am interested in this too. Only way I know of so far is to use taskset or equivalent.  Ideally Erlang should bind each scheduler to each single cpu as speced by the topology.<br clear="none" class="yiv6210113774gmail_msg">><br clear="none" class="yiv6210113774gmail_msg">>    On Monday, October 17, 2016 9:35 AM, Tan Duong <<a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" ymailto="mailto:dn.nhattan@gmail.com" target="_blank" href="mailto:dn.nhattan@gmail.com">dn.nhattan@gmail.com</a>> wrote:<br clear="none" class="yiv6210113774gmail_msg">><br clear="none" class="yiv6210113774gmail_msg">><br clear="none" class="yiv6210113774gmail_msg">> Hi everybody,<br clear="none" class="yiv6210113774gmail_msg">>I recently get to experiment an Erlang program.My machine is a multicore CPUs system, which contains some physical cores (say n), each cores features hyper threads (so the maximum CPU threads are 2*n)However, I just want to experiment the program on physical cores only (n cores), not with <a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" target="_blank" href="http://hyperthreading.is/">hyperthreading.is</a> there any mechanism to do so?<br clear="none" class="yiv6210113774gmail_msg">>Best Regards,Tan<br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg">You may both want to look at the +sct option for the erl executable: <br clear="none" class="yiv6210113774gmail_msg"><a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" target="_blank" href="http://erlang.org/doc/man/erl.html#+sct">http://erlang.org/doc/man/erl.html#+sct</a><div class="yiv6210113774m_-3585336844506155975yqt0274086317 yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yqtfd68308"><br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg">Regards,</div><br clear="none" class="yiv6210113774gmail_msg">Fred.</div><div class="yiv6210113774m_-3585336844506155975yqt0274086317 yiv6210113774gmail_msg" id="yiv6210113774m_-3585336844506155975yqtfd46943"><br clear="none" class="yiv6210113774gmail_msg"></div><br clear="none" class="yiv6210113774gmail_msg"><br clear="none" class="yiv6210113774gmail_msg"></div>  </div> </div>  </div></div></div>_______________________________________________<br clear="none" class="yiv6210113774gmail_msg">
erlang-questions mailing list<br clear="none" class="yiv6210113774gmail_msg">
<a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" ymailto="mailto:erlang-questions@erlang.org" target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none" class="yiv6210113774gmail_msg">
<a rel="nofollow" shape="rect" class="yiv6210113774gmail_msg" target="_blank" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><div class="yiv6210113774yqt2057666233" id="yiv6210113774yqtfd30976"><br clear="none" class="yiv6210113774gmail_msg">
</div></blockquote></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>