<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
One instance per process, one memory allocation per process (even if
it is the same code running). Erlang has no explicit knowledge of
beam shared objects as far as I know. If somebody knows differently,
please, correct me.<br>
<br>
CGS<br>
<br>
<br>
<br>
<br>
On 11/21/2011 12:40 PM, Max Bourinov wrote:
<blockquote cite="mid:-4722614683298568739@unknownmsgid" type="cite">
<div>Thank you for your reply! But in Erlang processes, not
threads. There are some differences between them...</div>
<div><br>
</div>
<div><br>
<br>
Отправлено с iPhone</div>
<div><br>
21.11.2011, в 15:05, CGS <<a moz-do-not-send="true"
href="mailto:cgsmcmlxxv@gmail.com">cgsmcmlxxv@gmail.com</a>>
написал(а):<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=KOI8-R"
http-equiv="Content-Type">
Hi, Max,<br>
<br>
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.<br>
<br>
Cheers,<br>
CGS<br>
<br>
<br>
<br>
<br>
On 11/21/2011 11:57 AM, Max Bourinov wrote:
<blockquote
cite="mid:CANsaZAhWVOx4sd3Ny-7GTb9+V1yQ40RecBHKTBfuVp1kZ6qEeQ@mail.gmail.com"
type="cite">Hi Erlangers,
<div><br>
</div>
<div>I am wondering how my Erlang app would behave in this
case:</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>I believe it will take memory only once, but I want to
make sure.</div>
<div><br clear="all">
<div>Best regards,</div>
<div>Max</div>
<br>
<br>
</div>
<pre><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
erlang-questions mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>erlang-questions mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br>
<span><a moz-do-not-send="true"
href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br>
</div>
</blockquote>
</blockquote>
<br>
</body>
</html>