Use this when duplicates should be removed before data reaches disk.
Inline Deduplication
Inline deduplication removes duplicates as data is written, so duplicate blocks never hit disk. It saves capacity and write wear immediately but adds latency and CPU on every write.
1. Inline dedup happens before data is written.
2. Saves space immediately.
3. Adds latency and CPU on writes.
4. Needs fast metadata (RAM/SSD).
5. Common in all-flash arrays and backup repos.
write → hash lookup → reference or store
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Enabling ZFS dedup without enough RAM.
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.
- Saves capacity and write wear immediately.
- Adds latency to every write.
- Needs fast lookups of block hashes.
zpool get dedupratio <pool>— ZFS inlinearray inline data reduction— ratioiostat -x 1— write latency impact
ReferenceHow it works1 section · depth on demand
Reference
zfs set dedup=on tank/vms
zpool status -D tank # dedup table size
Documented example, not captured output.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Inline dedup hashes every write before it lands. The index of hashes must be fast to search, ideally in RAM: ZFS needs roughly 5 GB of RAM per TB of deduplicated data as a planning figure, which is why ZFS dedup is rarely recommended outside specific workloads. Newer ZFS (fast dedup in OpenZFS 2.3) reduces this cost.
Reference
Inline dedup hashes data as it arrives and skips duplicates before writing. ZFS dedup is inline and needs RAM for the dedup table (rule of thumb several GB per TB of unique data); fast dedup in OpenZFS 2.3 reduces this.
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 Deduplication → Inline Deduplication. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/data-deduplication/overview · confidence 94%