<div dir="ltr">Well, I tested, and it does work as long as you have 2 thread/core:<div><br></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></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></div><div>I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 17 Oct 2016 at 16:05 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_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281" dir="ltr" class="gmail_msg"><span id="m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422377" class="gmail_msg">> You may both want to look at the +sct option for the erl executable: </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_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281" dir="ltr" class="gmail_msg"><span id="m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387" class="gmail_msg">> <a href="http://erlang.org/doc/man/erl.html#+sct" class="gmail_msg" target="_blank">http://erlang.org/doc/man/erl.html#+sct</a> <br class="gmail_msg"><br class="gmail_msg">This is the right answer.</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_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281" dir="ltr" class="gmail_msg"><span id="m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387" class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><span style="font-family:monospace;font-size:13px" id="m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422449" class="gmail_msg">> erl +sbt ts +SP 50:50<br class="gmail_msg"></span><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_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422281" dir="ltr" class="gmail_msg"><span id="m_-3585336844506155975yui_3_16_0_ym19_1_1476216801148_422387" class="gmail_msg">This wont bind to the specific system cores.  It will use all cores the OS allows.</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_-3585336844506155975qtdSeparateBR gmail_msg"><br class="gmail_msg"><br class="gmail_msg"></div><div class="m_-3585336844506155975yahoo_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 9:51 AM, Fred Hebert <<a href="mailto:mononcqc@ferd.ca" class="gmail_msg" target="_blank">mononcqc@ferd.ca</a>> wrote:<br class="gmail_msg"></font></div>  <br class="gmail_msg"><br class="gmail_msg"> <div class="m_-3585336844506155975y_msg_container gmail_msg">On 10/17, Vans S wrote:<br clear="none" class="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="gmail_msg">><br clear="none" class="gmail_msg">>    On Monday, October 17, 2016 9:35 AM, Tan Duong <<a shape="rect" href="mailto:dn.nhattan@gmail.com" class="gmail_msg" target="_blank">dn.nhattan@gmail.com</a>> wrote:<br clear="none" class="gmail_msg">><br clear="none" class="gmail_msg">><br clear="none" class="gmail_msg">> Hi everybody,<br clear="none" class="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 href="http://hyperthreading.is" class="gmail_msg" target="_blank">hyperthreading.is</a> there any mechanism to do so?<br clear="none" class="gmail_msg">>Best Regards,Tan<br clear="none" class="gmail_msg"><br clear="none" class="gmail_msg">You may both want to look at the +sct option for the erl executable: <br clear="none" class="gmail_msg"><a shape="rect" href="http://erlang.org/doc/man/erl.html#+sct" class="gmail_msg" target="_blank">http://erlang.org/doc/man/erl.html#+sct</a><div class="m_-3585336844506155975yqt0274086317 gmail_msg" id="m_-3585336844506155975yqtfd68308"><br clear="none" class="gmail_msg"><br clear="none" class="gmail_msg">Regards,</div><br clear="none" class="gmail_msg">Fred.<div class="m_-3585336844506155975yqt0274086317 gmail_msg" id="m_-3585336844506155975yqtfd46943"><br clear="none" class="gmail_msg"></div><br class="gmail_msg"><br class="gmail_msg"></div>  </div> </div>  </div></div></div>_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg">
</blockquote></div>