Dropbox
Dropbox logoDropbox · Feature trail

Magic Pocket Storage Efficiency

9 posts · May 2016 – Aug 2026

What this trail covers

Dropbox's Magic Pocket, an immutable blob store, faced increased storage overhead due to fragmentation caused by a new service that led to severely under-filled volumes. The existing L1 compaction strategy was insufficient to reclaim space efficiently from these sparse volumes. To address this, Dropbox developed a multi-strategy approach, including improvements to steady-state compaction and new methods for cleaning up the sparsest volumes, aiming to reduce overhead below previous baselines. This post details the new strategies for reclaiming space from under-filled volumes, including a new 'donor-less' compaction strategy and a targeted cleanup of the sparsest volumes, which successfully reduced storage overhead by 15% and improved effective replication.

All Dropbox trails