Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Deduplication · ZFS

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Deduplication in ZFS.

First 30 seconds

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.

Operational verification

write → hash → DDT lookup → store or reference

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
ZFS storage
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.

PlatformZFS storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting Deduplication in ZFS.
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 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 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
  • 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.
Key checks
  • zpool list — DEDUP ratio
  • zpool status -D <pool> — DDT histogram
  • zdb -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docZFS storage current

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%
Terminology layer

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.

Aliases that resolve here
zfs dedupzfs deduplicationddt
Embedded reference data

Quick lookup tables

ZFS → Deduplication ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → Deduplication.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?