Use it when configuring, checking or troubleshooting Deduplication in ZFS.
Deduplication · ZFS
When deduplication is enabled, ZFS identifies identical block content by checksum and maintains references through the DDT rather than storing duplicate physical blocks repeatedly. The DDT can become large and performance-sensitive; its working set, metadata placement and memory/cache behavior must be planned before enabling dedup on large datasets.
1. Dedup stores identical blocks once but needs a large table (DDT) in RAM.
2. Usually not worth it; compression is better.
3. Removing dedup requires rewriting data.
4. Simulate first with zdb -S.
5. Fast dedup (OpenZFS 2.3) reduces cost.
write → hash → DDT lookup → store or reference
Context & applicabilityCommon mistakes · platform/version boundaries
A dedup hit shows a matching block representation was reused, but it does not show backup independence, low metadata cost or that dedup is beneficial for the overall workload.
Suspicious evidence: dedup is enabled without sizing, memory pressure rises, DDT misses dominate latency, or dedup is described as a backup or integrity substitute.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
application block → checksum/content identity → DDT lookup → existing block reference OR new allocation → pool/vdev → read verification
Healthy evidence: dedup ratio justifies cost, DDT working set and latency fit available resources, DDT storage is properly protected, and workload remains within baseline.
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.
- Deduplication ≠ compression.
- Deduplication ≠ backup.
- High dedup ratio ≠ low DDT memory/metadata cost.
- Turning dedup off affects future writes; it does not automatically expand existing shared blocks into duplicates.
zpool list— DEDUP ratiozpool status -D <pool>— DDT histogramzdb -S <pool>— simulate dedup savings
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
A dedup hit shows a matching block representation was reused, but it does not show backup independence, low metadata cost or that dedup is beneficial for the overall workload.
Deduplication owns ZFS DDT behavior. Compression owns entropy reduction; Special VDEV may own DDT placement; Storage Performance owns memory/latency measurement.
In depth
ZFS dedup keeps a table (DDT) of checksums for every unique block written with dedup=on. Every write looks up the table; if it does not fit in RAM, writes become very slow because each lookup hits disk.
zdb -S tank # simulate dedup ratio on existing data before enabling
zpool status -D tank # DDT size and histogram
Enable it only for datasets with confirmed high duplication (VDI full clones, some backup targets) and enough RAM or a special/dedup vdev. OpenZFS 2.3's fast dedup reduces the cost but does not make dedup free; compression is the better default.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in ZFS → Deduplication. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
ZFS → Deduplication ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Deduplication.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | A dedup hit proves a matching block representation was reused; it does not prove backup independence, low metadata cost or that dedup is beneficial for the overall workload. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: dedup ratio justifies cost, DDT working set and latency fit available resources, DDT storage is properly protected, and workload remains within baseline. | Close only after original workload plus checksum/read-back/recovery verification succeeds |