Re:How much memory is needed to run 1M Erlang processes?
by mikece on Saturday June 10, 2023 @04:10PM
(#36274570)
Less that 1 GB... that's impressive! Now I'm wondering how much memory Go or Java would require.
[ Parent
| on HN ]
Re:How much memory is needed to run 1M Erlang processes?
by justinclift on Sunday June 11, 2023 @09:57AM
(#36281415)
Heh Heh Heh, now do Python... ;)
Re:How much memory is needed to run 1M Erlang processes?
by hauleth on Sunday June 11, 2023 @11:45AM
(#36282458)
It is in the original article [1], though I was made aware that Go implementation is also incorrect as `defer` in it make the memory usage to substantially raise. So instead of:
defer wg.Done()
time.Sleep(10 * time.Second)
In original article it should be: time.Sleep(10 * time.Second)
wg.Done()
And memory usage will drop about 2x. I am no Go nor Java developer so I cannot say anything more.[1]: https://pkolaczk.github.io/memory-consumption-of-async/