-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch allow zcache to use the crypto API for page compression. It replaces the direct LZO compress/decompress calls with calls into the crypto compression API. The compressor to be used is specified in the kernel boot line with the zcache parameter like: zcache=lzo or zcache=deflate. If the specified compressor can't be loaded, zcache uses lzo as the default compressor. Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com> Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Seth Jennings
authored and
Greg Kroah-Hartman
committed
Feb 9, 2012
1 parent
af9584b
commit 17dd9f8
Showing
2 changed files
with
126 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
config ZCACHE | ||
tristate "Dynamic compression of swap pages and clean pagecache pages" | ||
depends on CLEANCACHE || FRONTSWAP | ||
depends on (CLEANCACHE || FRONTSWAP) && CRYPTO | ||
select XVMALLOC | ||
select LZO_COMPRESS | ||
select LZO_DECOMPRESS | ||
select CRYPTO_LZO | ||
default n | ||
help | ||
Zcache doubles RAM efficiency while providing a significant | ||
performance boosts on many workloads. Zcache uses lzo1x | ||
performance boosts on many workloads. Zcache uses | ||
compression and an in-kernel implementation of transcendent | ||
memory to store clean page cache pages and swap in RAM, | ||
providing a noticeable reduction in disk I/O. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters