Skip to main content
QUICK REVIEW

[Paper Review] Cost-oblivious storage reallocation

Michael A. Bender, Martı́n Farach-Colton|arXiv (Cornell University)|Apr 8, 2014
Advanced Data Storage TechnologiesComputer Science42 references8 citations
TL;DR

This paper introduces cost-oblivious storage reallocation algorithms that minimize both storage footprint and reallocation cost, achieving a footprint within (1+ε) of optimal while incurring reallocation costs within O((1/ε)log(1/ε)) of the original allocation cost. The algorithms are universally effective across subadditive cost functions without prior knowledge of the cost model, making them robust for diverse storage systems including RAM, disk, and flash memory.

ABSTRACT

Databases need to allocate and free blocks of storage on disk. Freed blocks introduce holes where no data is stored. Allocation systems attempt to reuse such deallocated regions in order to minimize the footprint on disk. If previously allocated blocks cannot be moved, the problem is called the memory allocation problem, which is known to have a logarithmic overhead in the footprint. This paper defines the storage reallocation problem, where previously allocated blocks can be moved, or reallocated, but at some cost. The algorithms presented here are cost oblivious, in that they work for a broad and reasonable class of cost functions, even when they do not know what the cost function is. The objective is to minimize the storage footprint, that is, the largest memory address containing an allocated object, while simultaneously minimizing the reallocation costs. This paper gives asymptotically optimal algorithms for storage reallocation, in which the storage footprint is at most (1+epsilon) times optimal, and the reallocation cost is at most (1/epsilon) times the original allocation cost, which is also optimal. The algorithms are cost oblivious as long as the allocation/reallocation cost function is subadditive.

Motivation & Objective

  • To address the limitations of traditional memory allocation, where fixed blocks cannot be moved, leading to high competitive ratios due to logarithmic lower bounds.
  • To model storage reallocation as a dynamic problem where previously allocated blocks can be moved at a cost, enabling reduced storage footprint.
  • To design algorithms that are cost oblivious—performing well across a wide class of subadditive cost functions without prior knowledge of the cost model.
  • To achieve near-optimal storage footprint while keeping reallocation costs within a constant factor of optimal, even when the cost function is unknown.
  • To deamortize the reallocation process, ensuring worst-case performance bounds without sacrificing amortized efficiency.

Proposed method

  • The algorithm uses a hierarchical buffer system with size-classed segments and a large tail buffer to prevent nested flushes and ensure progress.
  • It employs checkpointing and incremental flushes to distribute reallocation work across updates, maintaining amortized efficiency.
  • The system dynamically packs and unpacks objects in size classes, with flushes triggered when buffer thresholds are exceeded.
  • A key technique is the use of a temporary working space during flushes, which is larger to accommodate the tail buffer and ensure sufficient space for reallocation.
  • The algorithm leverages subadditivity of cost functions to bound total reallocation cost, ensuring that the cost remains within O((1/ε)log(1/ε)) of the original allocation cost.
  • Deamortization is achieved by spreading reallocation work across ε′X volume updates, ensuring worst-case cost per update is O((1/ε)wf(1)+f(Δ)) for size-w updates.

Experimental results

Research questions

  • RQ1Can storage reallocation be performed with a footprint within (1+ε) of optimal, regardless of the underlying cost function?
  • RQ2Can reallocation algorithms achieve near-optimal reallocation cost without knowledge of the cost function, provided it is subadditive?
  • RQ3How can the worst-case reallocation cost be bounded while preserving amortized efficiency?
  • RQ4What structural modifications (e.g., tail buffers, checkpointing) are necessary to deamortize the reallocation process?
  • RQ5Can the same algorithmic framework be universally effective across diverse storage media with varying cost characteristics?

Key findings

  • The storage footprint is guaranteed to be at most (1+ε) times the optimal footprint, achieving near-optimality in physical layout.
  • The total reallocation cost is bounded by O((1/ε)log(1/ε)) times the original allocation cost, which is within a constant factor of optimal when ε is constant.
  • The algorithms are cost oblivious: they perform well across all subadditive cost functions without requiring knowledge of the cost model.
  • The deamortized version ensures a worst-case reallocation cost of O((1/ε)wf(1)+f(Δ)) per update, significantly improving reliability for real-time systems.
  • The use of a tail buffer and checkpointing prevents nested flushes and ensures that flushes complete before new ones are triggered.
  • The analysis proves that any reallocation strategy that violates the footprint bound must incur a reallocation cost of at least Ω(f(Δ)), demonstrating the tightness of the cost bounds.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.