<div>Hi Nitin and all,<br><br>I tested alpha-005 on a ARM based arch and it didn't crash. The tests had been similar to Nitin use case.<br><br>* I tested this as:<br>RAM: 64MB<br>ccache for anon pages - size: 2.5MB (640 pages)
<br>
ccache for page cache pages - size: 5MB (1280 pages)<br><br>I'll do more tests and will send the results to list soon.<br><br>Regards,<br></div><div><span class="sg"><br>Allan Bezerra</span></div><br><br><div><span class="gmail_quote">
On 9/5/06, <b class="gmail_sendername">Nitin Gupta</b> <<a href="mailto:nitingupta.mail@gmail.com">nitingupta.mail@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
------------<br>Project: Compressed Caching for Linux (2.6.x kernels)<br>Git (web): <a href="http://dev.laptop.org/git.do?p=projects/linux-mm-cc">http://dev.laptop.org/git.do?p=projects/linux-mm-cc</a><br>Git (git): git://dev.laptop.org/projects/linux-mm-cc
<br>Home Page: <a href="http://linuxcompressed.sourceforge.net">http://linuxcompressed.sourceforge.net</a><br>------------<br><br><br>Hi all!<br><br>This release brings a Major new addition to compressed caching<br>feature (kernel 
2.6.18-rc6) -- Now, both page-cache (clean &<br>dirty) pages and swap-cache pages are compressed!<br><br>Also fixed a lot of other bugs!<br><br><br>* Usage:<br>It creates two /proc entries:<br>/proc/sys/vm/{max_anon_cc_size,max_fs_backed_cc_size}
<br><br>Use these to set compressed cache size (in unit of no. of<br>pages) for anonymous(swap-cache) and<br>filesystem-backed(page-cache) pages respectively.<br><br><br>* I tested this as:<br>RAM: 128MB<br>ccache for anon pages - size: 5MB (1280 pages)
<br>ccache for page cache pages - size: 10MB (2560 pages)<br><br>Launched openoffice-writer, gimp, firefox, kate, konsole. Closed<br>these, re-opened, open some web-pages, some file in writer,<br>close all, open all again --- it didn't crash on _my_ system.
<br>(Focusing on correctness for now!)<br><br>If you test it and find _any_ problems, please mail me or on<br>mailing list. Thanks!<br><br><br>* NOTES<br>-- page-cache and swap-cache compression can be separately<br>turned on. So, you can do separate tests for these by keeping
<br>other to 0 size.<br><br>-- Page-cache pages that could now be added to ccache are let<br>goto disks (or simply freed for clean pages).<br><br>-- Pages are cyclically compressed using WKdm, WK4x4 and LZO.<br>You can easily change this behavior by changing single line in
<br>guess_algo() in mm/ccache.c (see function comments).<br><br>-- You can further filter (like allowing only dirty page<br>cache pages) which pages are compressed by simply adding<br>criteria in should_add_to_ccache() in mm/ccache.c
<br><br><br>* TODO<br>-- Export statistics like current anon and file-system backed<br>ccache sizes (_whatever_ statistics are required to get useful<br>benchmark figures).<br><br>-- Analyze more properly conditions of _very_ low memory
<br>conditions like what happens if OOM killer kills a process<br>whose pages are being compressed!<br><br>-- Write in detail what exactly remains, present problems: also<br>list requirements for long term goals like dynamic ccache
<br>resizing support.<br><br>-- Code cleanups: like use proper log level for info/warning or<br>debug messages. Don't use pr_info() throughout.<br><br><br>If you test it please mail me the results! Thanks!<br><br><br>* Patch (for kernel 
2.6.18-rc6):<br><a href="http://prdownloads.sourceforge.net/linuxcompressed/patch-ccache-">http://prdownloads.sourceforge.net/linuxcompressed/patch-ccache-</a><br>alpha-005-2.6.18-rc6?download<br><br><br>Cheers,<br>Nitin<br>
_______________________________________________<br>linux-mm-cc mailing list<br><a href="mailto:linux-mm-cc@laptop.org">linux-mm-cc@laptop.org</a><br><a href="http://mailman.laptop.org/mailman/listinfo/linux-mm-cc">http://mailman.laptop.org/mailman/listinfo/linux-mm-cc
</a><br></blockquote></div><br>