Increasing maximum number of concurrent processes directly increases memory usage?

Jeremy Raymond <>
Thu Apr 8 21:26:28 CEST 2010


That math seems to work out. Interesting that Erlang reserves this
space at startup.

On 4/8/10, Tim Williams <> wrote:
> On Thu, Apr 8, 2010 at 3:03 PM, Jeremy Raymond <> wrote:
>> Hello,
>>
>> If I startup erlang with no arguments (just run erl) it's memory usage as
>> reported by top starts off at around 10 000 bytes. If I start it and
>> increase the maximum number of threads (erl +P 134217727) the memory usage
>> out of the gate is 1.0 gigabytes. Why is this the case?
>
> I'll hazard a guess and say 8 bytes per pid[1] gives you the nearly a
> gig + the environment itself?
>
> --tim
>
> [1] - http://www.erlang.org/doc/efficiency_guide/advanced.html
>

-- 
Sent from my mobile device

Jeremy Raymond


More information about the erlang-questions mailing list