zswap
Zswap is a Linux kernel feature that provides a compressed swap cache in RAM. It sits between the memory manager and the swap subsystem, intercepting writes to swap and storing the resulting pages in a RAM-based pool in compressed form. The intended benefit is to reduce I/O to slow swap devices and to speed up swap-in and swap-out on systems with limited RAM or slow storage.
Operation: When a page is evicted from RAM to swap, zswap compresses the page and stores it
Configuration and behavior: Zswap is tunable at runtime via sysfs, allowing enabling or disabling and selecting
Performance and limitations: In systems with slow storage or high swap activity, zswap can improve responsiveness
History and scope: Zswap was introduced to provide a compressed swap cache and has matured across kernel