<div dir="ltr">Apropos:<div><br></div><div>I was wondering why I couldn't limit memory in a Racket program directly -- for running from the command-line -- as distinct from in Dr Racket, but the following transcript shed doubts on Dr Racket:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>Welcome to DrRacket, version 5.3.6 [3m].</div></div><div><div>Language: racket; memory limit: <b>256 MB</b>.</div></div><div><div><br>
</div></div><div><div>> (/ (current-memory-use) (expt 10 6))</div></div><div><div>900 52839/125000</div></div><div><div><br></div></div><div><div>> (collect-garbage)</div></div><div><div>> (/ (current-memory-use) (expt 10 6))</div>
</div><div><div>660 25687/31250</div></div></blockquote><div><br></div><div>[Replicated in 5.91.]</div><div><br></div><div>Does (current-memory-use) include overhead for e.g. the DrRacket runtime?</div><div><br></div><div>
<br></div><div>Thanks</div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 7:13 PM, Daniel Prager <span dir="ltr"><<a href="mailto:daniel.a.prager@gmail.com" target="_blank">daniel.a.prager@gmail.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">Is there a good reference to measure and understand Racket memory use?<div><br></div><div>I'm doing a run of scribble and memory use is peaking at over 1 Gb. </div>
<div><br></div><div>I expect that I will be able to make modifications to limit use if I can get some informative measurements.</div>
<div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Dan</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div dir="ltr"><div style="font-family:arial;font-size:small"><b>Daniel Prager</b></div>
<div style="font-family:arial;font-size:small">
Agile/Lean Coaching, Software Development and Leadership<br></div><div style="font-family:arial;font-size:small"><font color="#999999">Startup: </font><font color="#000000"><a href="http://www.youpatch.com" target="_blank">www.youpatch.com</a></font></div>
<div style="font-family:arial;font-size:small"><font color="#999999">Twitter:</font> <a href="https://twitter.com/agilejitsu" style="color:rgb(17,85,204)" target="_blank">@agilejitsu</a> </div><div style="font-family:arial;font-size:small">
<font color="#999999">Blog:</font> <a href="http://agile-jitsu.blogspot.com/" style="color:rgb(17,85,204)" target="_blank">agile-jitsu.blogspot.com</a></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="font-family:arial;font-size:small"><b>Daniel Prager</b></div><div style="font-family:arial;font-size:small">Agile/Lean Coaching, Software Development and Leadership<br>
</div><div style="font-family:arial;font-size:small"><font color="#999999">Startup: </font><font color="#000000"><a href="http://www.youpatch.com" target="_blank">www.youpatch.com</a></font></div><div style="font-family:arial;font-size:small">
<font color="#999999">Twitter:</font> <a href="https://twitter.com/agilejitsu" style="color:rgb(17,85,204)" target="_blank">@agilejitsu</a> </div><div style="font-family:arial;font-size:small"><font color="#999999">Blog:</font> <a href="http://agile-jitsu.blogspot.com/" style="color:rgb(17,85,204)" target="_blank">agile-jitsu.blogspot.com</a></div>
</div>
</div>