<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello,</div><div><br>On 7 sep 2015, at 03:23, Theepan <<a href="mailto:vasdeveloper@gmail.com">vasdeveloper@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Lukas,<div><br></div><div>I presume that erts_alloc is a control layer on top of malloc/calloc/realloc or their variants to handle different types of allocations. The question is, if a limit is set -- of course, with very clear knowledge of what is being done -- can we expect relevant exception/error from the LIB/STDLIB/BIF functions?</div></div></div></blockquote><div><br></div>From some, but far from all. When you run out of memory it is almost always a catastrophic failure resulting in an erlang vm crash.<div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Theepan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 3:15 AM, Lukas Larsson <span dir="ltr"><<a href="mailto:lukas@erlang-solutions.com" target="_blank">lukas@erlang-solutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Akash,<div><br></div><div><div class="gmail_extra"><div class="gmail_quote"><span class="">On Sat, Sep 5, 2015 at 1:53 AM, Akash Chowdhury <span dir="ltr"><<a href="mailto:achowdhury918@gmail.com" target="_blank">achowdhury918@gmail.com</a>></span> wrote:<br></span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><p style="line-height:20.8267px;margin:0px 0px 1.35em;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)"><span style="font-size:11pt;line-height:20.8267px">b)<span style="line-height:normal;font-stretch:normal;font-size:7pt;font-family:'Times New Roman'">      </span></span><span style="font-size:11pt;line-height:20.8267px;background-image:initial;background-repeat:initial">for maximum amount of data allocated by an Erlang node</span></p></div></blockquote></span><div>Yes it is possible since at least 17.0 to limit the amount of memory the VM uses on OSs with a good virtual memory management interface. You need to supply two memory allocator flags in combination: +MMscs <Limit in MB> +Musac false. You can read up on what they do in the erts_alloc manual.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Lukas</div></font></span></div></div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div></body></html>