Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Compression

Direct answer

Storage compression encodes data in fewer bytes, usually with fast algorithms like LZ4 or ZSTD, to save capacity and sometimes speed up I/O. Already compressed or encrypted data gains little.

When to use this

Use this when deciding whether to compress a pool, volume or backup and which algorithm to use, or when compression saves less than expected.

First 30 seconds

1. Compression reduces stored size.

2. Usually cheap with LZ4/ZSTD.

3. Already-compressed data gains nothing.

4. Often improves throughput.

5. Enable by default on modern filesystems.

Operational verification

write → compress → fewer blocks

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 deciding whether to compress a pool, volume or backup and which algorithm to use, or when compression sav…
What next?3 suggested next steps
Child topics (this level)6
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
  • Using gzip-9 on busy systems.
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
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Compression happens before deduplication and encryption in most systems.
  • Already compressed or encrypted data does not shrink.
  • Fast algorithms can increase throughput by writing fewer bytes.
Key checks
  • zfs get compressratio <ds> — ZFS ratio
  • btrfs filesystem du / compsize <path> — Btrfs
  • Get-Volume (compression attribute) — NTFS compression
ReferenceHow it works1 section · depth on demand

Reference

zfs get compression,compressratio tank
compsize /data            # Btrfs
ReferenceImportant terms & boundaries2 sections · depth on demand

How it works

Compression encodes data with fewer bits. Storage systems compress per block or record; if a block does not shrink enough, it is stored uncompressed.

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