Compression Performance
Cheat sheet · https://pcornel.dk/topic.php?topic=4309
Answer
Compression performance is the CPU cost and speed of compressing and decompressing data. Fast algorithms like LZ4 often increase effective throughput, because less data hits the disk; heavy levels trade speed for ratio.
Remember
- Less data written can mean faster I/O.
- Heavy levels cost CPU and latency.
- Decompression is usually faster than compression.
First checks
top / mpstat 1— CPU during writesfio with/without compression— throughputzfs get compressratio— gain
Verify in this order
data → CPU compression → I/O
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4309