Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Compression Performance

Direct 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.

When to use this

Use this when compression may slow or speed up storage I/O.

First 30 seconds

1. Compression can raise throughput (less I/O) or limit it (CPU).

2. Measure with real data.

3. High levels slow writes.

4. Decompression usually fast.

5. Watch CPU on storage nodes.

Operational verification

data → CPU compression → I/O

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse this when compression may slow or speed up storage I/O.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Testing with incompressible data.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Less data written can mean faster I/O.
  • Heavy levels cost CPU and latency.
  • Decompression is usually faster than compression.
Key checks
  • top / mpstat 1 — CPU during writes
  • fio with/without compression — throughput
  • zfs get compressratio — gain
ReferenceHow it works1 section · depth on demand

Reference

AlgorithmCompress speed (approx.)
LZ4500+ MB/s per core
ZSTD-1~400 MB/s
ZSTD-19Few MB/s
GZIP-6~50 MB/s

Indicative ranges; measure on your CPU.

ReferenceImportant terms & boundaries2 sections · depth on demand

How it works

Compression costs CPU on writes (and a little on reads); fast algorithms are usually limited by disk speed, slow high-ratio ones by CPU. Measure throughput and CPU together when choosing levels.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Compression → Compression Performance. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://openzfs.github.io/openzfs-docs/man/master/7/zfsprops.7.html · confidence 94%
Confirmation

Confirm action

Continue?