Hi,<br><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 12:45 AM, John McCabe-Dansted <span dir="ltr">&lt;<a href="mailto:gmatht@gmail.com">gmatht@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi, I am using swap_notify now. However I have noticed that although the ComprDataSize shrinks as swap is freed, the MemUsedTotal stays relatively high. Presumably this is caused by the swap being freed from effectively random locations in memory, meaning that most of the allocated pages cannot be freed.</div>


<div><br></div><div>Does this suggest that defragmenting the memory allocated by comp-cache may be worthwhile in some circumstances? </div><div><br></div></blockquote><div><br>With swap notify, fragmentation is going to be a major problem as we now free memory much more frequently.<br>
Defrag support for comcpache has been on my todo list since a long time but never found any data to warrant its immediate need. However, as your data shows, defrag is now really important and I hope to start working on it soon.<br>
<br>If possible, can you please post these numbers on wiki (i guess, <a href="http://code.google.com/p/compcache/wiki/Fragmentation">http://code.google.com/p/compcache/wiki/Fragmentation</a> would be appropriate).<br><br>
Thanks,<br>Nitin<br><br></div></div><br>