<div dir="ltr">Thanks Robby<div><br></div><div>Can the limit be imposed programmatically, for use from the command-line?</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 Fri, Feb 14, 2014 at 9:13 AM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</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">current-memory-use is counting all of DrRacket's memory and the user program memory. The limit, however, includes only the user program's memory.<div><br></div><div>Robby</div></div><div class="gmail_extra">


<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 13, 2014 at 4:05 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>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<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 <a href="tel:25687%2F31250" value="+12568731250" target="_blank">25687/31250</a></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><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><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>
</div></div><br></div></div>____________________<br>
  Racket Users list:<br>
  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></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>