<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_455457"><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_455465">> Yes, I don't use the hyperthreaded CPUs. But that was the point of the original question: how to disable hyperthreading for Erlang?</span></div><div style="font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px;" dir="ltr" id="yui_3_16_0_ym19_1_1476216801148_455466">> If you want better control over which cores to use, you need to use +sct, I agree.<br><br>Your right my mistake. I misread the initial question thinking it said "how to choose the physical cores erlang runs on and to not run it on hyperthreaded cores".</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:55 AM, Dániel Szoboszlay <dszoboszlay@gmail.com> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv3336908627"><div><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 clear="none"><div class="yiv3336908627yqt9825790192" id="yiv3336908627yqt03013"><div class="yiv3336908627gmail_quote"><div dir="ltr">On Mon, 17 Oct 2016 at 16:38 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><blockquote class="yiv3336908627gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445233"><span class="yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445245" style="">> I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.<br clear="none" class="yiv3336908627gmail_msg"></span></div></div></div><div class="yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445233"><span class="yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yui_3_16_0_ym19_1_1476216801148_445290"><br clear="none" class="yiv3336908627gmail_msg">Now bind them to cpus 1 and 3.<br clear="none" class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_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="yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv3336908627m_2633502419529269671qtdSeparateBR yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"></div><div class="yiv3336908627m_2633502419529269671yahoo_quoted yiv3336908627gmail_msg" style="display:block;"> <div class="yiv3336908627gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv3336908627gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv3336908627gmail_msg" dir="ltr"><font class="yiv3336908627gmail_msg" size="2" face="Arial"> On Monday, October 17, 2016 10:33 AM, Dániel Szoboszlay <<a rel="nofollow" shape="rect" class="yiv3336908627gmail_msg" ymailto="mailto:dszoboszlay@gmail.com" target="_blank" href="mailto:dszoboszlay@gmail.com">dszoboszlay@gmail.com</a>> wrote:<br clear="none" class="yiv3336908627gmail_msg"></font></div> <br clear="none" class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"> <div class="yiv3336908627m_2633502419529269671y_msg_container yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774"><div class="yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg" dir="ltr">Well, I tested, and it does work as long as you have 2 thread/core:<div class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"></div><div class="yiv3336908627gmail_msg"><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">erl +sbt ts +SP 50:50</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" 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 class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace"><br clear="none" class="yiv3336908627gmail_msg"></font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">Eshell V6.4.1.5 (abort with ^G)</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">1> erlang:system_info(cpu_topology).</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">[{processor,[{core,[{thread,{logical,0}},</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace"> {thread,{logical,2}}]},</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace"> {core,[{thread,{logical,1}},{thread,{logical,3}}]}]}]</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">2> erlang:system_info(scheduler_bindings).</font></div><div class="yiv3336908627gmail_msg"><font class="yiv3336908627gmail_msg" face="monospace">{0,1}</font></div></div><div class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"></div><div class="yiv3336908627gmail_msg">I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.</div></div><br clear="none" class="yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_quote yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd35414"><div class="yiv3336908627gmail_msg" dir="ltr">On Mon, 17 Oct 2016 at 16:05 Vans S <<a rel="nofollow" shape="rect" class="yiv3336908627gmail_msg" ymailto="mailto:vans_163@yahoo.com" target="_blank" href="mailto:vans_163@yahoo.com">vans_163@yahoo.com</a>> wrote:<br clear="none" class="yiv3336908627gmail_msg"></div></div><blockquote class="yiv3336908627m_2633502419529269671yiv6210113774gmail_quote yiv3336908627gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd24606"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387">> <a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">This is the right answer.</span></div></div></div><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><span class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></span><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></span></div></div></div><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" dir="ltr" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281"><span class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd90124"> <div class="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975qtdSeparateBR yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></div></div><div class="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yahoo_quoted yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="display:block;"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd42698"> </div><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd84505"> </div><div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd92051"> <div class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" dir="ltr"><font class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" size="2" face="Arial"> On Monday, October 17, 2016 9:51 AM, Fred Hebert <<a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" ymailto="mailto:mononcqc@ferd.ca" target="_blank" href="mailto:mononcqc@ferd.ca">mononcqc@ferd.ca</a>> wrote:<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></font></div> <br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"> </div><div class="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975y_msg_container yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd65241">On 10/17, Vans S wrote:<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">> On Monday, October 17, 2016 9:35 AM, Tan Duong <<a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">> Hi everybody,<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_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="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" target="_blank" href="http://hyperthreading.is/">hyperthreading.is</a> there any mechanism to do so?<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">>Best Regards,Tan<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">You may both want to look at the +sct option for the erl executable: <br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" target="_blank" href="http://erlang.org/doc/man/erl.html#+sct">http://erlang.org/doc/man/erl.html#+sct</a><div class="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yqt0274086317 yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yqtfd68308"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">Regards,</div><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">Fred.</div><div class="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yqt0274086317 yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774m_-3585336844506155975yqtfd46943"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></div><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg"></div> </div> </div> </div></div></div>_______________________________________________<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">
erlang-questions mailing list<br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">
<a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" ymailto="mailto:erlang-questions@erlang.org" target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">
<a rel="nofollow" shape="rect" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg" target="_blank" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><div class="yiv3336908627m_2633502419529269671yiv6210113774yqt2057666233 yiv3336908627gmail_msg" id="yiv3336908627m_2633502419529269671yiv6210113774yqtfd30976"><br clear="none" class="yiv3336908627m_2633502419529269671yiv6210113774gmail_msg yiv3336908627gmail_msg">
</div></blockquote></div></div></div><br clear="none" class="yiv3336908627gmail_msg"><br clear="none" class="yiv3336908627gmail_msg"></div> </div> </div> </div></div></div></blockquote></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>