arXiv:2608.25290cs.DSAug 2026

Manuscript Offprint

arXiv:2608.25290

Paging with Per-Replacement Maximum Delay

Tianhang Lu, Runtian Ren, Shengcai Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Classical paging couples every miss to an immediate replacement. We ask what remains of its algorithmic structure when a miss may wait. In our per-replacement maximum-delay model, loading a pending page costs one unit of movement plus the age of its oldest outstanding request and clears the whole page-specific episode. Equivalently, the instantaneous holding rate is the number of pending pages, rather than the number of pending requests.

The classical competitive hierarchy survives this change. For cache size kk, we give a deterministic (5k+3)(5k + 3)-competitive threshold-LRU algorithm and a randomized 5Hk5H_k-competitive algorithm against an oblivious adversary; classical lower-bound instances give matching Ω(k)\Omega(k) and Ω(Hk)\Omega(H_k) orders. The randomized algorithm uses cache-independent temporal windows to create an ordinary-paging sequence fixed before any random choices; a shadow paging algorithm is then projected onto nonproactive physical replacements.

The offline picture is less classical. We give an exact O(nk)O(nk) dynamic program with one hole, an exact configuration dynamic program for a fixed number of holes, and a deterministic nonproactive polynomial-time 5-approximation without fixing that number. Yet farthest-next-use victim selection can be suboptimal in the physical delayed problem already with three pages.

We also allow page-dependent fetch costs. If ρ=wmax⁡/wmin⁡\rho = w_{\max}/w_{\min}, weighted laziness and the exact fixed-hole algorithms persist, while a spread-sensitive reduction gives a (3ρ+2)(3\rho + 2)-approximation and deterministic O(ρk)O(\rho k) and randomized O(ρlog⁡k)O(\rho \log k) competitive transfers. Any additive term is inherited from the corresponding classical guarantee. A strict Ω(ρ)\Omega(\sqrt{\rho}) randomized lower bound already holds with one cache slot. Thus maximum delay preserves the unit-cost competitive hierarchy more robustly than classical offline optimality, but unequal fetch costs create a new timing uncertainty: repeated requests disappear from the urgency count, whereas cache state and the cost of displacing it remain.

Keywords: paging; online algorithms; competitive analysis; maximum delay; weighted paging; randomized algorithms; approximation algorithms

1 Introduction

Paging is a standard model of online computation. A cache holds k pages, requests arrive sequentially, and every miss is served immediately by loading the requested page and evicting a cached page. Three classical conclusions shape the subject: deterministic algorithms have the characteristic Θ(k)\Theta(k) scale, randomized algorithms have the Θ(Hk)\Theta(H_k) scale against an oblivious adversary, and the offline optimum admits Belady's farthest-next-use rule [8, 20, 13, 19].

A motivating systems abstraction. Consider a cache manager between a small fast memory and a slower backing store. Moving an absent page into the fast tier consumes transfer bandwidth and may evict a resident page. Modern nonblocking memory systems can combine concurrent misses to the same block: later misses join one pending entry, and a single returned block serves all of them [3, 4]. In the delayed-hits model, the first miss starts a fetch of fixed duration. We isolate a complementary scheduling question for a system that may also control when a pending fill is committed to a capacity-constrained cache. An eager fill reduces the current wait but may destroy a useful resident page and cause another transfer soon afterwards; postponing it preserves current hits but increases the age of the oldest request waiting for that page.

After normalizing one page transfer and replacement to unit cost, we model this design as paging with per-replacement maximum delay. Requests arrive on a continuous timeline and a miss may remain pending. When a page p is eventually loaded, the system pays one unit of movement plus the age of the oldest outstanding request to p, and all requests waiting for that page are cleared together. The delay term should therefore be read as the tail waiting time of a page-level fill obligation, not as the sum or average of individual request latencies. The unit-cost model isolates the timing effect. Section 6 later allows page-dependent transfer costs, as arise from heterogeneous retrieval paths, remote-storage tiers, or per-page processing costs under a fixed-slot abstraction.

The delay has a useful exact representation. If B(t)\mathcal{B}(t) is the set of pages that are both missing and pending at time t, then

Delay=∫0∞∣B(t)∣dt.(1)\mathrm{Delay}=\int_{0}^{\infty}\left|\mathcal{B}(t)\right|dt. \tag{1}

Thus the objective tracks active missing-page obligations rather than raw request mass. After one request has made a page pending, further requests to that page do not increase the holding rate. Requests to different missing pages remain separate obligations because clearing them requires separate replacements.

