Storage deduplication

Also known as: block-level deduplication

On this page 7

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.

MethodHow chunks are formedStrengthWeakness
File-levelWhole file is one unitVery small indexOne changed byte breaks the match
Fixed-size blockEqual blocks, often 4 to 128 KBSimple and fastInserted data shifts all later blocks
Variable-size chunkBoundaries set by content patternsFinds duplicates after insertionsHigher CPU cost
Granularity options in deduplication

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.

AspectInlinePost-process
When duplicates are removedBefore the write completesLater, during a background job
Capacity neededOnly reduced data is ever storedFull raw data must fit temporarily
Write latencyHigher, due to hashing and lookupsUnaffected at write time
Resource demandContinuous CPU and memoryBursts during the job window
Typical useAll-flash arrays, ZFSWindows Server volumes, some NAS systems
Timing models compared

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

TechniqueWhat it removesScope
DeduplicationRepeated chunks across dataWhole volume, pool or backup store
CompressionRedundancy inside a single chunkOne block or file at a time
Thin provisioningAllocated but unused spaceLogical volume allocation
Snapshots and clonesCopies of unchanged data over timeOne volume and its versions
Data reduction and efficiency methods

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.

WorkloadTypical ratioReason
Repeated full backups10:1 to 30:1 or moreMost data is unchanged between runs
Virtual desktop images5:1 to 20:1Many identical operating system files
General file shares1.5:1 to 3:1Some shared documents and copies
Databases1.1:1 to 2:1Records are mostly unique
Video, images, encrypted dataAbout 1:1Already compressed or random
Indicative deduplication ratios by workload

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.