Hi,<div><br></div><div>You can also strip the executables and erlang beams (beam_lib:strip*).</div><div><br></div><div><div>-rwxr-xr-x 1 tdx tdx 1942300 2011-12-15 13:29 beam*</div><div>-rwxr-xr-x 1 tdx tdx 2134876 2011-12-15 13:29 beam.smp*</div>
<div><br></div><div><br></div><div>Andrew Gopienko<br><br><div class="gmail_quote">2011/12/14 dmitry kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com">dmkolesnikov@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>I have not yet spent too much time to investigate how to build 2MB self-sustainable package but systools gives me about 14MB with possible reduction to 7 - 9MB on debian 64bit.</div><div><br></div><div>

as an example *.rel package contains following libraries:</div><div><div>{kernel, "2.14.5"},</div><div>{stdlib, "1.17.5"},</div><div>{sasl,   "2.1.10"},</div><div>{crypto, "2.0.4"},</div>

<div>{public_key, "0.13"},</div><div>{ssl,    "4.1.6"},</div><div>{inets,  "5.7.1"},</div><div>{compiler, "4.7.5"},</div><div>{syntax_tools, "1.6.7.1"},</div><div>{xmerl,    "1.2.10"},</div>

<div>{mochiweb, "2.3.0"}</div></div><div>...</div><div><br></div><div>systools:make_tar($$n, [{erts, code:root_dir()}]) %% do not put any extra dirs here </div><div><br></div><div>most heavy components are VM by itself </div>

<div><div>-rwxr-xr-x   1 kolesnik  wheel   7.7M Oct 19 20:53 beam</div><div>-rwxr-xr-x   1 kolesnik  wheel   9.6M Oct 19 20:53 beam.smp</div></div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div>
<span class="HOEnZb"><font color="#888888">- Dmitry</font></span><div><div class="h5"><br></div></div></div></blockquote></div></div></div>