ponylang / ponyc

Pony is an open-source, actor-model, capabilities-secure, high performance programming language
http://www.ponylang.io
BSD 2-Clause "Simplified" License
5.68k stars 410 forks source link

It is possible to tune the number of polling threads using the +IOt and +IOPt options? #2218

Closed huangyezuojia closed 7 years ago

huangyezuojia commented 7 years ago

at the github url: https://github.com/erlang/otp/pull/1552

I see that the erlang actor model will have many polling threads ,

some quote text: "It is possible to tune the number of polling threads using the +IOt and +IOPt options. e.g. +IOt 2 will start 2 polling threads, +IOPt 50 will start 50% as many polling threads as there are schedulers."

maybe ponylang need to add this, improve performance?

SeanTAllen commented 7 years ago

@huangyezuojia we had done fairly heavy performance usage of Pony at Sendence (soon to be Wallaroo Labs) and haven't ever stressed the async io background thread at all. While its possible in theory this might some day be needed in the end, Erlang and Pony have rather different runtimes so it might never be needed.

I'm closing this now as there is no demonstrated bottleneck around the async-io thread.