This accounting differs sharply from request-additive paging with delay. If one thousand requests arrive for the same absent page before it is loaded, a request-additive objective counts one thousand waiting requests. Here they form one pending page episode, so that page contributes exactly one to the holding rate until it is loaded. The difference is therefore in what creates urgency, not merely in a constant factor.

Waiting creates two coupled decisions absent from classical paging. The algorithm must decide when to end a pending episode as well as which cached page to evict. Moreover, an eviction determines which future request will become pending. This makes the usual rent-or-buy analogy incomplete: a pending page rents at unit rate and costs one to buy, but buying it changes the state in which every later rental decision is made. Randomization adds a further difficulty. If service times are derived from the physical cache, the sequence seen by a delayed Marker rule may depend on its earlier victim coins even when the raw timed input is oblivious.

Our main conclusion is asymmetric:

Maximum delay preserves paging’s competitive hierarchy more robustly than its classical offline optimality structure.

This statement describes the unit-cost model. With unequal fetch costs, the same structural tools survive, but arbitrary weight spread creates an additional timing difficulty already with one cache slot. In the unit-cost model, the online Θ(k)\Theta(k) and Θ(Hk)\Theta(H_k) orders survive, but not by merely slowing down classical algorithms. A page-specific timer supplies the missing temporal decision for LRU, while cache-independent windows give the randomized paging subroutine an input-determined request sequence fixed before its random choices. Thus the classical eviction rules remain useful only after a new timing rule removes the dependence created by waiting.

Offline, one hole admits a compact exact dynamic program, and a fixed number of holes admits an exact configuration dynamic program. The same temporal reduction used online also gives a polynomial-time 5-approximation for an unrestricted number of holes. Nevertheless, the physical delayed optimum need not obey farthest-next-use victim selection: waiting can make it optimal to evict a page requested sooner. Belady remains valid only inside the ordinary virtual paging instance used by the approximation. The exact complexity for an unrestricted number of holes remains unresolved.

The weighted extension makes a second boundary precise. Its structural tools remain valid, but both our upper bounds and a one-slot lower bound now depend on the weight spread. Unlike classical weighted paging, the delayed model must decide whether a cheap pending page should displace an expensive resident page before that resident is requested again.

Scope of the contributions. The results have three layers. Sections 2–5 give the core unit-cost paging theory. Section 6 is a full weighted extension and identifies a strict spread-dependent timing barrier. Appendix C is only a general-metric outlook: it gives a black-box transfer and isolates why a metric-independent theorem needs new ideas. Table 1 summarizes the first two layers.

One classical structural principle survives in an especially strong form. Although the model permits proactive loading, a causal discrepancy projection turns every schedule into a nonproactive one without increasing either its movement or its delay. Thus waiting is useful, but prefetching a page with no pending obligation is not; the final cache being free is essential to this statement.

These results have a simple explanation:

Page-wise maximum delay removes repeated requests from the urgency count but leaves persistent cache state intact.

Techniques. The proofs use three main ideas. First, the holding identity supports the event dynamic programs and charges timer length directly to an offline schedule without expanding repeated requests.

Second, two results use the same one-sided cache-discrepancy potential

Φ(S,C)=∣S∖C∣.\Phi(S,C)=|S\setminus C|.

When a shadow replacement costs f and a physical repair costs g, the local inequality

g+ΔΦ≤fg+\Delta\Phi\leq f

pays for the repair. Applied to an arbitrary schedule, this is the causal lazy projection: batch-time repairs reduce Φ\Phi for free and proactive movement is never needed. Applied after temporal aggregation, the same potential implements a classical sequence of shadow-cache states using only pending-page physical replacements. Weighting each term of Φ\Phi by its page's fetch cost gives the weighted form.

Third, the deterministic and randomized algorithms use deliberately different timing rules. Threshold LRU keeps the physical coupling and uses OPT phases to charge activations, timers, and quarantined exceptions. The randomized algorithm instead removes cache dependence before choosing victims:

rawinput⟶σθ⟶shadowpaging⟶physicalprojection.raw input\longrightarrow\sigma_{\theta}\longrightarrow shadow paging\longrightarrow physical projection.

The two comparison inequalities

ALG≤(1+θ)F,OPTpg(σθ)≤2Dθ+3M\mathrm{ALG}\leq(1+\theta)F,\qquad\mathrm{OPT}_{\mathrm{pg}}(\sigma_{\theta})\leq\frac{2D}{\theta}+3M

then have two uses: exact classical paging yields the offline factor five, while the optimal classical randomized paging guarantee yields the online factor 5Hk5H_k. Marker gives a simpler explicit 10Hk10H_k version. For weights, page-dependent windows and a two-part charge for bad representatives preserve the same architecture.