[erlang-questions] How to setup Erlang to run on physical cores
Mon Oct 17 16:33:16 CEST 2016
Well, I tested, and it does work as long as you have 2 thread/core:
erl +sbt ts +SP 50:50
Erlang/OTP 17 Klarna-g48fc1a0 [erts-184.108.40.206] [source-48fc1a0] [64-bit]
[smp:2:2] [async-threads:10] [kernel-poll:false]
Eshell V220.127.116.11 (abort with ^G)
I have 2 schedulers bound to logical cores 0 & 1, exactly as intended.
On Mon, 17 Oct 2016 at 16:05 Vans S <vans_163@REDACTED> wrote:
> > You may both want to look at the +sct option for the erl executable:
> > http://erlang.org/doc/man/erl.html#+sct
> This is the right answer.
> > erl +sbt ts +SP 50:50
> This wont bind to the specific system cores. It will use all cores the OS
> On Monday, October 17, 2016 9:51 AM, Fred Hebert <mononcqc@REDACTED> wrote:
> On 10/17, Vans S wrote:
> >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.
> > On Monday, October 17, 2016 9:35 AM, Tan Duong <dn.nhattan@REDACTED>
> > Hi everybody,
> >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
> hyperthreading.is there any mechanism to do so?
> >Best Regards,Tan
> You may both want to look at the +sct option for the erl executable:
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions