Hi Chris,<br><br><div class="gmail_quote">On Fri, Oct 19, 2012 at 8:46 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have an image which needed to allocate 500MB of memory for a large<br>
operation.  Now that operation is done and all objects have been<br>
reclaimed.  According to VM I am now only using 200MB.<br>
<br>
  (Smalltalk vmParameterAt: 2) max: (Smalltalk vmParameter at: 1)    &quot;221923374&quot;<br>
<br>
However, when I look at my VM process in &quot;top&quot; or the System Monitor,<br>
it still says its &gt;500MB.<br>
<br>
How does this work?<br></blockquote><div><br></div><div>Depends on the platform.  On Mac OS X memory is not returned. On Windows memory is allocated and freed via VirtualAlloc and VirtualFree.  On Unix memory is allocated and returned via mmap and munmap by default.  What OS are you on?  Looks like the unix code could be ported to the Mac easily.</div>
</div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>