Update of /cvsroot/linuxcompressed/linux/arch/i386
In directory usw-pr-cvs1:/tmp/cvs-serv13268/arch/i386
Modified Files:
config.in
Log Message:
Feature
o Implemented support for resizing the compressed cache on demand. The
user defines the maximum compressed cache size and compressed cache
will grow up to this size if necessary. Only then it will start
swapping out fragments. And when the compressed cache entries start to
get empty, their pages will be released to the system, decreasing
compressed cache size. Still have to solve some issues about resizing
vswap.
o Changed most of the calls from comp_cache_free_locked() to
comp_cache_free(), in order to release the page if necessary. Only
calls from writeout functions were not changed since we don't want to
use those pages to shrink the compressed cache.
Bug fixes
o Fixed potential oops in comp_cache_use_address(). If the ptes cannot
be set to the new address, we would access a null variable (fragment).
o Fixed bug in swap in process for virtual swap addresses. While
allocating a new page, that virtual swap address might get unused (it
gained a real address or vswap table got shrunk), what could lead to a
BUG() in comp_cache_swp_duplicate().
Other
o Some comments added to functions in adaptivity.c
o Updated Configure.help for CONFIG_COMP_CACHE
Index: config.in
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/arch/i386/config.in,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** config.in 20 Jun 2002 14:28:49 -0000 1.18
--- config.in 25 Jun 2002 14:34:07 -0000 1.19
***************
*** 211,214 ****
--- 211,215 ----
if [ "$CONFIG_COMP_CACHE" = "y" ]; then
bool ' Support for Page Cache compression' CONFIG_COMP_PAGE_CACHE
+ bool ' Resize Compressed Cache On Demand' CONFIG_COMP_DEMAND_RESIZE
fi
fi
|