[erlang-questions] Erlang code loading

Ladislav Lenart <>
Mon Nov 21 13:25:33 CET 2011


Hello.

I think the *code* of the module (and of the huge function) will
be held in the memory (of one Erlang node) twice, once for the
new module version and once for the old.


Ladislav Lenart


On 21.11.2011 12:05, CGS wrote:
> Hi, Max,
>
> Not an expert, but I think the memory is multiplied by the number of threads. Meaning, you start with an initial heap for that thread and add to that the states and other internal variables (repeat
> that for all the threads). At least that I noticed from my codes by now. If I am wrong, I apologize.
>
> Cheers,
> CGS
>
>
>
>
> On 11/21/2011 11:57 AM, Max Bourinov wrote:
>> Hi Erlangers,
>>
>> I am wondering how my Erlang app would behave in this case:
>>
>> I have a lot identical processes (the same module, state of couse is different in each process). The module that I swap many times has a huge function. I want to clarify how much memory it will
>> take? It will take memory for that huge function in each process or only once?
>>
>> I believe it will take memory only once, but I want to make sure.
>>
>> Best regards,
>> Max
>>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions





More information about the erlang-questions mailing list