Zram Performance Analysis Introduction Zram is a kernel module that utilizes a compressed virtual memory block device allowing for efficient memory management. In this document we will analyze the performance of various compression algorithms used in Zram and their impact on the system. We will also discuss the effects of different page-cluster values on the system’s latencies and throughput. Compression Algorithm Comparison The following table compares the performance of different compression algorithms used in Zram, in terms of compression time, data size, compressed size, total size, and compression ratio. Data from Linux Reviews: AlgorithmCp timeDataCompressedTotalRatiolzo4.571s1.1G387.8M409.8M2.689lzo-rle4.471s1.1G388M410M2.682lz44.467s1.1G403.4M426.4M2.582lz4hc14.584s1.1G362.8M383.2M2.87284222.574s1.1G538.6M570.5M1.929zstd7.897s1.1G285.3M298.8M3.961 Data from u/VenditatioDelendaEst: algopage-clusterMiB/sIOPSMean Latency (ns)99% Latency (ns)comp_ratiolzo058211490274242874562.77lzo166688535144436119682.77lzo271934603528438211202.77lzo3749623987516426391682.77lzo-rle062641603776223563042.74lzo-rle172709306424045105602.74lzo-rle278325012487710195842.74lzo-rle3824826396314897371202.74lz4079432033515170836002.63lz4196281232494299063042.63lz42107566884305560114562.63lz431143436589310674213762.63zstd026126687155714131203.37zstd1281636053310847249603.37zstd2293118760821073488963.37zstd330059618141343957443.37 Data from my raspberry pi 4, 2gb model: algopage-clusterMiB/sIOPSMean Latency (ns)99% Latency (ns)comp_ratiolzo01275.19326448.939965.1418816.001.62lzo11892.08242186.6814178.7731104.001.62lzo22451.65156905.5223083.5556064.001.62lzo32786.3389162.4642224.49107008.001.62lzo-rle01271.53325511.429997.7220096.001.62lzo-rle11842.69235863.9514627.2334048.001.62lzo-rle22404.35153878.6523592.1960160.001.62lzo-rle32766.6188531.4642579.14114176.001.62lz401329.87340447.839421.3515936.001.59lz412004.43256567.1913238.7825216.001.59lz422687.75172015.9320807.0043264.001.59lz433157....
First seen: 2025-10-23 22:33
Last seen: 2025-10-24 06:34