Repository & SSH Tuning
chunker_params: Buzhash Rolling vs Fixed Chunks (VM & DB)
Understand when Borg's default buzhash,19,23,21,4095 (2 MiB avg) beats fixed,4194304 for VM images, and how smaller chunks multiply hashtable RAM.
buzhash 2 MiB Avg · fixed 4 MiB VM · 4x RAM Impact
Why Finer Buzhash Parameters Quadruple Memory Usage
Lowering the buzhash window exponents from 19,23,21 to 17,21,19 drops average chunk size from 2 MiB to 512 KiB. That multiplies total unique chunks by 4x—turning a 5M-chunk repo (310 MB map) into a 20M-chunk repo (1.24 GB map).
Using Fixed 4 MiB Chunks for Proxmox Raw Images
In-place VM block writes rarely shift byte offsets across a raw disk image. Using fixed,4194304 cuts chunk metadata overhead in half while maintaining fast block-level deduplication.
Measured Thresholds & Borgmatic Configuration
| chunker_params Setting | Average Chunk Size | Best Workload & RAM Impact |
|---|---|---|
| buzhash,19,23,21,4095 (Default) | ~2 MiB (512 KiB - 8 MiB) | General files, SQL dumps, source trees (balanced chunk count) |
| buzhash,17,21,19,4095 (Fine) | ~512 KiB (128 KiB - 2 MiB) | High-churn binary files; creates 4x more chunks & 4x hashtable RAM |
| fixed,4194304 (4 MiB Fixed) | Exactly 4 MiB aligned | Raw QCOW2/ZVOL/LVM VM images; halves chunk count & index RAM |