Linux Zcache Now Handles Crypto Compression

Written by Michael Larabel in Linux Kernel on 2 January 2012 at 10:26 AM EST. 14 Comments
LINUX KERNEL
Seth Jennings of IBM has provided a patch for the next Linux kernel that removes the LZO-specific compression bits inside zcache and instead hooks this compressed page cache into the generic Crypto compression API.

This new patch, which could be merged into the Linux 3.3 kernel, lets zcache use the generic Crypto compression API and from there any compressor can be selected for zcache via a kernel module parameter. Zcache allows for dynamic compression of swap pages and clean pagecache pages. Zcache is one of the users of the recently-merged Linux kernel CleanCache. Zcache is currently living in the Linux kernel staging area after its 2010 introduction.

For those not familiar with Zcache, the kernel configuration describes it as "[doubling] RAM efficiency while providing significant performance boosts on many workloads. Zcache uses compression and an in-kernel implementation of transcendent memory to storage clean page cache pages and swap in RAM, providing a noticeable reduction in disk I/O."

For those not opting for a different Crypto compressor, LZO remain the default means of page compression.

More details in this kernel mailing list announcement.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week