<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">All<br/> I was looking for the sources for the purge command that flushes the memory caches . It looks like there is some magic happening here and I can't find it anywhere . <br/><br/>So this stems from a work question about porting some Linux code to FreeBSD that swaps for no good reason . It was mentioned by a developer they ran purge on their Mac to gain back some free ram that was allocated as buff cache . <br/><br/>Mark </td></tr></table> <div id="_origMsg_">
<div>
<br />
<div>
<div style="font-size:0.9em">
<hr size="1">
<b>
<span style="font-weight:bold">From:</span>
</b>
Raśl Cuza <raulcuza@gmail.com>; <br>
<b>
<span style="font-weight:bold">To:</span>
</b>
Jon Chen <nokbar@voltaire.sh>; <br>
<b>
<span style="font-weight:bold">Cc:</span>
</b>
Mark Saad <mark.saad@ymail.com>; NYCBUG Talk <talk@lists.nycbug.org>; <br>
<b>
<span style="font-weight:bold">Subject:</span>
</b>
Re: [nycbug-talk] Source of OSX's purge command <br>
<b>
<span style="font-weight:bold">Sent:</span>
</b>
Tue, Oct 29, 2013 8:37:13 PM <br>
</div>
<br>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top"><div><br clear="none"></div><div class="yqt4420835832" id="yqtfd93367"><div>On Oct 29, 2013, at 14:54, Jon Chen <<a rel="nofollow" shape="rect" ymailto="mailto:nokbar@voltaire.sh" target="_blank" href="javascript:return">nokbar@voltaire.sh</a>> wrote:<br clear="none"><br clear="none"></div></div><blockquote type="cite"><div><div class="yqt4420835832" id="yqtfd48395"><span>On October 29, 2013 at 2:50:18 PM, Raśl Cuza (<a rel="nofollow" shape="rect" ymailto="mailto:raulcuza@gmail.com" target="_blank" href="javascript:return">raulcuza@gmail.com</a>) wrote:</span><br clear="none"><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Oct 29, 2013, at 12:32, Mark Saad wrote:</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><blockquote
type="cite"><span></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>All</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Does anyone know if the sources for osx's purge command /usr/sbin/purge are publicly available ?</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>--</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Mark Saad | <a rel="nofollow" shape="rect" ymailto="mailto:mark.saad@ymail.com" target="_blank"
href="javascript:return">mark.saad@ymail.com</a></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>talk mailing list</span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a rel="nofollow" shape="rect" ymailto="mailto:talk@lists.nycbug.org" target="_blank" href="javascript:return">talk@lists.nycbug.org</a></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a rel="nofollow" shape="rect" target="_blank" href="http://www.nycbug.org/mailman/listinfo/talk">http://www.nycbug.org/mailman/listinfo/talk</a></span><br clear="none"></blockquote></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><span><a
rel="nofollow" shape="rect" target="_blank" href="https://www.opensource.apple.com/source/Heimdal/Heimdal-172.28/admin/purge.c">https://www.opensource.apple.com/source/Heimdal/Heimdal-172.28/admin/purge.c</a></span><br clear="none"></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><span>Is this what you are looking for?</span><br clear="none"></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><span>Sent without help from AI. | ' L ' |</span><br clear="none"></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><span></span><br clear="none"></blockquote><blockquote type="cite"><span>_______________________________________________</span><br clear="none"></blockquote><blockquote type="cite"><span>talk mailing list</span><br clear="none"></blockquote><blockquote type="cite"><span><a
rel="nofollow" shape="rect" ymailto="mailto:talk@lists.nycbug.org" target="_blank" href="javascript:return">talk@lists.nycbug.org</a></span><br clear="none"></blockquote><blockquote type="cite"><span><a rel="nofollow" shape="rect" target="_blank" href="http://www.nycbug.org/mailman/listinfo/talk">http://www.nycbug.org/mailman/listinfo/talk</a> </span><br clear="none"></blockquote><span></span><br clear="none"><span>Nope</span></div><br clear="none"></div></blockquote><br clear="none"><div>Are you looking for the disk cache tool [ <a rel="nofollow" shape="rect" target="_blank" href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/purge.8.html">https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/purge.8.html</a><div class="yqt4420835832" id="yqtfd89585"> ]?</div></div><div class="yqt4420835832" id="yqtfd86731"><div><br clear="none"></div><div><br clear="none"></div></div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>