Storage deduplication is a data reduction technique that detects identical chunks of data and stores each unique chunk only once, replacing every further copy with a small reference to the stored original. In server storage, it is used on file systems, storage arrays and backup targets to cut the physical capacity needed for data that repeats, such as virtual machine images, backups and shared documents.
The most common form is block-level deduplication, which works below the file level and can find duplicates even between different files. The savings depend almost entirely on the data: backups and virtual desktops often shrink dramatically, while compressed media and encrypted files barely change.
How deduplication identifies duplicate data
Deduplication works in three steps: chunking, fingerprinting and indexing. The system splits incoming data into chunks, computes a cryptographic hash for each chunk, and looks up that hash in a deduplication table. If the hash already exists, only a reference is written and a reference counter is increased; otherwise the new chunk is stored and added to the table.
Strong hash functions such as SHA-256 make accidental collisions extremely unlikely, yet some systems add a byte-by-byte verification before discarding a chunk. This verification costs extra reads but removes any risk that two different blocks share a fingerprint. The choice of chunking method has the largest effect on how many duplicates are found, as the table shows.
| Method | How chunks are formed | Strength | Weakness |
|---|---|---|---|
| File-level | Whole file is one unit | Very small index | One changed byte breaks the match |
| Fixed-size block | Equal blocks, often 4 to 128 KB | Simple and fast | Inserted data shifts all later blocks |
| Variable-size chunk | Boundaries set by content patterns | Finds duplicates after insertions | Higher CPU cost |
Variable-size chunking uses content-defined boundaries, usually computed with a rolling hash such as a Rabin fingerprint. Because the boundaries follow the data itself, an insertion near the start of a file changes only a few chunks instead of every block after it, which is why backup appliances favor this method.
Inline and post-process deduplication
The moment when deduplication happens decides its effect on performance and capacity. Inline deduplication removes duplicates before data reaches the disk, while post-process deduplication writes everything first and reduces it later in a scheduled job.
| Aspect | Inline | Post-process |
|---|---|---|
| When duplicates are removed | Before the write completes | Later, during a background job |
| Capacity needed | Only reduced data is ever stored | Full raw data must fit temporarily |
| Write latency | Higher, due to hashing and lookups | Unaffected at write time |
| Resource demand | Continuous CPU and memory | Bursts during the job window |
| Typical use | All-flash arrays, ZFS | Windows Server volumes, some NAS systems |
Deduplication may also run at the source, on the client before data crosses the network, or at the target, on the storage system. Source-side deduplication saves bandwidth, which matters for remote offices and cloud backups, at the cost of CPU time on the protected server.
Deduplication compared with related techniques
Deduplication is one of several capacity efficiency methods, and it is often confused with compression or thin provisioning. Each method saves space in a different way, and they are frequently combined.
| Technique | What it removes | Scope |
|---|---|---|
| Deduplication | Repeated chunks across data | Whole volume, pool or backup store |
| Compression | Redundancy inside a single chunk | One block or file at a time |
| Thin provisioning | Allocated but unused space | Logical volume allocation |
| Snapshots and clones | Copies of unchanged data over time | One volume and its versions |
The usual order is deduplicate first, then compress the unique chunks, because compression changes the bytes and would hide duplicates. Encryption must come after both: encrypted data looks random and cannot be deduplicated, unless the system uses special convergent encryption designs.
Expected savings and resource costs
Vendors express results as a deduplication ratio, such as 10:1, meaning ten units of logical data occupy one unit of physical space. Realistic ratios vary widely with the workload and the retention policy.
| Workload | Typical ratio | Reason |
|---|---|---|
| Repeated full backups | 10:1 to 30:1 or more | Most data is unchanged between runs |
| Virtual desktop images | 5:1 to 20:1 | Many identical operating system files |
| General file shares | 1.5:1 to 3:1 | Some shared documents and copies |
| Databases | 1.1:1 to 2:1 | Records are mostly unique |
| Video, images, encrypted data | About 1:1 | Already compressed or random |
The main cost is memory for the deduplication table. In ZFS, a common planning figure is several gigabytes of RAM per terabyte of deduplicated data, and when the table no longer fits in memory, every write triggers extra disk reads and performance can collapse. Modern ZFS releases improve this with a faster table design, yet careful sizing remains necessary.
Risks and common mistakes
Deduplication concentrates many logical copies onto a single physical block, so damage to that block affects every file that references it. Reliable systems therefore combine deduplication with RAID or erasure coding, checksums and regular scrubbing.
- Enabling deduplication on incompressible media wastes CPU and memory for almost no gain.
- Restores can be slower, because a deduplicated file is scattered across the disk, a problem called fragmentation or rehydration cost.
- Capacity reports can mislead: deleting one file may free no space if its chunks are still referenced elsewhere.
- Disabling deduplication later usually does not expand existing data, and in ZFS it requires rewriting the data.
A sound approach is to measure before enabling: many platforms offer a simulation tool that estimates the ratio on real data, and the feature should be enabled only where the estimated saving justifies the extra resources.
A non-technical view
Imagine an office where fifty people each keep a printed copy of the same thick handbook. Storage deduplication is like keeping one copy on a shared shelf and giving everyone a card that says where to find it.
The computer does the same with data. It notices pieces that are exactly alike, keeps one and points to it from everywhere else. This saves much space when data repeats, but it needs a good catalog and some extra effort to keep track of who uses which piece.
A concrete example
A regional hospital backs up 120 virtual machines every night to a backup appliance and keeps 30 daily versions. Without data reduction, the retained backups would need roughly 600 TB of raw capacity, because each night largely repeats the previous one.
The appliance uses variable-size, target-side deduplication followed by compression. After the first full backup, each night adds only the changed chunks, and the overall ratio settles near 18:1. The whole retention set fits on about 35 TB of disk.
The IT team also enabled source-side deduplication for two remote clinics, which reduced nightly transfers over their limited links from hundreds of gigabytes to a few gigabytes. The result was a smaller appliance purchase and backups that finish well inside the overnight window.