Research notes / Backup storage
Deduplication ratio does not predict restore cost
Published 2026-10-11 / updated 2026-11-21 / Source review, synthetic examples and native WARC controls
Two layouts containing the same chunks can require different numbers of reads to restore the same bytes. In our six-request example, changing locality doubles fetched bytes with a two-container cache. Deletion has a separate cost: unreferenced chunks need not make a whole container removable. These are accounting results, not measured slowdowns. Native WARC controls add another boundary: a successful digest command can leave referenced content unavailable.
On this page17 sections
Similar chunk sets can reuse different byte totals
Jaccard similarity counts shared identities divided by identities in either set. It is symmetric; containment asks instead what fraction of one specified set is shared. A small backup can be fully contained in a large archive yet have low Jaccard similarity. [Broder, section 2]
MinHash estimates this set overlap. In its classic independent-coordinate form, each coordinate stores a minimum under a shared random permutation. For nonempty sets, the probability of matching minima equals Jaccard similarity. A finite signature estimates that probability; its agreement is not a byte-equality certificate. [Broder et al., pp. 632-633]
The hash family matters. Our exact control uses all 20 permutations h(x) = (a*x+b) mod 5, with a from 1 to 4 and b from 0 to 4. Every distinct ordered input pair maps uniformly to distinct ordered output pairs. Nevertheless, sets {0,1} and {0,2} have equal minima in 7/20 cases, not their Jaccard value 1/3. Pairwise-independent permutations alone do not guarantee exact MinHash resemblance. This is an enumerated toy family, not a measured error of a deployed library. [Definitions, equations 3-5]
Let the existing chunk identities be A = {a,b} and the incoming recipe be a,c. Both sets share one of three distinct identities, giving Jaccard similarity 1/3. Change the chunk lengths or repeat a reference: the identity sets stay unchanged while the incoming reusable byte share moves.
| Case | Incoming recipe | Reusable / incoming bytes |
|---|---|---|
| Equal sizes | a, c | 1 / 2 |
| Larger shared chunk | a, c | 9 / 10 |
| Repeated shared chunk | a, a, a, c | 3 / 4 |
The numerator counts every incoming occurrence already present in A, not newly stored physical bytes. Compression, metadata, replicas and lookup coverage require separate accounting. A similarity score alone cannot authorize chunk reuse or deletion; the storage system still needs its identity and retention checks. Recipe order also disappears from a set: a,c and c,a have similarity one but need not reconstruct the same file.
Merge signatures, not similarity scores
Against query {a,b}, shards {a} and {b} each score 1/2, but their union scores one. Two copies of shard {a} give the same local scores but union similarity 1/2. The scores alone cannot distinguish those cases. Compatible classic signatures merge by taking the minimum in each coordinate, using the same identity encoding, hash interpretation and ordered permutation functions. [datasketch implementation]
The worked model and tests check all 225 nonempty subset pairs of four identities under all 24 permutations. They also check union for all 256 pairs including empty sets. This finite enumeration verifies the illustration, not the accuracy of a practical hash family. The method makes the empty-set convention and payload denominator explicit.
One pair is not an archive-wide collision probability
Deduplication also makes an equality decision. A digest match can select a candidate for a byte comparison, or be accepted as sufficient evidence that two chunks are equal. Before attaching a probability to that decision, name the event: one specified pair, a fixed target, or any pair in a growing archive. The birthday bound concerns the last case.
There is a useful historical correction here. Henson's 2003 compare-by-hash paper printed a fixed-target-shaped expression as the probability of any collision among n outputs. Black's 2006 appendix A corrected it to the all-distinct product. This is a published correction, not a new discovery by Hesela. [29, section 3] [30, appendix A]
Count distinct inputs and the comparisons that matter
Assume each distinct byte string receives an independent, uniformly distributed b-bit output, with m = 2b possible values. Identical bytes hashed again are the same input, not another independent draw. One specified distinct pair matches with probability 1/m. For n fresh distinct inputs compared with one separate fixed target digest, the probability of at least one hit is 1 - (1 - 1/m)n. Neither quantity is the all-pairs archive event.
For n distinct inputs, no collision means the second output avoids one occupied value, the third avoids two, and so on. Multiply those conditional probabilities: for n ≤ m, the collision probability is one minus the product of (1 - i/m), for i = 0 through n - 1. Above m it is one. With four inputs and two-bit outputs, only 24 of 256 assignments are all-distinct: 232 collide, giving exactly 29/32. Our tests enumerate those assignments independently of the product formula.
| Digest bits | Distinct inputs | Fixed-target hit | Any pair, approximate |
|---|---|---|---|
| 64 | 1,000,000 | 5.42101e-14 | 2.71050e-8 |
| 64 | 1,000,000,000 | 5.42101e-11 | 2.67410e-2 |
| 128 | 1,000,000,000 | 2.93874e-30 | 1.46937e-21 |
| 256 | 1,000,000,000 | 8.63617e-69 | 4.31808e-60 |
The last column uses 1 - exp(-lambda), where lambda = n(n - 1)/(2m). Lambda counts expected colliding unordered pairs; it is not itself a probability. The exact probability lies between this exponential expression and min(1, lambda). These are mathematical bounds, not confidence intervals. For the billion-input, 64-bit example, the approximation is about 2.67%; the upper bound is about 2.71%. A naive binary64 computation of the fixed-target expression returns zero here because 1 - 2-64 rounds to one. The downloadable calculation uses high-precision decimal arithmetic.
What the model cannot certify
Count unique content within the actual comparison namespace and horizon, not total backup traffic. Selected corresponding-file comparisons do not automatically become all-pairs comparisons. Conversely, splitting counters by tenant does not remove cross-tenant pairs if the deduplication namespace is shared. Byte verification changes the equality decision but adds read work; this model measures neither that cost nor implementation faults.
Venti provides historical context for content-digest block addressing, not a current security guarantee. The SHA-1 advice in early papers must not be transplanted into today's design decisions; consult current algorithm guidance. [31, sections 3.1-3.2] [32] No number here estimates disk errors, adversarial success or the chance of losing a backup. Even perfectly equal bytes may belong to the wrong object or generation, as the integrity analysis explains.
Reproduce the results with the model and tests. The method and limits and source record distinguish exact enumeration from large-population approximation.
Search the chunks once, recover the file meaning
DedupSearch scans physical payload once, then uses logical recipes to attribute matches and join keyword fragments. It is an offline byte-string search, not a permanent term index. Its extra logical phase can outweigh savings on lightly deduplicated data. [27, sections 3 and 6]
IDEA instead retains a term-to-chunk index plus reverse mappings to files. Whitespace-aligned chunks avoid split terms, but do not solve indexing of arbitrary pre-chunked or compressed documents. Index size, metadata cost and query semantics must be compared separately from payload savings. [28, sections 4 and 8]
In this constructed byte example, A contains micro, B contains scope, and C contains microscope. Search for microscope: checking chunks separately misses A followed by B; reversing those references changes the answer without changing their stored bytes.
| File recipe | Within a chunk | In the file |
|---|---|---|
| A + B | No match | Match |
| B + A | No match | No match |
| C | Match | Match |
| A | No match | No match |
The byte model concatenates complete recipes as an oracle; it does not implement either research system or its performance optimizations. Its tests check all 512 partitions of the ten-byte word, reversed order, missing references and a split multibyte sequence. Chunk independence is the property under test, not storage reliability or elapsed time.
The overlooked cost is reconstructing the stream
Lillibridge and colleagues model restore from a recipe of chunk references. Reused chunks stay in older containers, so logical order need not match physical grouping. Their 2013 study uses a simulator, a workgroup collection and a synthetic stress workload. Its speed factor is an I/O proxy, not directly measured seconds. [1, sections 2 and 4]
Fu and colleagues distinguish sparse containers, which contribute little useful data, from out-of-order containers revisited after eviction. Cache can help the latter without eliminating the former. Their evaluation includes VM backups, Linux source versions and synthetic data. The default comparison uses OPT caching, not LRU, with a memory-resident fingerprint index. [2, sections 4 and 6]
A small rewrite fraction can mean much more writing
Fu et al. report HAR rewriting 0.45-1.99% of total backup input, while writing 11.66-74.31% more payload than the no-rewriting baseline across their three datasets. In the synthetic dataset, the paired figures are 1.99% and 74.31%: different denominators, not conflicting results. These are paper-reported values, not a Hesela reproduction or a device write-amplification measurement. [2, section 6.4]
Their speed factor is one divided by containers read per MB restored, not measured elapsed time. Deduplication ratio describes input versus written chunk payload; after expiration, the study separately counts valid containers to assess storage cost. Compare read counts, bytes written and retained space separately. [2, sections 6.1, 6.4 and 6.6]
Same six chunks, different container visits
Hesela's model restores distinct chunks 1 through 6 in that order, each 4 KiB. There are three 64 KiB containers, A, B and C. Each holds two requested chunks plus 56 KiB of other data not needed by this restore. Both layouts therefore have the same 24 KiB output and 192 KiB of occupied containers. Only placement changes.
Clustered placement maps the six chunks to A A B B C C. Interleaved placement maps them to A B C A B C. The letters identify containers, not duplicate chunk contents. This is not a comparison between a deduplicated and a non-deduplicated backup.
Computed from the downloadable model. Cold LRU cache; every miss fetches one whole 64 KiB container; 1 KiB = 1,024 bytes. Amplification = fetched bytes / restored bytes.
| Layout | Cache slots | Reads | Fetched KiB | Restored KiB | Amplification |
|---|---|---|---|---|---|
| clustered | 1 | 3 | 192 | 24 | 8x |
| clustered | 2 | 3 | 192 | 24 | 8x |
| clustered | 3 | 3 | 192 | 24 | 8x |
| interleaved | 1 | 6 | 384 | 24 | 16x |
| interleaved | 2 | 6 | 384 | 24 | 16x |
| interleaved | 3 | 3 | 192 | 24 | 8x |
At two slots, the clustered layout reads each container once: three reads, 192 KiB, an 8x byte ratio. Interleaving makes all six requests miss: six reads, 384 KiB, a 16x ratio. A deduplication ratio cannot encode this order-dependent difference.
Three slots retain all three containers and remove the extra reads. The ratio remains 8x: each first fetch still contains only 8 KiB needed by this restore. More cache does not make those initial 56 KiB disappear. A warm cache, smaller range reads or a different layout would change the problem and must be reported as different assumptions.
Why every interleaved request misses
The two-slot cache starts empty. Its oldest entry is evicted when a new container arrives; a hit would refresh recency. The order below is least to most recently used.
- Chunk 1: container A, miss; cache
A. - Chunk 2: container B, miss; cache
A B. - Chunk 3: container C, miss; cache
B C. - Chunk 4: container A, miss; cache
C A. - Chunk 5: container B, miss; cache
A B. - Chunk 6: container C, miss; cache
B C.
The fourth request needs A, but C has already displaced it. Fetching A displaces B, just before B is needed again. Counting only the three unique containers would miss this repeated traffic.
Six-row CSV, JSON provenance and dependency-free reproduction code. The article's table and trace are generated from the same model at build time.
Improving locality has a price
Container capping limits references to old containers within a segment by writing some duplicate chunks again. A forward assembly area instead places needed chunks into a buffer in future output order. These are different interventions: one trades space for locality, the other changes restore buffering. [1, section 3]
History-aware rewriting uses information from earlier backups to identify sparse containers for later rewriting. The assumed similarity between successive backups matters; it is not a universal guarantee for unrelated data. [2, section 5]
The LRU model above implements none of those algorithms. It isolates the baseline read cost that an optimization would need to improve. We do not infer a capping threshold, rewrite budget or RAM requirement for a production system from six requests.
Choose which backup ages pay for fragmentation
RevDedup redirects duplicate chunks in older backups toward newer versions. Its early VM-backup design shifts fragmentation toward history instead of accumulating it in the latest restore. [RevDedup, APSys 2013]
The journal design combines coarse inline sharing with fine reverse deduplication as backups move from a live window into an archival window. Coarse sharing still fragments data; older restores can traverse reference chains. A longer live window trades retained space for shorter archival chains. [Journal, sections 2.2-2.4 and 4.4.5]
Zero live references does not mean nobody needs the chunk
Removal also requires the absence of a direct reference from every sharing series. The journal's direct-reference flag preserves a chunk if even one series still needs its physical copy. [Section 2.4.2]
Hesela's Boolean illustration supplies a segment's live-reference count and two archival direct-reference flags. Yes means the series still needs this old physical chunk; No assumes a valid indirect replacement. These eight states test the removal predicate, not reference discovery, crash safety or measured I/O.
| Live refs | Direct X / Y | Old chunk |
|---|---|---|
| 0 | No / No | May remove |
| 0 | No / Yes | Keep |
| 0 | Yes / No | Keep |
| 0 | Yes / Yes | Keep |
| 1 | No / No | Keep |
| 1 | No / Yes | Keep |
| 1 | Yes / No | Keep |
| 1 | Yes / Yes | Keep |
For example, X's next backup may contain a replacement while Y's does not. Checking only X would lose Y's data. Conversely, even two indirect replacements do not authorize removal while a live backup still references the segment. The predicate assumes complete, correct inputs; it does not establish them. Executable rule and regression tests.
Evaluate restores by backup age, and account separately for background rewriting. The journal's throughput tests precomputed fingerprints; its VM payloads were reconstructed from collected block hashes. Those results are not an end-to-end modern backup benchmark. [Section 4.1]
Deleting backups does not free their logical size
Three quantities differ: deleted logical bytes, chunks with no surviving reference, and whole containers that can be removed. A chunk unused by one restore can still be needed by another retained backup. Restore sparsity is not global unreachability.
Our separate, synthetic deletion example has four distinct 1 MiB chunks A, B, C, D. Backups s0 and s1 both reference A,B; s2 references C,D. The initial logical total is 6 MiB and stored payload is 4 MiB, a 1.5:1 ratio. Grouped containers hold AB | CD; mixed containers hold AC | BD. There is one stored copy per chunk and no compression, headers or other overhead.
Computed payload accounting; all numeric columns are MiB (1 MiB = 1,048,576 bytes). Read and rewrite columns apply to collecting the mixed containers.
| Deleted / layout | Logical removed | Unreachable | Whole packs | Read | Rewrite |
|---|---|---|---|---|---|
| s0 grouped | 2 | 0 | 0 | 0 | 0 |
| s0 + s1 grouped | 4 | 2 | 2 | 0 | 0 |
| s0 mixed | 2 | 0 | 0 | 0 | 0 |
| s0 + s1 mixed | 4 | 2 | 0 | 4 | 2 |
Removing s0 alone frees no chunks because s1 still references A,B. Removing s1 alone has the same result, yet removing both releases 2 MiB of chunk payload. Individual deletion estimates therefore cannot simply be added. In the grouped layout one complete 2 MiB pack can go; in the mixed layout neither pack can go until its live data is preserved elsewhere.
Repacking both mixed containers reads 4 MiB and rewrites 2 MiB of live payload. Under a schedule that appends all replacements before removing any original pack, peak payload is 6 MiB before settling at 2 MiB. This is a chosen schedule, not a minimum scratch-space requirement or a filesystem-space measurement.
A last-reference marker has a retention boundary
Fu et al.'s Container-Marker Algorithm records the latest referencing backup per dataset/container, plus dataset membership per container. Its deletion operation removes the oldest backups. Container membership must also be released by every referencing dataset before reclamation. [2, section 5.5, p. 187]
Hesela's derivation isolates that summary. Number backups 0 through n-1; let H be a container's referencing backups and R the retained set. It is live exactly when H and R intersect. If R is a chronological suffix starting at t, a nonempty H is live exactly when max(H) >= t. Empty H is never live.
Conversely, a non-suffix R contains some retained i before a deleted j. Histories {i,j} and {j} have the same latest reference j but different liveness. No decision using only that marker and R can always distinguish them. More reference information, or reconstructing it, is needed for an exact answer; conservative retention can keep dead containers. This is a proof about a restricted summary, not a defect claim about CMA or a backup product.
For example, retain backups 0 and 3. A container referenced by 0 and 2 must remain; one referenced only by 2 need not. Both markers say 2. Keeping the newest backup does not resolve the ambiguity. Exhaustive checks through eight backups agree with the proof; their 87,380 history/policy pairs are test coverage, not a real repository sample or a failure probability.
Command completion and physical reclamation are separate
Restic v0.19.1 distinguishes forget from prune. Pruning can leave unused payload to reduce repacking, and stores replacements before deleting old packs. Its unlimited-unused setting still permits metadata repacking. [5] In Borg 1.4.1, prune selects archives for removal; compact returns repository disk space. Its daily/weekly/monthly retention rules need not retain a chronological suffix. This does not imply Borg uses CMA. [6]
Collection itself has a policy boundary. Borg 1.4.1 documents a default --threshold of 10% for segment compaction, so completion need not remove every unused byte. Its compact --dry-run is documented as doing nothing, not as a reclaim forecast. [7] Restic's --max-unused percentage instead bounds unused data relative to total repository data after pruning. These percentages have different scopes; comparing their numbers alone does not compare reclamation behavior. [5]
Record retained identities, unreachable payload, whole removable packs, live rewrite traffic, temporary-space high-water mark and the layer where free space is measured. Retention obligations still constrain deletion; this example is not a recommendation to remove more backups.
Reproduction instructions and scope, all sixteen JSON rows, CSV and Python model. The package includes tests, source receipts and a separate accounting oracle. No native restic/Borg run, HAR/CMA benchmark, device timing or crash test was performed.
Related mechanisms: shared clone space and cleaning-traffic denominators. Their implementation guarantees are not interchangeable with this model.
A web capture can outlive the payload it references
A WARC file is a sequence of typed records, not a guarantee of a self-contained website. Its Content-Length field counts the record's content-block bytes, excluding the WARC header and trailing separators. A segmented logical record can span several records, while a revisit can depend on an earlier payload. Preserve the required records and their dependencies, not just the latest file. [8, sections 4, 5.3, 6.7 and 7]
Keeping a recent archive file does not necessarily keep the content needed by its captures. In WARC's identical-payload revisit profile, the new record can retain HTTP headers while referring to content stored by an earlier capture. Its block digest covers the local block; its payload digest describes the logical content, which may be elsewhere. [8, digest fields and section 6.7]
Distinguish the byte scopes: the WARC block digest covers only the stored content block, excluding the enclosing WARC header. An unsegmented HTTP response includes stored HTTP headers and body; a revisit can omit the duplicate body. The WARC payload digest describes the entity body for HTTP records. Neither field alone establishes that all capture dependencies survived. [8]
Hesela ran seven designed file-set cases through warcio check -v using warcio 1.8.2. An orphan revisit returned exit code 0. So did a revisit with one changed HTTP-header byte whose local block digest no longer matched. The tool did not claim to verify those digests: verbose output said digest present but not checked (revisit). The pinned reader disables both digest inputs for revisit records; the checker reports that distinction. [9] [10]
Constructed WARC 1.1 inputs, not a survey of real archives. The requested capture is fixed. Local acceptance below is a separate, direct-ID, one-hop check of record presence, block integrity and referenced-payload agreement.
| Available material | Checker exit | Local acceptance |
|---|---|---|
| Original and revisit together | 0 | Accept: exact 42-byte body |
| Revisit only | 0 | Reject: original missing |
| Revisit HTTP header changed | 0 | Reject: revisit block mismatch |
| Original changed and rehashed | 0 | Reject: referenced payload differs |
| Original changed, old digests | 1 | Reject: original digest failure |
| Original only | 0 | Reject: requested capture missing |
| Separate original restored | 0 | Accept: exact 42-byte body |
The damaged ordinary response was detected, providing a failing control. Restoring the separate original file recovered the exact known 42-byte body without changing the revisit. Recomputing the changed original's own digests instead made its local checks pass while leaving its payload inconsistent with the revisit. These are different failure boundaries, not hash collisions. CPython 3.14.8 and 3.12.3 produced identical fixture bytes and all seven observation objects with the same library versions.
The dependency is established preservation knowledge. A 2014 ARC-to-WARC migration account describes preserving relationships between deduplicated records. Historical pywb design combines a revisit's headers with an earlier payload, using indexed lookup where needed. These sources explain why a record-by-record command is not a capture-reconstruction test. [11] [12]
Keep the dependency, not just the newest file
For an archival restore, specify the captures that must be available, resolve their payload dependencies against the retained files and indexes, and compare the reconstructed content with the acceptance target. Record checks that were skipped separately from checks that passed. A checksum cannot recover an absent payload. This is an operational synthesis, not an estimate of how often institutions lose archives.
The downloadable helper accepts only the explicit, one-hop fixture references. A different valid archive may require another resolver; the helper is not a general WARC validator. Agreement between rewritten records does not authenticate their history. Whole-page replay also needs the other resources and intended replay behavior. No modern pywb stack was executed.
Recovering an object is not the same as preserving a useful page. Brunelle and colleagues' JCDL 2014 study compared missing-resource counts with users' judgments and a visual-importance measure. Its model excludes iframes and audio-only media, so it is not a universal completeness test. It also assumes text in the DOM remains available and leaves that text outside the damage calculation. A low visual-damage score therefore cannot certify that the page's text survived. [13, sections 4-7] For a restore plan, our operational inference is to specify both required objects and the page behavior that must survive. The seven WARC controls operate at the record layer; they do not measure that user-facing outcome.
Name the bytes before comparing the hashes
A replayed page is not necessarily the stored response. Aturban, Nelson and Weigle examined 18,472 archived pages from 17 archives, downloading them ten times during a 45-day observation period in late 2017. They reported changes in 3,599 pages, but their categories include redirects, response metadata, transient failures and dynamically generated resources. That numerator is not a count of corrupted WARC payloads or proven malicious edits. [14, sections 2-4]
RFC 7089 distinguishes the changing original resource from a representation of its earlier state. A link repaired to reach today's upstream page is therefore useful navigation, not proof that the captured dependency survived. [15, section 1] For verification, name the captured object, hash scope, capture time and replay transformation separately. Preserve the raw object even when a reading copy removes scripts or rewrites links. This is our operational synthesis; it does not reproduce the study or measure current archive quality.
Methods and reproduction, table JSON, raw observations and code and six fixtures (ZIP). See the revisit-record definition, the backup acceptance analysis and HDF5's different missing-source mechanism.
Spend the buffer on future output
Forward assembly uses the recipe to place useful chunks into upcoming output positions. The fixed variant fetches each required container once per output window. It needs an input buffer as well as assembly and recipe space. The rolling variant advances after emitting a completed prefix, avoiding fixed-boundary reloads. Repeated chunk occurrences occupy separate output positions. [1, section 3.3, pp. 186-187]
Apply a fixed window to our six distinct chunks. With the whole A B C A B C output in view, fetch A and fill positions 1 and 4, fetch B for 2 and 5, then C for 3 and 6. Only three container reads are needed. The containers and recipe have not changed; no duplicate has been rewritten.
Original deterministic examples, using the same 4 KiB chunks and 64 KiB containers. Payload budget means resident LRU containers, or reserved assembly space plus one 64 KiB input buffer. Recipe/index metadata, allocator overhead, output buffers and operating-system caches are excluded. These are not process-RAM measurements.
| Layout / policy | Window chunks | Payload KiB | Reads | Fetched KiB | Byte ratio |
|---|---|---|---|---|---|
| interleaved LRU: two containers | - | 128 | 6 | 384 | 16x |
| interleaved Fixed assembly | 16 | 128 | 3 | 192 | 8x |
| interleaved Fixed assembly | 3 | 76 | 6 | 384 | 16x |
| interleaved Fixed assembly | 4 | 80 | 5 | 320 | 13.33x |
| clustered Fixed assembly | 2 | 72 | 3 | 192 | 8x |
| clustered Fixed assembly | 3 | 76 | 4 | 256 | 10.67x |
The first two rows reserve the same 128 KiB payload budget. LRU uses two 64 KiB container slots. Fixed assembly uses one 64 KiB input buffer and a 64 KiB output window, with capacity for sixteen 4 KiB positions even though this restore needs only six. Reads fall from six to three, and fetched bytes from 384 to 192 KiB. Counting only the 24 KiB of useful output as its entire memory requirement would conceal the input buffer and reserved spare capacity.
Small windows still force rereads. A three-position window divides the interleaved recipe into A B C | A B C: six reads. Four positions give A B C A | B C: five. The model discards the input container at a boundary; it has no cross-window cache.
More fixed-window space can still add a read
The final two rows use the clustered recipe. Two-position windows produce A A | B B | C C, requiring three reads. Three-position windows produce A A B | B C C, requiring four because B straddles the boundary. The payload budget rises from 72 to 76 KiB while reads increase. This counterexample concerns fixed partitions, not a claim that larger LRU caches cause more misses or that rolling assembly behaves the same way.
The practical comparison needs both the buffering policy and its window semantics, not just a RAM number. Even the three-read case still fetches 192 KiB to restore 24 KiB: retaining useful chunks removes rereads without removing unused bytes from the first whole-container fetches.
Six computed rows, assumptions and code hashes; assembly code and its LRU dependency. The tests compare the count with a separate first-unfilled-position algorithm across 7,651 trace/window cases. This is a fixed-size illustration, not the paper's simulator, a rolling implementation or a measured throughput result.
Finding duplicates and restoring them are separate problems
Sparse indexing samples chunk fingerprints to select previous segment manifests, then matches against their full contents. Unselected manifests can hide duplicates. Its lookup trade-off is therefore incomplete duplicate removal, not necessarily data loss. [3, section 3]
By contrast, Zhu and colleagues use a Bloom-filter summary ahead of a complete index. A positive summary result needs confirmation; a correctly maintained negative result excludes membership. False positives add lookup work rather than silently merging different content. A sampled candidate index and a Bloom filter over all fingerprints do not make the same promise. [4, sections 4.1 and 4.3]
The following original illustration holds stored content and the query fixed. The older manifest contains IDs 4, 5, 6; the newer contains 8, 9, 10. The incoming IDs are 4, 5, 8, 9, 11, each representing 4 KiB. Four are already stored; only ID 11 is new. IDs represent exact identities, not measured hashes.
Four deterministic cases, computed from the downloadable model. Missed fraction = missed existing chunks / four existing chunks. A dash means not applicable; baseline index I/O is not modeled.
| Lookup case | Loaded manifests | Found / 4 | Missed / 4 | Newly stored KiB | Missed fraction |
|---|---|---|---|---|---|
| no shared hook | 0 | 0 | 4 | 20 | 100% |
| one candidate | 1 | 2 | 2 | 12 | 50% |
| two candidates | 2 | 4 | 0 | 4 | 0% |
| full membership baseline | - | 4 | 0 | 4 | 0% |
Hooks are IDs divisible by the configured modulus. Modulus 16 supplies no hooks in this query, so the model stores all 20 KiB. Modulus 4 supplies hooks 4 and 8. With one candidate, the tie selects the newer manifest: it finds both 8 and unsampled ID 9, but stores 4 and 5 again alongside 11, totaling 12 KiB. Two candidates find all four duplicates and store only 4 KiB, as does full membership.
Selection counts uncovered shared hooks, breaks ties in favor of the newer manifest and stops at the candidate budget or zero remaining score. These chosen IDs expose failure modes; they are not a random sample or an estimate of real deduplication efficiency. No chunking, hash collisions, manifest cache, within-segment duplicates or index-retention limit is modeled. The cases do not establish a universally optimal sampling rate.
The two tables cannot be multiplied together: lookup counts new payload stored, whereas restore counts reads from an already specified layout. The lookup model does not place those bytes into containers. An ingest optimization needs separate measurements of duplicate coverage, metadata I/O and restore behavior.
Four-row CSV, input manifest and reproduction code. Corpus: sparse indexing.
ZFS: table size, cache residency and admission limits
An index has its own storage cost. The ZFS deduplication table (DDT) maps compatible block identities to locations and reference counts. Its metadata cost is separate from payload savings and restore locality. [17]
dedup_table_size: the table's on-disk size.dedupcached: table content currently resident in ARC.dedup_table_quota: an approximate on-disk admission limit, not a memory budget or dataset-capacity quota.
These are OpenZFS v2.3 pool properties. Lowering the quota does not remove existing entries; their reference counts can still change. The configured limit can differ slightly from the enforced size. [16]
In OpenZFS 2.3.4, a write needing a new entry when the table is over quota falls back to ordinary, non-deduplicated storage. A compatible write can still reuse an existing entry. This fallback does not guarantee write success: normal allocation and I/O constraints remain. [17, Dedup quota]
The write path matters too. OpenZFS v2.3 documents that Direct I/O writes bypass deduplication even with dedup=on. Requesting O_DIRECT alone does not establish that path: direct=disabled ignores the request, and write portions unaligned to recordsize use buffered I/O. [24, direct] For a deduplication comparison, record the version, effective direct-I/O policy and alignment as well as the dataset property. This is a documentation-based interpretation, not a measured performance result.
Log memory is separate from cache residency
With fast_dedup, pending table updates also occupy in-memory log entries. In OpenZFS 2.3.4, zfs_dedup_log_mem_max is initialized from 1% of total RAM by default, with a 1 MiB minimum. This is not a bound on all deduplication memory. ARC-resident table content and other live metadata are separate accounting categories. [20] [21]
Flushing the log more aggressively trades update aggregation for a smaller backlog to process at pool import. The documented hard-cap mode can also lengthen transaction-group synchronization. A log setting therefore cannot be treated as a free memory reduction or a guaranteed import-time bound. [20, dedup log flushing and caps]
The restore buffers in the FAST 2013 study solve a different problem: retaining fetched containers or assembling future output. Its baseline simulates one restore stream, whereas concurrent streams compete with ingest and other memory users. [1, sections 2 and 3.3] The practical distinction is to budget pool metadata and restore working space separately; neither a per-stream cache figure nor the DDT log's default percentage specifies the machine's total RAM requirement.
What a matching signature actually establishes
A fingerprint lookup and a data comparison answer different questions. The FAST 2008 Summary Vector screens index lookups. On a segment-cache miss, a positive summary answer still leads to the full index. It does not compare payload bytes. That distinction also matters for a ZFS table hit, although these are different implementations. [4, sections 4.1 and 4.3]
In OpenZFS 2.3.4, the key records logical size, physical size, compression and an encryption-use flag as well as the checksum; checksum type selects the table. Equal digest bytes alone therefore do not establish that two block representations can share an entry. [17, ddt_key_fill] The v2.3 manual defines dedup=verify as SHA-256 plus a byte-for-byte comparison when signatures match. [22]
Verification can compare an in-flight write or fetch an existing block. A read failure can also trigger the fallback path, so a non-deduplicated write is not evidence of a hash collision. Checking a candidate for a new write is not a pool-wide scrub and does not certify future readability. [23, zio_ddt_collision]
Turning dedup off does not rewrite the old data
dedup=off changes subsequent writes; it does not expand previously shared blocks or immediately discard their table entries. [18, Turning it off] A snapshot can retain an older block after the live file changes. [19, Snapshots] Therefore, checking only the active dataset's setting cannot establish that the pool has no deduplication metadata left.
For capacity planning, inspect table bytes, cache residency, workload and retained references separately. None of these counters alone measures restore completion time. This section is documentation and source review, not a ZFS pool experiment or a universal RAM-sizing recommendation.
Persist less metadata, then account for rebuilding it
GogetaFS combines fingerprints with filesystem mappings instead of persisting a separate deduplication table. Its global lookup table can be reconstructed from durable mappings. Normal shutdown saves that table; crash recovery rebuilds it. These are different costs, and neither measures backup restore throughput. [Pan et al., sections 4.2-4.6 and 6.6]
The SSD source illustrates a second boundary: finding a fingerprint selects a candidate, then memcmp compares its bytes. Unequal content takes an allocation path. The accelerated hint path also compares content. This is inspection of pinned code, not a filesystem correctness audit. [candidate and hint paths]
Keep the experimental conditions attached: the paper separates persistent-memory measurements from FEMU-emulated SSD results and defaults to disabled metadata protection. Its feature-overhead comparison reports about p = 0.20 over ten runs. [sections 6.1, 6.2 and 6.7] Hesela's interpretation: a nonsignificant difference does not establish equivalent performance. Specify an acceptable effect-size margin and assess uncertainty before claiming negligible overhead. [ASA principles]
A practical evaluation should therefore separate four budgets: persistent metadata writes, live index memory, restart work and reads needed to restore selected data. Improving one budget does not determine the other three. The author artifact documents a modified-kernel and persistent-memory setup; no native replay was performed for this review. [reproduction requirements]
What the numbers do not say
No backup appliance, HDD, SSD or object store was measured. The model has no seek cost, bandwidth, parallelism, decompression, output-write time, metadata I/O, prefetching, deduplication index or operating-system cache. A 16x fetched-byte ratio is not a 16x elapsed-time multiplier. Deterministic examples have no sample size or confidence interval.
Deduplication shares content within an implementation's matching scope; it does not specify physical replica count. Logical references are not independent recovery copies. Nor is this trace a durability or corruption model. See the separate integrity-boundary analysis.
For a useful restore test, Hesela recommends recording restored logical bytes, fetched bytes at a named layer, cache state and budget, restore-point age, concurrent streams and elapsed time to usable output. Hold these conditions fixed when comparing layouts. Storage savings and recovery completion belong in separate columns.
Before placement comes boundary selection. Our review of content-defined chunking and FastCDC explains why shifted offsets and incompatible chunker parameters can change reuse.
A separate review compares the confidentiality boundaries of encrypted deduplication.
Corpus: deduplication, chunk fragmentation, container capping and forward assembly area.
Primary sources
- Mark Lillibridge, Kave Eshghi and Deepavali Bhagwat. Improving Restore Speed for Backup Systems that Use Inline Chunk-Based Deduplication. USENIX FAST 2013, pp. 183-197; sections 2-4.
- Min Fu, Dan Feng, Yu Hua, Xubin He, Zuoning Chen, Wen Xia, Fangting Huang and Qing Liu. Accelerating Restore and Garbage Collection in Deduplication-based Backup Systems via Exploiting Historical Information. USENIX ATC 2014, pp. 181-192; sections 3-6.
- Lillibridge et al. Sparse Indexing: Large Scale, Inline Deduplication Using Sampling and Locality. USENIX FAST 2009, pp. 111-123.
- Zhu, Li and Patterson. Avoiding the Disk Bottleneck in the Data Domain Deduplication File System. USENIX FAST 2008, pp. 269-282.
- Restic v0.19.1: Removing backup snapshots, pruning and temporary space.
- Borg 1.4.1: prune, retention selection and the compact boundary.
- Borg 1.4.1: compact, segment threshold and dry-run semantics.
- IIPC: WARC Format 1.1 with community annotations
- warcio 1.8.2: digestverifyingreader.py
- warcio 1.8.2: checker.py
- Open Preservation Foundation: ARC to WARC migration: How to deal with de-duplicated records?
- PyWb Record Lookup and Revisits
- Justin F. Brunelle, Mat Kelly, Hany SalahEldeen, Michele C. Weigle and Michael L. Nelson. Not All Mementos Are Created Equal: Measuring the Impact of Missing Resources. JCDL 2014, pp. 321-330. DOI: 10.1109/JCDL.2014.6970187; sections 4-7.
- Mohamed Aturban, Michael L. Nelson and Michele C. Weigle. It is Hard to Compute Fixity on Archived Web Pages. WADL 2018, pp. 16-17; sections 2-4.
- Van de Sompel, Nelson and Sanderson. RFC 7089: HTTP Framework for Time-Based Access to Resource States - Memento, section 1.
- OpenZFS v2.3: zpoolprops(7), DDT size, cache residency and quota
- OpenZFS 2.3.4: deduplication table entries and quota fallback
- OpenZFS: Deduplication, changing the property and existing blocks
- OpenZFS v2.3: zfsconcepts(7), snapshots and shared blocks
- OpenZFS v2.3: zfs(4), dedup log memory, flushing and import-time trade-offs
- OpenZFS 2.3.4: dedup log memory initialization
- OpenZFS v2.3: zfsprops(7), dedup verification and checksum selection
- OpenZFS 2.3.4: zio_ddt_collision and write fallback
- OpenZFS v2.3: Direct I/O write paths and deduplication
- Ng and Lee. RevDedup: A Reverse Deduplication Storage System Optimized for Reads to Latest Backups. APSys 2013.
- Li, Xu, Ng and Lee. Efficient Hybrid Inline and Out-of-Line Deduplication for Backup Storage. ACM TOS 11(1), Article 2. DOI: 10.1145/2641572; sections 2.2-2.4, 4.1 and 4.4.
- Elias et al. DedupSearch: Two-Phase Deduplication Aware Keyword Search. FAST 2022, pp. 233-246.
- Levi et al. Physical vs. Logical Indexing with IDEA: Inverted Deduplication-Aware Index. FAST 2024, pp. 243-258.
- An Analysis of Compare-by-hash. HotOS IX 2003; 3, 4, 5.
- Compare-by-Hash: A Reasoned Analysis. USENIX ATC 2006; 2, 3, Appendix A.
- Venti: A New Approach to Archival Data Storage. FAST 2002 2002; 3.1, 3.2.
- NIST CSRC: Hash Functions
- Broder, Charikar, Frieze and Mitzenmacher. Min-Wise Independent Permutations. JCSS 60(3), 2000, pp. 632-633.
- Broder. On the resemblance and containment of documents. SEQUENCES 1997, section 2.
- datasketch MinHash implementation: signature comparison, union and permutation-scheme assumptions.
- Pan et al. Don't Maintain Twice, It's Alright: Merged Metadata Management in Deduplication File System with GogetaFS. FAST 2025, pp. 479-495.
- GogetaFS SSD implementation, commit ed330e7c: candidate comparison and hint paths.
- American Statistical Association: Statement on Statistical Significance and P-Values (2016).
- GogetaFS artifact evaluation: environment requirements and experiment mapping.
Restore and lookup sources reviewed through 19 October 2026; retention sources reviewed 23 October 2026; WARC sources reviewed 3 November 2026; replay-fixity sources reviewed 10 November 2026; ZFS table sources reviewed 12 November 2026. Historical methods, not a claim about current products. No paper benchmark has been reproduced here.