4 ms·
I don't think there's a significant cost to raising the limit. If you actually run 1M processes, that'll use some memory, of course. The Erlang Efficiency Guide
by toast0 3y ago
I don't think there's a significant cost to raising the limit. If you actually run 1M processes, that'll use some memory, of course. The Erlang Efficiency Guide [1] says a process uses 338 words when spawned, which is 2704 bytes on 64-bit machines. It's certainly possible some per process overhead was missed in this accounting, I did not measure to know for sure; and also I think the published guide is from OTP 26.
[1] https://www.erlang.org/doc/efficiency_guide/advanced#memory https://www.erlang.org/doc/efficiency_guide/advanced#memory