OPPO Kernel Craftsman
Feb 21, 2020 · Fundamentals
Overview of Linux Memory Compression Technologies: zSwap, zRAM, and zCache
Linux reduces RAM pressure through three main compression mechanisms—zSwap, which caches compressed pages before writing to swap; zRAM, a RAM‑backed compressed block device; and zCache, a file‑page compressor—each paired with specialized allocators (zsmalloc, zbud, z3fold) and configurable algorithms, offering trade‑offs in speed, ratio, CPU load, and fragmentation.
KernelLinuxMemory Compression
0 likes · 12 min read