Content-defined chunking
Content-defined chunking divides a byte stream using content-dependent boundary rules rather than only fixed offsets.
The aim is to retain reusable chunks despite shifted offsets; minimum-size suppression and maximum-size forced cuts can disrupt resynchronization. Boundary selection is separate from checking whole-chunk identity. [1]
File framing matters: restarting at each file and chunking one concatenated stream can produce different reusable units. In a deterministic four-file example, reversing unchanged files preserves 152072 of 152072 reusable bytes with per-file chunking, but 110326 of 152072 bytes with concatenated framing. Every terminal chunk is included; these synthetic counts are not a workload savings estimate. [3]
Repetitive-input control: a constant-byte stream can force repeated maximum-length cuts even with a much smaller requested average. The complete 256-byte-value test in fastcdc-py 1.7.0 explains both 255 maximum-length cases and the 0x5D transient exception. Low boundary diversity does not by itself imply poor deduplication or compression. [4]
Fixed partitioning alone does not describe a synchronization algorithm. Rsync can search for its fixed-length basis blocks at arbitrary source offsets. In Hesela's 36-case native-rsync experiment, forced delta transfer after a one-byte prefix insertion retained all 262144 basis bytes as matches at both tested block sizes. [5]
Equal entropy can hide different partitions: two synthetic 1048576-byte XOR-255 complements preserve substring equality within each stream, yet pinned optimized RAM at horizon 327 yields 1757 versus 3197 chunks without a cap. Ordered-byte comparisons change; these are occurrences, not unique stored objects or capacity savings. [7] [8]
In the rare-high partition, 10.42% of chunks exceed 1308 B but contain 38.51% of bytes. [10]
Relations
- related
- Metadedup, Data deduplication, FastCDC, Rolling hash, Chunk fragmentation, Gear hash, Delta synchronization, Deduplication side channel, Content-addressed storage, Content Identifier (CID)
Limitations
- Uniform logical-byte selection sees a containing-chunk mean of sum(length squared)/sum(length), not the occurrence mean. All positive lengths, including terminal chunks, count. [9]
- Byte-weighted tails count all logical bytes inside long chunks, not just bytes beyond the threshold; they do not estimate workload latency, capacity savings or edit amplification. [10]
Citations
- Muthitacharoen, Chen and Mazieres. A Low-bandwidth Network File System. SOSP 2001, sections 3.1.1-3.1.3.
- Hesela. Deterministic FastCDC framing experiment: byte counts and complete chunk manifests.
- Hesela. Exhaustive constant-byte FastCDC experiment: pinned 1.7.0 Python API, source hashes, exact reconstruction and independent recurrence checks.
- Hesela: native rsync after shifted offsets, with exact byte checks.
- Gregoriadis et al. Benchmarking Content-Defined Chunking Algorithms for Data Deduplication. arXiv:2610.13704v1, IV-C and Appendix B.
- cdchunking-rs, revision 06e9a82f7e6575b47aeefcc005ed5a3393a79ff6: RAMChunker and MaybeOptimizedRAMChunker.
- Hesela. Native RAM boundary experiment: 120 observations, source hashes, complete chunk lengths and analytical controls.
- Karl Sigman. Batch arrivals (2009), page 2, equations 3-4: discrete size bias and the second-moment ratio.
- Hesela. Exact byte-weighted exposure derived from six frozen RAM partitions, with a separate IID model.
Further reading
Sources & caveats
- Synthetic examples use the pinned pure-Python implementation with source hashes, exact byte equality and all terminal chunks; no speed or real-backup savings claim. [3]
- The RAM experiment uses constructed byte strings and unmodified Rust library revision 06e9a82f7e6575b47aeefcc005ed5a3393a79ff6; it is not a paper-performance replication. [8]
- RAM's uniform-IID mean averages conditional waiting times; the 2026 analysis distinguishes this from inverting mean success probability. The native variant and effective prefix length must also be recorded. [6]