[linux-mm-cc] 50% Memory fragmentation (ComprDataSize:91324 kB, MemUsedTotal: 165236 kB)

Nitin Gupta nitingupta910 at gmail.com
Sun Jan 17 21:55:10 EST 2010


Hi,

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
soon.

If possible, can you please post these numbers on wiki (i guess,
http://code.google.com/p/compcache/wiki/Fragmentation would be appropriate).

Thanks,
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/linux-mm-cc/attachments/20100118/ab2633d8/attachment.htm 


More information about the linux-mm-cc mailing list