Skip to content
Preprint

Tight Bounds for Memory Allocation With and Without Request Fragmentation

Aug 2026 · 1 citation · 48 references
Computer Science

TL;DR

This paper considers the following basic question: Does request fragmentation fundamentally change the problem of memory allocation, and if so, how, and finds that even using $k = 1 + o(1)$ request fragmentation, the optimal competitive ratiocollapses to $\Theta(\log M)$.

Abstract

The classical memory-allocation problem captures the task of placing objects of different sizes in memory, while minimizing the so-called memory high-water mark. It has been known since the early 1970s that the optimal competitive ratio for any deterministic online allocator is $\Theta(\log M)$, where $M$ is the volume high-water mark of the underlying request sequence. This paper begins with a simple observation: many real-world allocators seem to bypass the 1971 lower bound by adopting a slightly different model for memory allocation. These allocators use what we call $k$-aggregate request fragmentation, meaning that the memory allocator is permitted to break requests into multiple fragments, so long as the all-time maximum number of simultaneous fragments is at most $k$ times the all-time maximum number of simultaneous requests. We consider the following basic question: Does request fragmentation fundamentally change the problem of memory allocation, and if so, how? Our results come with several surprises. Among these, we find that even using $k = 1 + o(1)$ request fragmentation, the optimal competitive ratio---which was $\Theta(\log M)$ in the classical setting---collapses to $\Theta(\log \log M)$. This result is shown to be tight with matching upper and lower bounds, applying to both deterministic and randomized algorithms.

View source

Similar papers

Preprint Aug 2026

Paging with Per-Replacement Maximum Delay

Classical paging serves every miss immediately. We study paging with per-replacement maximum delay, where loading a pending page costs one movement plus the age of its oldest outstanding request and clears that page's entire episode. Equivalently, the holding rate is the number of pending pages. For cache size $k$, thr...

Tian-Han Lu, Run-Tian Ren, Sheng-Cai Liu · 0 citations
#machine learning Preprint Oct 2026

Exact Memory-Time Optimization for Prefix-Cached Language Model Serving

Retaining language-model prefix states trades recomputation against storage time. Optimizing each cached block independently can overcount savings: a resident block is usable only when the required preceding prefix is also available. We introduce Prefix-Certificate Retention (PCR), an exact finite-trace formulation for...

Shivam Gupta · 0 citations
Preprint Aug 2026

Memory Allocation for Constant-Bounded Programs

This work shows that constant boundedness enables a tight, polynomial-time approximation of optimal stack usage by viewing control flow as a tree and applying a tree-scan allocation strategy augmented with memory defragmentation, and guarantees memory usage bounded by the maximum live memory plus, at most, the size of...

V. Silva, Kael Soares, M. Pereira · 0 citations
Preprint Aug 2026

A Tight Linear Deterministic Competitive Ratio for Fully Online KV-Cache Scheduling

A fully online model for batching nonpreemptive LLM requests under a growing KV-cache memory constraint and it is proved that every deterministic algorithm has competitive ratio Omega(sqrt(n), while the elementary sequential upper bound is n.

Ian D'Ambrosio · 0 citations
Preprint Sep 2026

Don't let your Memory defy you: Fragmentation-Aware Serverless Allocation with Elastic Memory Locality

Serverless platforms commonly rely on bundled, memory-centric configurations, where CPU capacity follows the specified memory size. Resource decoupling reduces this waste, but can create external fragmentation by producing diverse CPU-memory shapes that leave residual capacity stranded across nodes. Memory disaggregati...

Achilleas Tzenetopoulos, D. Masouros, Sotirios Xydis et al. · 0 citations
#natural language process... Preprint Sep 2026

Prefix Sharing Is a Sorting Problem

A structure theorem: the minimum prefix-trie cost equals min_H sum_x w(x) t_x(H) over binary hierarchies H on the requests, where t_x(H) is the canonical decomposition size of the set of requests needing chunk x and choosing chunk orders is equivalent to choosing one hierarchy over requests.

Rong-Bei He · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.