<div dir="ltr">If you don't mind binding the schedulers to logical cores, I think the quickest solution is:<div><br></div><div><font face="monospace">erl +sbt ts +SP 50:50</font><br></div><div><br></div><div>This will tell Erlang to lay out schedulers by first binding to the first logical CPU in each core, then the second and so on. ThenĀ +SP tells to only use 50% of the available logical CPU-s (e.g. 1 hyper thread per core).</div><div><br></div><div>You can avoid the scheduler binding and/or better deal with NUMA architectures by passing in a custom CpuTopology that reveals only 1 hyper thread/core for Erlang. This can be done with theĀ <font face="monospace">+sct</font> command line flag, but the syntax for CpuTopologies is a bit complex.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 17 Oct 2016 at 15:35 Tan Duong <<a href="mailto:dn.nhattan@gmail.com">dn.nhattan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi everybody,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I recently get to experiment an Erlang program.</div><div class="gmail_msg">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)</div><div class="gmail_msg">However, I just want to experiment the program on physical cores only (n cores), not with hyperthreading.</div><div class="gmail_msg">is there any mechanism to do so?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Best Regards,</div><div class="gmail_msg">Tan</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>