Pcornel
Storage · Compression

Compression Performance

Cheat sheet · https://pcornel.dk/topic.php?topic=4309

Back to the Topic

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 writes
  • fio with/without compression — throughput
  • zfs 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

Confirmation

Confirm action

Continue?