3 ms·
I'm curious what the default memory usage will be with the raising of the default process limit to 1_048_576? I think it's a good move, if nothing else people
by gregors 3y ago
I'm curious what the default memory usage will be with the raising of the default process limit to 1_048_576?
I think it's a good move, if nothing else people who do benchmarks with 1 million processes but don't know those settings are changeable will get further.
- toast0 3y agoI 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