<div dir="ltr">Yes, I don't use the hyperthreaded CPUs. But that was the point of the original question: how to disable hyperthreading for Erlang?<div>If you want better control over which cores to use, you need to use +sct, I agree.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 17 Oct 2016 at 16:38 Vans S <<a href="mailto:vans_163@yahoo.com">vans_163@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" class="gmail_msg"><div id="m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445233" dir="ltr" class="gmail_msg"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445245" class="gmail_msg">> I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.<br class="gmail_msg"></span></div></div></div><div class="gmail_msg"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" class="gmail_msg"><div id="m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445233" dir="ltr" class="gmail_msg"><span id="m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445290" class="gmail_msg"><br class="gmail_msg">Now bind them to cpus 1 and 3.<br class="gmail_msg"><br class="gmail_msg">You got bound to 0 and 1 by default.  Also erlang is not using the hyperthreaded cpus you have available.  </span></div></div></div><div class="gmail_msg"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" class="gmail_msg"> <div class="m_2633502419529269671qtdSeparateBR gmail_msg"><br class="gmail_msg"><br class="gmail_msg"></div><div class="m_2633502419529269671yahoo_quoted gmail_msg" style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" class="gmail_msg"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" class="gmail_msg"> <div dir="ltr" class="gmail_msg"><font size="2" face="Arial" class="gmail_msg"> On Monday, October 17, 2016 10:33 AM, Dániel Szoboszlay <<a href="mailto:dszoboszlay@gmail.com" class="gmail_msg" target="_blank">dszoboszlay@gmail.com</a>> wrote:<br class="gmail_msg"></font></div>  <br class="gmail_msg"><br class="gmail_msg"> <div class="m_2633502419529269671y_msg_container gmail_msg"><div id="m_2633502419529269671yiv6210113774" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg">Well, I tested, and it does work as long as you have 2 thread/core:<div class="gmail_msg"><br clear="none" class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><font face="monospace" class="gmail_msg">erl +sbt ts +SP 50:50</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">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 class="gmail_msg"><font face="monospace" class="gmail_msg"><br clear="none" class="gmail_msg"></font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">Eshell V6.4.1.5  (abort with ^G)</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">1> erlang:system_info(cpu_topology).</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">[{processor,[{core,[{thread,{logical,0}},</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">                    {thread,{logical,2}}]},</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">             {core,[{thread,{logical,1}},{thread,{logical,3}}]}]}]</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">2> erlang:system_info(scheduler_bindings).</font></div><div class="gmail_msg"><font face="monospace" class="gmail_msg">{0,1}</font></div></div><div class="gmail_msg"><br clear="none" class="gmail_msg"></div><div class="gmail_msg">I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.</div></div><br clear="none" class="gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_quote gmail_msg"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd35414"><div dir="ltr" class="gmail_msg">On Mon, 17 Oct 2016 at 16:05 Vans S <<a rel="nofollow" shape="rect" href="mailto:vans_163@yahoo.com" class="gmail_msg" target="_blank">vans_163@yahoo.com</a>> wrote:<br clear="none" class="gmail_msg"></div></div><blockquote class="m_2633502419529269671yiv6210113774gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd24606"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" dir="ltr" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-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="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" dir="ltr" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387">> <a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="http://erlang.org/doc/man/erl.html#+sct" target="_blank">http://erlang.org/doc/man/erl.html#+sct</a> <br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">This is the right answer.</span></div></div></div><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" dir="ltr" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><span class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-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="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></span><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></span></div></div></div><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" dir="ltr" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-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="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd90124"> <div class="m_2633502419529269671yiv6210113774m_-3585336844506155975qtdSeparateBR m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></div></div><div class="m_2633502419529269671yiv6210113774m_-3585336844506155975yahoo_quoted m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="display:block"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd42698"> </div><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd84505"> </div><div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd92051"> <div class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" dir="ltr"><font class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" size="2" face="Arial"> On Monday, October 17, 2016 9:51 AM, Fred Hebert <<a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="mailto:mononcqc@ferd.ca" target="_blank">mononcqc@ferd.ca</a>> wrote:<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></font></div>  <br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"> </div><div class="m_2633502419529269671yiv6210113774m_-3585336844506155975y_msg_container m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd65241">On 10/17, Vans S wrote:<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_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="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">>    On Monday, October 17, 2016 9:35 AM, Tan Duong <<a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="mailto:dn.nhattan@gmail.com" target="_blank">dn.nhattan@gmail.com</a>> wrote:<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">> Hi everybody,<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_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="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="http://hyperthreading.is/" target="_blank">hyperthreading.is</a> there any mechanism to do so?<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">>Best Regards,Tan<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">You may both want to look at the +sct option for the erl executable: <br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="http://erlang.org/doc/man/erl.html#+sct" target="_blank">http://erlang.org/doc/man/erl.html#+sct</a><div class="m_2633502419529269671yiv6210113774m_-3585336844506155975yqt0274086317 m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yqtfd68308"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">Regards,</div><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">Fred.</div><div class="m_2633502419529269671yiv6210113774m_-3585336844506155975yqt0274086317 m_2633502419529269671yiv6210113774gmail_msg gmail_msg" id="m_2633502419529269671yiv6210113774m_-3585336844506155975yqtfd46943"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></div><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg"></div>  </div> </div>  </div></div></div>_______________________________________________<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">
erlang-questions mailing list<br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">
<a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">
<a rel="nofollow" shape="rect" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><div class="m_2633502419529269671yiv6210113774yqt2057666233 gmail_msg" id="m_2633502419529269671yiv6210113774yqtfd30976"><br clear="none" class="m_2633502419529269671yiv6210113774gmail_msg gmail_msg">
</div></blockquote></div></div></div><br class="gmail_msg"><br class="gmail_msg"></div>  </div> </div>  </div></div></div></blockquote></div>