compactions
Compactions are processes that reorganize data or memory to reclaim space, reduce fragmentation, and improve access locality. The term is used across several computing domains, including storage systems, databases, file systems, and memory management, where ongoing changes can leave behind outdated or scattered data.
In storage systems that use log-structured merge trees, such as LevelDB, RocksDB, and many NoSQL databases, compaction
In garbage collection, compaction is a phase that relocates live objects to eliminate gaps created by allocation
In file systems and storage architectures, compaction can refer to reclaiming space in log-structured or sparse
Trade-offs for compaction include increased CPU and I/O activity and potential pauses, which can affect latency.