[linux-mm-cc] 50% Memory fragmentation (ComprDataSize:91324 kB, MemUsedTotal: 165236 kB)
nitingupta910 at gmail.com
Sun Jan 17 21:55:10 EST 2010
On Mon, Jan 18, 2010 at 12:45 AM, John McCabe-Dansted <gmatht at gmail.com>wrote:
> 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.
> Does this suggest that defragmenting the memory allocated by comp-cache may
> be worthwhile in some circumstances?
With swap notify, fragmentation is going to be a major problem as we now
free memory much more frequently.
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
If possible, can you please post these numbers on wiki (i guess,
http://code.google.com/p/compcache/wiki/Fragmentation would be appropriate).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-mm-cc