Improving storage efficiency in Magic Pocket, our immutable blob store
Apr 2, 2026Facundo Agriel

Summary
This post details the development and implementation of new strategies to address storage fragmentation in Dropbox's Magic Pocket immutable blob store, specifically targeting severely under-filled volumes caused by a new service. The new strategies include: 1. Enhancements to steady-state compaction (L1) to improve efficiency. 2. A new 'donor-less' compaction strategy that consolidates live data from under-filled volumes into new, densely packed volumes without relying on existing host volumes. 3. A targeted cleanup process for the sparsest volumes, which involves migrating live data to new volumes and retiring the old ones. These changes successfully reduced storage overhead by 15% and improved effective replication.
More from the Magic Pocket Storage Efficiency trail
- Improving infrastructure efficiency for growing demand in the age of AI
- Reducing our monorepo size to improve developer velocity
- Increasing Magic Pocket write throughput by removing our SSD cache disks
- Future-proofing our metadata stack with Panda, a scalable key-value store
- Everything in its write place: Cloud storage abstraction with Object Store