[linux-mm-cc] Memory leak detection tests on compressed cache code

Allan Bezerra allan.bezerra at gmail.com
Wed Nov 8 14:26:43 EST 2006

Hi All,

For those who may be interested, I made some tests to verify the presence
(or not) of memory leak in the cache compression code. For this, I used
latest kmemleak patch sent for LKML by Catalin Marinas:

I tested this as: (like gupta tests)
RAM: 128MB
ccache for anon pages - size: 5MB (1280 pages)
ccache for page cache pages - size: 10MB (2560 pages)

Launched openoffice-writer, gimp, firefox, kate, konsole. Closed
these, re-opened, open some web-pages, some file in writer,
close all, open all again.

Test showed that ***no memory leaks*** was found in compressed cache code.


* Set compressed cache size (in unit of no. of
pages) for anonymous(swap-cache) and
filesystem-backed(page-cache) pages respectively.

* To display the possible memory leaks:

mount -t debugfs nodev /sys/kernel/debug
cat /sys/kernel/debug/memleak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.laptop.org/pipermail/linux-mm-cc/attachments/20061108/3cbca1b2/attachment.html

More information about the linux-mm-cc mailing list