Skip to content

Research notes / Cache replacement

SIEVE cache eviction: one bit is not scan resistance

Updated / Source review and constructed trace replay

A cheap hit path does not guarantee a good eviction choice. SIEVE can retain a useful old entry without moving it, yet lose to LRU when the next request changes. Eight small replays make that distinction inspectable.

On this page22 sections

The position of a survivor matters

SIEVE maintains insertion order, a visited bit and a moving eviction pointer. A hit marks the entry without rearranging the list. Eviction clears marked entries as it passes them, stopping at an unmarked victim. Unlike CLOCK expressed as FIFO reinsertion, surviving entries stay in place instead of joining newcomers at the head. The two policies can therefore make different later choices despite using the same amount of visit history.[2]

The author implementation initializes a newly inserted object's visit state to zero; a subsequent hit sets it to one. Several hits before the next clearing pass still provide only one bit of evidence, not a frequency count. The pointer resumes after the removed entry. [3]

This is replacement, not the candidate-versus-victim frequency comparison used by TinyLFU. For that separate decision, see our existing cache-admission review. Machine-readable definitions: SIEVE and CLOCK replacement.

One-hit wonders: count objects, then name the window

A one-hit-wonder ratio counts distinct objects requested exactly once, divided by all distinct objects in the same observation window. It does not count cache hits. For AABC, B and C give an object ratio of 2/3 but account for only 2/4 requests. Neither denominator represents bytes.

S3-FIFO sizes its sampled sequences by unique objects, not requests. Its shorter-window finding motivates quick demotion; it does not say that every shorter trace prefix must have a higher singleton ratio. SIEVE similarly uses quick demotion to avoid retaining entries without prompt reuse. These are policy motivations, not identities between trace frequency and cache residency. [12, sections 3.1-3.2] [1, sections 2.1 and 5.1]

The paper's formal observation is about an expected ratio under a Zipf popularity model: the least-popular object has one request, and the subsequence ends in a one-hit wonder. Those assumptions matter when comparing that observation with an arbitrary prefix or the all-window counts below. Neither is the paper's sampling experiment. [12, section 3.1]

Constructed AABC trace. All complete overlapping request windows; S and U count singleton-object/window and distinct-object/window pairs, respectively. These are exact counts, not production measurements.
Requests per windowWindowsS / U pairsPooled ratio
144 / 41/1
234 / 54/5
324 / 54/5
412 / 32/3

The two three-request windows are AAB and ABC, with object ratios 1/2 and 1. Pooling their counts gives 4/5; averaging their ratios gives 3/4. Pooling weights each window by its distinct-object population. An identity can contribute to several overlapping windows, which are not independent statistical samples.

Observation is not destiny: appending BC to AABC removes both singleton classifications. Nor does the full-trace ratio identify cache misses: AABB and ABAB both have zero singletons, but a cold one-slot cache with immediate admission misses twice and four times, respectively. Retain ordering, admission, capacity and the observation horizon when evaluating a replacement policy.

The counting method and executable counter document the fixed-request-window convention. The table is generated from the checked example JSON; this is not a reproduction of either paper's workload measurements.

One changed request reverses the winner

Each row starts with an empty cache holding three equal-size objects. A letter identifies one object; every miss inserts it immediately. Counts include cold misses. We execute LRU, FIFO, CLOCK and SIEVE from libCacheSim 0.3.5, not a hand-written replacement engine. CLOCK uses one bit and an initial counter of zero. [4]

Hits / requests. Eight constructed traces; three object slots. No elapsed-time or device-speed measurements.
Request sequenceLRUFIFOCLOCKSIEVE
AABCDA1 / 61 / 62 / 62 / 6
AABCDB2 / 62 / 61 / 61 / 6
AABCCDBA3 / 83 / 82 / 83 / 8
ABABABAB6 / 86 / 86 / 86 / 8
ABCDEFGH0 / 80 / 80 / 80 / 8
ABCDABCDABCD0 / 120 / 120 / 120 / 12
ABCABCDEFABCABC6 / 156 / 156 / 156 / 15
ABCABCD3 / 73 / 73 / 73 / 7

After A,A,B,C, the three entries are resident. A has been revisited. Inserting D makes SIEVE clear A's bit, keep A and evict B. LRU instead evicts A, whose last access is older than B's and C's. Asking for A next rewards SIEVE; asking for B rewards LRU. The first two rows differ only in that final request.

The third row separates SIEVE from CLOCK. Both preserve A while admitting D, but CLOCK reinserts A among newer entries. When B misses next, CLOCK's eviction pass clears C and removes A. SIEVE leaves the earlier survivor in place and removes D instead. The final A is consequently a SIEVE hit and a CLOCK miss. The JSON records each hit and miss, not just totals.

The first three examples were selected by an exhaustive lexicographic search over A-D until it found a SIEVE win, a SIEVE loss and a CLOCK difference. They are counterexamples, not a representative sample. The remaining rows deliberately cover repetition, a cold scan, an oversized loop, scan recovery and a fully marked cache. No mean ranking across these handpicked cases has a workload-population interpretation.

In the warm-scan-return row, ABCABC warms the cache; DEF displaces it; ABCABC then returns. All four policies have three warm-up misses, three scan misses and three return-phase misses. A warm object is not protected forever by one earlier hit.

More cache can produce more misses

Capacity is another experimental variable, not a guarantee of improvement. Replay ABCDABEABCDE from an empty cache: FIFO misses nine times with three slots and ten times with four. This is a Belady anomaly, not evidence that the larger memory is physically slower. The historical result dates to Belady, Nelson and Shedler. [5]

Misses / 12 requests for ABCDABEABCDE. Cold start, equal-size objects, immediate admission; lower is better.
Object slotsLRUFIFOCLOCKSIEVE
112 / 1212 / 1212 / 1212 / 12
212 / 1212 / 1212 / 1212 / 12
310 / 129 / 1210 / 1210 / 12
48 / 1210 / 128 / 128 / 12
55 / 125 / 125 / 125 / 12

Our replay records why the counts diverge. After request seven, E, the three-slot FIFO queue is A,B,E; the four-slot queue is B,C,D,E. The next A is therefore a hit only in the smaller cache. FIFO retains insertion age rather than refreshing an entry's position on a hit.

LRU has a different guarantee: under the same full-associativity, equal-size and demand-admission assumptions, a smaller cache's resident set is contained in the larger one's after every shared request prefix. This inclusion property prevents capacity anomalies. It does not promise lower latency. The OSDI counter-stack work uses LRU locality to estimate miss-ratio curves; such a curve is policy-specific. [6]

Neither CLOCK nor SIEVE gets worse in this particular sweep. A different nine-request sequence below does make both policies worse when capacity grows from three to four slots.

A less familiar result: the ratio need not stop at two

Fornai and Ivanyi's 2010 construction gives 78 FIFO misses with five slots and 161 with six on the same 181 requests. We reproduce its section 3 example with seven suffix repetitions. Their broader unboundedness theorem varies capacities and traces; the paper explicitly distinguishes that result from fixed capacities, where the ratio is bounded. We replay finite examples, not the theorem's proof. [7, sections 3-5]

The observation window can reverse the comparison

The existing replay also separates the starting prefix from subsequent traffic. After 55 requests, six slots have one fewer miss than five; after 76, the larger cache has thirteen more. Each repeated suffix contains 21 requests and adds 7 misses at five slots but 21 at six. The cumulative comparison still includes the 34-request prefix, which initially favors the larger cache. [7, section 3]

Existing finite FIFO replay. Whole-run counts include the prefix; one suffix contains three cycles over seven equal-size objects.
Suffix repetitionsRequestsFive-slot missesSix-slot missesLarger / smaller misses
034291414 / 29
155363535 / 36
276435656 / 43
718178161161 / 78
30664239644644 / 239

A suffix-only window has a miss-count ratio of 3, while the 181-request whole run has 161/78. Neither is a miss probability: those probabilities divide each cache's misses by the same request count. Preserve the prefix, cold-start convention and observation window when comparing results; these constructed traces do not estimate a production workload's behavior.

Our new result JSON contains the five-size sweep, complete hit/miss strings, FIFO queue states, the numeric source sequence and five suffix lengths. The capacity replay uses the existing pinned engine. Independent queues check 7,290 FIFO/LRU cases and 2,916 adjacent-capacity LRU inclusion comparisons. Selected SIEVE outcomes are also checked against the existing oracle. These bounded checks are distinct from the earlier SIEVE test domain.

.venv/bin/python cache-capacity.py --output capacity-reproduced.json
.venv/bin/python cache-capacity.test.py
.venv/bin/python -O cache-capacity.test.py

Keep sieve-traces.py beside the new script, using the environment and versions in Reproduce. The regression tests reject invalid inputs, a wrong engine version and a corrupted oracle. The existing MIT code license also covers this extension.

For a real sizing decision, preserve request order, specify the observed cache layer and repeat the capacity sweep over relevant time windows. Filesystem caches filter the stream seen by lower layers; a whole-week aggregate can hide a recent phase change. These concerns are explicit in the counter-stack study. [6, section 2] Admission, expiration, varying object sizes and delayed fills need their own model. Do not turn these paging examples into SSD speed predictions.

SIEVE also has a capacity anomaly

Replay AABBCCDED from empty caches. Three slots give SIEVE five misses; four slots give it six. The extra slot delays an eviction pass, changing which visited bits get cleared before the next admission. The larger cache eventually discards D just before D is requested again.

Misses / 9 requests for AABBCCDED. Equal-size objects; immediate admission; cold misses included.
Object slotsLRUFIFOCLOCKSIEVE
16 / 96 / 96 / 96 / 9
25 / 95 / 96 / 96 / 9
35 / 95 / 95 / 95 / 9
45 / 95 / 96 / 96 / 9
55 / 95 / 95 / 95 / 9

After AABBCC, both caches contain A, B and C, all marked visited. With three slots, D triggers a full clearing pass and replaces A, leaving B,C,D. With four slots, D fits without any eviction or clearing; A, B and C keep their marks.

When E arrives, the three-slot cache removes the now-unmarked B and contains C,D,E. The four-slot cache clears A, B and C, reaches unvisited D and removes it, leaving A,B,C,E. The final D hits only in the smaller cache. This also exhibits a failure of resident-set inclusion after request eight: D is present in the smaller cache but absent from the larger.

CLOCK, configured here with one bit and an initial count of zero, has the same miss counts on this example. FIFO and LRU stay at five misses between three and four slots. The example demonstrates possibility, not the frequency of anomalies in production or a policy ranking.

The state trace and results record every visit bit, pointer and victim in a separate Algorithm 1 model. The replay script checks every hit/miss decision against libCacheSim 0.3.5 and the earlier oracle. It examines 7,012 normalized request strings at capacities three and four, stopping at this counterexample: 14,024 library/model comparisons. Names are normalized in order of first appearance, so AAB and CCD represent the same access pattern. The search covers at most five objects; it is not a sampling study or a claim of a previously unknown theorem.

This extension follows the paper's insertion and eviction rules in Algorithm 1 and the pinned author implementation. The counterexample is our constructed replay, not a result reported by the NSDI paper. [1, section 3.1] [3]

.venv/bin/python sieve-capacity.py --output sieve-capacity-reproduced.json
.venv/bin/python sieve-capacity.test.py
.venv/bin/python -OO sieve-capacity.test.py

Use the existing pinned environment. Keep sieve-traces.py, sieve-capacity.py, sieve-capacity.test.py and sieve-capacity.json in the same directory. The eight regression tests include invalid inputs, a wrong library version, a deliberately corrupted oracle and generated-result hash checks. For a real sizing decision, sweep the actual policy across candidate capacities; do not force an observed non-monotone miss curve to decrease.

A smooth estimate can hide a capacity anomaly

Kosmo estimates miss-ratio curves using eviction maps, but its output is nonincreasing. Support for FIFO does not mean exact preservation of FIFO's upward segments. [14, sections 1 and 3.2]

The LFU label alone does not specify the history model. Kosmo distinguishes counters retained after eviction from counters discarded on eviction and restarted at one on reaccess. The latter variant can violate inclusion. An ideal-LFU curve must therefore not be silently substituted for this reset-on-eviction model. [14, section 2.2 and Table 1]

The existing twelve-request FIFO trace supplies a precise check. At three slots the miss ratio is 9/12; at four it is 10/12. Let a and b be estimates constrained by a >= b. If both errors were smaller than 1/24, a would be below 19/24 and b above 19/24, contradicting that order. Thus at least one absolute error must reach 1/24, approximately 4.17 percentage points. Setting both estimates to 19/24 attains the bound at these two capacities.

Across the existing five-capacity sweep, a prefix minimum finds the largest upward difference D. Any nonincreasing estimate has maximum absolute error at least D/2. A suffix-maximum construction attains it. The derivation, exact rational results, standard-library calculator and independent tests retain the input hash and distinguish the mathematical fit from an estimator's actual output.

This is a maximum-error bound on selected capacities, not a bound on mean absolute error, a confidence interval or a measured Kosmo result. We have not run Kosmo. The original FIFO assumptions still apply: equal-size objects, empty starts and immediate admission of every miss. No additional trace or hardware measurement is introduced.

Miniature Simulations provides a different approach by simulating sampled caches at selected capacities. Its estimates still depend on sampling and configuration. [15] Keep the unsmoothed observations when checking an estimator; a decreasing chart alone cannot validate it.

Knowing the future is not enough when objects differ in size

Farthest-in-future replacement minimizes misses for equal-size demand-paged objects under the classical model. Mattson and colleagues call it OPT and distinguish it from Belady's earlier MIN. It is an offline benchmark requiring future references, not a deployable predictor. [17, pp. 93-95]

Now give A two size units and B, C and D one each, with a three-unit cache. Replay ABCDCAB from empty. Every miss must insert the requested whole object; all misses count equally and fills are immediate. Repeatedly evicting the resident object needed farthest in the future causes six misses in seven requests. An exact finite-state search finds a feasible plan with five.

The decisive choice occurs at the first C. A is needed at request six, B at seven, so farthest-next-use evicts B and keeps A,C. But keeping B,C instead frees room for D without another eviction. The later C hits; fetching A can evict C,D while retaining B, so the final B also hits. Four first references are unavoidable misses. A fifth is necessary: at D, keeping all of A,B,C for their later requests would already require four units, exceeding capacity. The five-miss witness therefore attains a lower bound established without relying on the search program.

Constructed controls. Misses include first references. Capacity is in abstract size units, not object slots or measured bytes.
Case / traceCapacityFarthest-next misses / requestsExact minimum misses / requests
Unequal sizes, mandatory
ABCDCAB
36 / 75 / 7
Equal sizes, mandatory
ABCDCAB
35 / 75 / 7
Admission required
ABCAB
24 / 54 / 5
Bypass allowed
ABCAB
23 / 53 / 5

The second row makes all four objects one unit: both methods yield five misses. The last two rows use one-unit A,B,C and expose a separate admission choice. On ABCAB, mandatory insertion costs four misses; allowing the one-off C to bypass the cache reduces the optimum to three. In that bypass control, farthest-next-use includes the requested object among eviction candidates. Compare a policy and its bound under the same admission contract.

For unequal sizes, Berger and colleagues' FOO formulation instead brackets the optimum: fractional retention provides a lower miss bound, and discarding fractional retention gives a feasible upper bound. Its asymptotic tightness needs stated independence assumptions. A feasible heuristic alone supplies an upper miss bound, not proof that improvement is impossible. [18, sections 2.4, 3.3 and 5]

The independent-reference assumptions are not required for the finite-trace bounds. They enter the separate theorem about the gap shrinking asymptotically. Correlated requests do not, by themselves, invalidate the lower/upper bracket; they do prevent treating that theorem as a promise of a narrow gap. The whole-object, no-prefetch capacity model must still match the question.[18, sections 2.1, 4.3 and 5.1]

Our result is a constructed counterexample, not a reproduction of FOO or a production-workload ranking. The search enumerates retained subsets on misses and minimizes request misses, not latency or fetched size. An independent forward state search checks 3,172 bounded cases. All objects fit individually; metadata, writeback, expiration and concurrent fetches are excluded.

Keep first references in the accounting

FOO's interval objective sums decisions between successive requests to the same object. An interval cost must be translated to the same accounting scope before comparing it with a complete cold-start replay.[18, section 4.2, equation 1]

In our ABCDCAB example, four first references miss under either policy. Removing those four from the reported six and five leaves two versus one repeat-reference misses. The improvement is one miss in either accounting, but the relative reduction is 1/6 of all baseline misses versus 1/2 after excluding first references. Neither percentage describes a different cache decision.

Starting empty with no prefetch makes the first-reference cost common to every policy on this fixed trace. Subtracting that constant preserves the optimizer, not the reported ratio. For a repeat-reference miss ratio, the denominator here is three repeat requests, not seven total requests. A warm-start experiment needs its own initial-state and measurement-window specification; simply subtracting cold misses does not create one.

Fewer misses can require more fetched data

Choosing an objective changes the optimum, not just the chart label. FOO's formulation uses unit miss cost, but its section 4 also describes nonuniform costs. Optimizing fetched payload requires charging each missed object's size instead of one. [18, section 4] Byte hit ratio and request hit ratio answer different questions.

Consider ABCABC, with A=3 and B=C=1 size units, an empty three-unit cache and bypass allowed. Each request fetches a whole object on a miss, including when bypassed. The six requests total ten requested size units. Minimizing misses gives four misses and eight fetched units; minimizing fetched units gives five misses and seven fetched units.

ABCABC; A=3, B=C=1; capacity 3; bypass allowed. Both objectives include cold misses. Abstract payload units, not measured network traffic.
ObjectiveMisses / requestsFetched size unitsHit size units / requested
Fewest request misses4 / 682 / 10
Fewest fetched size units5 / 673 / 10

To save requests, retain B,C and bypass the second A: both small objects hit on their returns. To save payload, retain A across the first B,C requests, which bypass: the second A hits, but the small objects miss again. Three cold misses cost five units. A occupies the entire cache, so its reuse cannot hit together with either small object's reuse. Saving both small requests avoids two misses but only two units; saving A avoids one miss and three units. No feasible plan attains both four misses and seven fetched units.

The byte-objective solver is checked against a separate forward search in 2,916 additional bounded cases. Complete cost-pair enumeration for this witness confirms the tradeoff, including voluntary eviction on hits. It is a constructed offline example, not a measured SIEVE result. Equal-size controls give the same choices for both objectives; neither objective alone minimizes latency, compressed traffic or physical I/O.

Download the four controls, objective comparison and every resident state, calculation, tests and MIT license. No third-party package is required. The JSON includes generation time, source hash, size units, admission rules and tie-breaking.

python3 model.py --output reproduced.json
python3 -B -m unittest discover -p test_model.py

Learn a useful victim, then measure saved bytes

Learning Relaxed Belady (LRB) learns to find a candidate with distant reuse, rather than identify the exact farthest future request. Its good decision ratio counts qualifying evictions, not bytes. The paper reports a ranking reversal on CDN-B1 at 512 GB: LeCaR has a higher good decision ratio than LRB but a worse byte miss ratio. A better proxy score is therefore not sufficient evidence of a better end-to-end result. [LRB paper]

The released simulator also separates observations from assigned labels. A later request supplies the distance since a sample was taken; expired nonresident metadata instead receives 2 * memory_window. Both pass through log1p for training. Treating the timeout label as an observed return time would turn a modeling choice into a false measurement. [LRB implementation] [Training labels]

Specify the clock and its origin. Here a request-index clock advances once per lookup, not once per distinct object. The observed label is next request index - sample index; sample age is a separate feature. The residual is not the complete inter-reference interval unless sampling coincides with the previous access. Nor is the label an LRU distinct-entry distance. [LRB implementation] [Training labels]

Constructed traces. A is sampled after zero-based request index 2 and next requested at index 4; no LRB training or sampling-policy replay.
QuantityA B B B AA B C D A
Full interval (requests)44
Sample age (requests)22
Residual label (requests)22
Distinct intervening identities13

The repeated B requests advance time without adding distinct identities. Moving the sample changes the residual without changing A's full interval. Example data, calculation and tests include immediate repetition and an unobserved return. A trace ending before reuse leaves the return unknown; it does not itself justify assigning the simulator's timeout label.

Before using a small replay to assess the learner, check which path ran. The pinned rank() falls back to LRU before training and when the oldest resident reaches the window age. Its learned path requests distinct candidates, with 64 configured by default. A short warm-up cannot be assumed to exercise model-based eviction. [LRB implementation] [Configuration]

When the candidate set is too small

The pinned sampler can stall before prediction. With a model present, an oldest-resident age below the memory window and fewer than 64 residents, its loop cannot collect 64 distinct keys. Repeated draws cannot enlarge a set beyond the available population. The LRU fallback masks this condition before training or at the window-age boundary. [LRB implementation]

Isolated rank() probe. Model presence is injected; prediction uses a test double. Window: 100 requests. Each timed-out call is stopped after two seconds, not measured as a latency result.
CaseResidentsBudgetOriginalCapped
untrained-636364returnedreturned
trained-636364timeoutreturned
trained-646464returnedreturned
trained-63-budget-636363returnedreturned
window-boundary-636364returnedreturned

The probe compiles the unchanged function at two optimization levels. The six calls entering an underfilled sampling loop time out before prediction; all sixteen capped cases return. The proposed local correction uses min(configured sample count, resident count) consistently for allocation, prediction and ranking. Nonempty residents and a positive sample count remain preconditions. This is not an upstream fix or a trained-policy evaluation. Method and limits, all results and replay script.

For a comparison, report the request prefix used for tuning, excluded warm-up, effective payload capacity after metadata, admission rules, and both missed requests and fetched bytes. Keep candidate-selection accuracy separate from these outcome counters. The existing exact offline example shows why changing the objective can change the preferred decision.

3L-Cache: keep the objective and comparison pairs

3L-Cache reduces learned-eviction work through selective training history and candidate sampling from both ends of the cache queue. Its byte-miss and object-miss results use different configurations, not one universally best policy. [3L-Cache, sections 4 and 5.2.2-5.2.3]

The pinned implementation ranks byte-mode candidates by predicted interval plus request-counter offset; object mode multiplies the interval by object size. Record the mode before comparing the result with LRB, SIEVE or another policy. [Prediction code]

Figure 10 uses the object-miss objective, according to section 5.3. The pinned plotting script instead defaults to the byte-mode command. Reproducing that figure therefore needs an explicit mode selection, as well as correct pairing and CPU counters. This is a configuration check, not evidence that the original experiment used the default. [Section 5.3] [Default command]

An artifact check before reproducing the plots

At commit 134cd159b635, the author's CPU plotting helper divides an N-by-1 baseline array by an N-element candidate array. This creates cross-trace pairs. It also selects the small-capacity inputs for both panels. An isolated replay of those statements gives a concrete counterexample. [Pinned plotting source]

Constructed inputs, not benchmark measurements. Each trace completes 1,000 requests. Ratios compare elapsed time.
TraceCache (bytes)Baseline (requests/s)Candidate (requests/s)Candidate / baseline time
A1001052
B100100254
A1000010101
B10000100502

The small-capacity pairs give 2 and 4, mean 3. Cross-trace division instead gives 2, 0.4, 20 and 4, mean 6.6. The large-capacity pairs give 1 and 2, mean 1.5. These are unweighted means across two hypothetical traces, not pooled CPU costs.

The corrected pairing helper matches trace, exact cache bytes, objective and completed-request count, rejecting missing or duplicate matches. A throughput ratio gives an elapsed-time ratio for equal work; CPU-time ratios additionally depend on average CPU utilization. Inputs and results, isolated replay output and method and limitations make the check reproducible.

Which average answers the question?

Let n be completed requests and B and C the baseline and candidate whole-run throughputs in requests/s. The paired elapsed-time ratio is B/C. The ratio of summed elapsed times is sum(n/C) / sum(n/B): a mean of paired ratios weighted by baseline duration, not by request count alone. The equal-trace mean instead gives each trace the same weight. Fleming and Wallace distinguish meaningful totals of raw benchmark times from summaries of normalized measurements. [Benchmark aggregation, rule 3]

Constructed inputs, not benchmark measurements. Candidate / baseline; ratios below 1 mean less candidate elapsed time. Each trace has 1,000 requests.
CaseEqual-trace meanBaseline sum (s)Candidate sum (s)Ratio of sums
small311024024/11
large3/211012012/11
direction-reversal21/41016060/101

The direction-reversal case uses baseline rates 10 and 1,000 requests/s and candidate rates 20 and 100 requests/s. Its paired ratios are 1/2 and 10: equal-trace mean 21/4, but ratio of sums 60/101. Different summaries can therefore favor different policies without an arithmetic error. Neither is automatically the correct target for a deployment.

A separate two-candidate example makes the ranking reversal explicit. Both baseline runs complete 1,000 requests in 1 and 100 seconds. Candidate X takes 1 and 200 seconds; Y takes 4 and 50 seconds. X has the lower trace mean, 3/2 versus 9/4, while Y has the lower total-time ratio, 54/101 versus 201/101. These prescribed rates describe no measured cache policy. A geometric mean supports multiplicative comparisons; it is not the suite's total time.

Summed per-run elapsed time is not concurrent makespan. It represents a sequential batch only when the runs compose without omitted overhead or changed conditions. This example does not measure CPU cost, energy or a 3L-Cache speedup. The aggregation helper and exact inputs, durations and weights expose both summaries.

Matching keys alone do not prove comparable experiments. Also retain trace identity and request order, timed prefix, warm-up exclusions, software revision, hardware, concurrency and repeat/seed metadata. Each throughput must be completed requests divided by elapsed time over the same timed work, not a mean of interval rates. These external conditions are not checked by the pairing helper. Exact arithmetic on rounded rates does not recover exact timings. The derivation and input contract explain the distinction. A bare fixed-byte summary rejects mixed capacities; a selected footprint-relative panel requires its explicit per-trace capacity map.

Measure CPU work, not only elapsed speed

The paper defines CPU overhead as CPU load multiplied by time and distinguishes simulator stress replay from HTTP-prototype monitoring. Its measurement claim is broader than the later plotting helper. This artifact check does not invalidate or reproduce the paper's CPU measurements. [Sections 2.1, 5.1 and 5.3]

For completed requests n, elapsed time t and CPU time c over the same measured scope, throughput is n/t, CPU cost per request is c/n and average CPU usage in cores is c/t. For equal work, CPU ratio = elapsed-time ratio * average-core ratio. In a constructed example, the baseline completes 1,000 requests in 10 elapsed seconds using 10 CPU seconds; the candidate takes 5 elapsed seconds and 20 CPU seconds. It is twice as fast but uses twice the CPU time, with mean usage of four cores. These are prescribed counters, not cache measurements. The counter-based helper and exact examples keep these quantities separate. A zero baseline CPU counter leaves the ratio undefined; nanosecond units do not guarantee that accuracy.

Python's process CPU clock includes the calling process, not separate workers. On Unix, RUSAGE_SELF covers its threads and RUSAGE_CHILDREN covers terminated, waited-for children, not a live worker tree. A clock around a parent waiting for a worker can therefore miss most of the CPU work. [Clock contract][Resource-accounting contract]

Our bounded process probe runs a checksum-verified calculation in one child and records three local observations. The parent's process clock and waited-child counters account for different work. The child's inner loop excludes interpreter startup and exit, unlike its lifetime accounting. Read boundaries and clock resolution differ, so exact counter equality is not an acceptance condition. These observations diagnose instrumentation, not cache performance or energy. The measurement method explains scope, unrelated-child contamination and reproducibility limits.

Unequal sampling intervals change the weights

CPU load multiplied by elapsed time needs a time-weighted average over that same window. For adjacent intervals, let d be elapsed time and c the increment of one cumulative CPU counter. The interval rate is c/d; whole-window average cores is sum(c) / sum(d), not the unweighted mean of those interval rates. Polling delays and a short final interval can make the distinction matter.

In a constructed ledger, four CPU seconds occur in the first elapsed second, followed by nine idle seconds. The total is four CPU seconds and the average is 0.4 cores. Averaging the two interval rates gives two cores; multiplying by ten seconds incorrectly reports twenty CPU seconds. Splitting the idle interval changes that plain mean again, without changing the work. The interval helper and generated counterexample retain the correct total and reject gaps, overlap, counter decreases and discontinuous boundaries. These are synthetic counters, not measured cache performance. Instantaneous gauge samples require a separate interpolation model; they are not cumulative-counter deltas.

The percentage convention matters too: psutil process CPU percentage can exceed 100%, whereas the host-wide value is normalized across logical CPUs. Its first nonblocking CPU-percentage call is not a measurement of idle time. These API facts do not establish that the paper used psutil or made either mistake. [Percentage contract] The sampling method and limits explain counter epochs, hidden resets and why sparse endpoints retain totals but cannot recover short-lived peaks.

This checks a later artifact revision with synthetic inputs and a minimal table adapter. It does not run the full simulator, train the model, or establish that the published paper figures used this script. The upstream repository is unchanged.

Constant hit work is not constant eviction work

For ABCABCD, all three visit bits are set before D arrives. Our independent model inspects A, B and C, clearing each bit, then inspects A again and evicts it: four candidate inspections for one miss. These are model operations, not instrumentation of library CPU instructions.

For a capacity C and no concurrent hits, that fully marked state needs C+1 inspections to select a victim. That does not imply every miss costs C+1: each clearing consumes a mark established by a previous hit. Separating worst-case work for one eviction from total work over a request history avoids treating a cheap average as a tail-latency guarantee.

In the four-object loop, none of the four policies hits at all. For this trace the miss counts tie, even though their internal metadata work differs. Neither observation measures backend latency, lock contention or NAND reads. Equal hit counts are not evidence of equal application speed.

FIFO order does not determine flash wear

Plain FIFO needs no queue reordering on a hit. That is a policy property, not a claim that a complete cache performs no metadata updates or synchronization. Compare it with the implementation-specific LRU costs.

S3-FIFO reported more than six times the optimized LRU throughput at 16 threads in CacheLib on a synthetic Zipf workload (alpha = 1.0) with 4 KB objects. Its 6594-trace miss-ratio study is a different experiment. In the flash-admission comparison, every scheme used FIFO for flash eviction; the admission filter changed. The flash cache held 10% of the trace footprint in bytes; DRAM budgets were 0.1%, 1% or 10% of that flash capacity. Reported write bytes were normalized to unique trace bytes, not NAND bytes divided by host-written bytes. Neither result is a universal speed or endurance multiplier. [12, sections 5.1, 5.3-5.4]

The request count and object population both scale with thread count: one million objects and 100 million requests per thread. The stated generator therefore uses 16 million objects and 1.6 billion requests at 16 threads, versus one million and 100 million at one thread. This is not a fixed-working-set speedup curve. Keep the offered workload and cache allocation explicit when comparing concurrent implementations. [12, section 5.3]

Flashield separates cache-level rewriting of retained objects from device-level relocation during garbage collection. Large sequential segments can reduce device work while retaining hot objects during segment reclamation still costs writes. Thus, FIFO order alone cannot establish zero write amplification. [13, sections 2.1-2.2] For a deployment comparison, record admitted bytes, cache rewrite bytes and measured device writes with their respective denominators. This is a source-based measurement checklist, not a reproduction of either paper's flash or throughput experiments.

Below one is not a device-efficiency verdict

Flashield's section 5.1 reports a simulated cache-level median of 0.54 on week-long Memcachier traces. Its hardware microbenchmarks are separate. Do not read that median as NAND bytes divided by host bytes. [13, sections 5.1-5.2]

For a transparent example, let I count offered payload bytes, A the first-admitted subset, H all host writes including rewrites and metadata, and N device-internal writes. Use the same interval, byte units and accounting scope. When I, A and H are positive, N/I = (A/I) × (H/A) × (N/H). This is cancellation of matched counters, not a prediction model. It does not justify multiplying separately reported medians or ratios from different workloads.

Constructed byte ledger. No Flashield execution or device measurement; all counters are bytes.
ScenarioOffered IAdmitted AHost HInternal NN/I
Filtered10002002505001/2
Unfiltered10001000125025005/2
No admission, maintenance writes1000020401/25

The first row admits 1/5 of the offered bytes. Its host/admitted ratio is 5/4 and its internal/host ratio is 2, yet the end-to-end ratio is 1/2. The unfiltered row has the same latter two ratios but writes five times as many internal bytes. This example says nothing about either row's hit rate, latency, durability or usefulness.

Zero admission is not necessarily zero writing: the final row assigns 20 host bytes to maintenance and 40 internal bytes. H/A is undefined, so multiplying a zero admission fraction by an invented zero rewrite factor would hide real work. Report the observed counters directly.

Do not pool this with RIPQ's original FAST 2015 evaluation: its sampled photo traces span 15 days, with ten days for warm-up and five for measurement. RIPQ buffers writes and delays priority-driven relocation; it is not the same policy or population as the later Memcachier simulation. [RIPQ, sections 4 and 6.1]

Recheck the arithmetic with the input/output JSON, standard-library Python model and tests. The examples assume each offered byte is admitted at most once and no compression before the host boundary. Re-admission, carry-in data or mismatched telemetry intervals require a different ledger.

More flash hits can still mean more disk reads

CacheSack accounts for a RAM buffer below flash. Its production comparison found that the policy with the highest flash hit ratio had the poorest disk-read reduction. Its objective includes disk reads, flash writes and storage cost. Latency reduction was not its explicit goal. [CacheSack, sections 3.4 and 7.1]

Policy fractions apply to fractions of blocks within a category; they should not be interpreted as a fresh admission coin toss on every request. The reported five-minute training interval can use older access history from the ghost cache. The paper gives a sufficient condition: ghost-cache TTL exceeds the optimal modeled retention time, not every candidate horizon. Resetting counters is not forgetting earlier accesses. Finally, the relative cost weights are not disclosed. The public paper therefore supports the mechanism, but cannot supply a portable dollar-saving forecast. [CacheSack, sections 5.4 and 6.3-6.5]

Here each completed read ends at exactly one tier. A miss at both caches causes one disk read; there is no prefetch, coalescing or background I/O. These are prescribed counters, not runs of CacheSack or competing policies on a common trace.

Constructed read-request counts. Buffer hits count only requests that missed flash.
CaseReadsFlash hitsBuffer hitsDisk reads
A: more flash hits100702010
B: fewer disk reads10060355
Empty interval0000

A has 70/100 flash hits but 10 disk reads; B has 60/100 and only 5. The buffer-local hit fractions are 20/30 and 35/40, not 20/100 and 35/100. For N reads, F flash hits and B buffer hits, D = N - F - B. An empty interval has undefined ratios, not a measured zero miss rate.

This accounting does not establish a causal benefit of changing policies. Real systems also need matched byte, write and occupancy counters; the preceding Flashield example shows why the write denominator matters. Reproduce the arithmetic with the JSON, Python calculation and tests.

One backend fetch can leave four readers waiting

The earlier replacement replays insert an object immediately on a miss. They therefore cannot calculate waiting time while a fetch is still in flight. A delayed hit joins that outstanding fetch instead of starting another one, but the requested data is not yet resident. Atre and colleagues distinguish this case from a resident hit and show why maximizing hit ratio need not minimize latency. [8, section 2]

Our new example removes eviction entirely: one immutable object, an empty one-slot cache and four reads of A. The first read starts a successful 10 ms fetch. Pending reads share it through request coalescing. The object stays resident afterwards. Completion precedes arrivals at the exact fill timestamp; resident service and releasing waiters take zero time.

Four requests, one fetch per row. Prescribed arrivals, not measured latencies. All times in milliseconds.
ArrivalsDelayed / resident hitsWaitsMean wait
0, 1, 2, 33 / 010, 9, 8, 78.5
0, 9, 10, 111 / 210, 1, 0, 02.75
0, 10, 20, 300 / 310, 0, 0, 02.5

Each row has the same reference string, AAAA, and one backend fetch per four requests. An immediate-fill accounting model counts three hits and charges only 10 / 4 = 2.5 ms per request. With arrivals at 0, 1, 2 and 3 ms, the actual waits in our delayed-fill model are 10, 9, 8 and 7 ms: 34 / 4 = 8.5 ms. Fetch count is unchanged, yet none of those reads is a resident hit. Across the three rows, resident-hit fractions are 0/4, 2/4 and 3/4. Neither the request order nor the fetch count alone identifies them.

The calculation is simply max(0, fill time - arrival time)for each read. Summing these waits also equals the area under the number-of-waiters curve. Our tests check that second accounting method on 2,048 bounded arrival schedules, plus simultaneous arrivals, completion-time equality and invalid inputs. This is arithmetic for a single fetch, not a new replacement engine or a reproduction of a paper's benchmark.

A recent NSDI study proposes separate recency, frequency and burstiness stages. Importantly, its trace timestamps are real but fetch delays are assigned from distributions: the traces lack those measurements. Its comparisons are conditional on that enrichment, not measurements of the original storage devices. [9, sections 1.1 and 4]

For an operational comparison, record request arrival, fetch start, fetch completion and response completion separately. Count resident hits, joined requests and backend fetches with explicit denominators. Do not infer response latency from the count of fetches avoided. Our example excludes contention, errors, invalidation, cancellation and post-fetch processing; the SIGCOMM paper also flags processing queues as a model limitation. [8, section 6]

Download the full event table, calculation and tests. Keep these three files together and run the commands below with Node.js. The MIT license covers our code and constructed results, not the cited papers.

node delayed-hits.mjs > reproduced.json
node --test delayed-hits.test.mjs

An extra resident hit can postpone a useful fetch

A hit avoids starting a demand fetch. If the object is evicted soon afterwards, later requests can therefore wait longer. Manohar and Williams prove that delayed-hit latency need not decrease when a schedule gains a resident hit. This differs from increasing cache capacity and observing more misses. [19, sections 1.1 and 4]

Our constructed comparison starts empty with one slot and equal-size, immutable A and B. Requests arrive at 0 ms (A), 1 ms (B), 10 ms (A), 15 through 19 ms (A each millisecond), then 30 through 39 ms (B each millisecond). Each fetch takes 10 ms; requests for an in-flight object share it. Completion precedes arrivals at the same timestamp. The finite-state model of Gurushankar and colleagues likewise separates fetch-triggering misses from joined requests and makes admission timing explicit. [20, section 2]

Model conventions matter here. Manohar and Williams process requests before retrievals within a timestep and forward each nonresident request, even if a fetch for that object is already outstanding.[19, section 2.1] Our example instead coalesces those requests and processes a completion before an equal-time arrival. In-flight fetch buffers are outside the single resident slot. These numbers are calculations for our stated model, not a replay of the 2020 theorem construction or a paper benchmark.

Same 18 requests, one resident slot and 10 ms fetch delay. Constructed schedules, not device measurements.
Initial A admissionResident hits / requestsBackend fetchesTotal wait (ms)
Bypass first A10 / 18345
Retain first A11 / 18360

Both schedules retain B when it arrives at 11 ms and bypass subsequent A fills. Bypassing the first A makes the 10 ms request start a fetch completing at 20 ms. That request waits 10 ms; the five later A readers wait 5, 4, 3, 2 and 1 ms. Retaining the first A saves the 10 ms wait, but suppresses that fetch. After B replaces A, the 15 ms request starts a fetch completing at 25 ms; those five readers wait 10, 9, 8, 7 and 6 ms. Saving 10 ms adds 25 ms elsewhere.

The two initial requests contribute another 20 ms in either schedule. Total waiting is therefore 45 versus 60 ms, with three backend fetches each. Only the 10 ms request changes resident-hit status. An independent tick-by-tick enumeration confirms these feasible schedules. No recommendation to discard useful data follows: these are prescribed arrivals with bypass allowed, independent fetches, no contention and no response-processing cost. In-flight buffers and request metadata are outside the one-slot resident budget; a fixed total-memory comparison must account for those resources separately. The immediate-fill oracle above cannot score this timing objective.

Download the event and fetch ledger, schedule replay and independent checks. These constructed results and code use the same MIT license as the offline example.

python3 latency.py --output reproduced.json
python3 -m unittest test_latency.py

Remembering a page does not retain its bytes

CLOCK-Pro retains some evicted-page metadata for reuse tests. Its hot, cold and test hands have different jobs; the test period is not a wall-clock TTL. The historical evaluation combines trace replay with a Linux 2.4.21 prototype, not a current-kernel benchmark. [10]

A history entry is evidence for replacement, not another resident data slot. CAR likewise separates resident clocks from nonresident histories and uses history misses to adapt their allocation. [11, section III]

Interpretation checklist, not measured outcomes or a policy ranking.
ObservationWhat is available?What must not be inferred?
Resident hitCached payloadA latency bound without measuring the service path
Nonresident history matchRetained identity or reuse historyThat the payload can be served without a fetch
No history matchNo retained record at this layerThat this object has never been requested

Terminology is system-specific: Flashield's ghost-marked object can still supply its current value before segment reclamation. A read can restore its hot status. It is not ARC-style nonresident history. [13, section 4.3]

Read-history metadata can create writes

The original LRU-K paper identifies a less obvious placement cost: recording access timestamps in database-page headers would require writing back pages whose application data was only read. It therefore keeps history in a separate memory-resident structure. Deleting that history whenever payload leaves can repeatedly classify a recurring page as new. [16, section 2.1.2]

The retained-information period governs the lifetime of metadata, not how long a page must remain resident. LRU-2 can reuse an earlier reference only while that history is remembered. Shortening this window can change the retention decision even at the same payload capacity. The paper's roughly 200-second example is tied to its historical cost model, not a default for modern caches. [16, section 2.1.2]

This is a design trade-off, not a measured write-amplification result from our traces. Evaluate where history lives, how it expires and whether maintaining it generates storage writes; metadata bytes alone do not describe its whole cost.

For a fair comparison, account for metadata bytes as well as data slots. Also separate list-maintenance cost from synchronization of the whole cache: avoiding LRU's shared recency-list update removes one contention point, not every possible lock. [11, sections I.B-I.C] Our replays above do not execute CLOCK-Pro or CAR, charge metadata memory, or test concurrent access. Their counts cannot rank these additional policies.

Linux reclaim is not an exact LRU trace

Multi-Gen LRU groups approximate access recency rather than maintaining an exact order for every memory reference. The distinction matters when translating a cache trace into a claim about Linux page reclaim. The following review is pinned to Linux v6.12, not every kernel or distribution configuration. [21]

Different signals, different meanings in Linux v6.12; not benchmark results.
SignalWhat it representsWhat it is not
GenerationA group with similar access recencyAn exact ordering of individual accesses
TierA frequency category for file-descriptor accessesA separate LRU list or storage-media tier
Refault feedbackEvidence for adjusting protectionA resident payload hit

The design uses page-table observations and file-descriptor access information differently. Its controller advances on generations, not fixed wall-clock sampling intervals. A generation number is therefore not a request counter. [21]

The classic refault-distance formula is a different path. In v6.12, workingset_refault() branches to lru_gen_refault() and returns when MGLRU is enabled. A shared word such as "refault" does not make the two decision rules interchangeable. [23]

Protection can end in OOM

The documented min_ttl_ms option protects a recent working set from eviction. If that working set cannot fit in memory, the OOM killer can be triggered; increasing this value is not a free latency improvement. Zero disables this protection. This mechanism is not a per-file retention contract or evidence that writes reached durable storage. We did not change the setting or induce memory pressure. [22]

The experimental debugfs histogram is noncumulative: each memory-cgroup/node group reports estimated page counts by generation. Do not subtract adjacent rows as though they were cumulative counters, mix node scopes, or read page counts as bytes. Record the kernel, enabled components and observation scope before comparing results. [22]

CLOCK-Pro's paper explains why per-reference bookkeeping is costly in virtual memory and evaluates a Linux 2.4.21 prototype. That motivates caution about exact LRU models; it does not benchmark MGLRU or identify the policy enabled on a present-day host. None of our constructed SIEVE traces execute MGLRU. [10, sections 1.1 and 5.2]

A faster foreground can mean a slower scan

cache_ext moves the discussion from choosing a named algorithm to supplying application knowledge. Its GET/SCAN policy identifies scan threads and preferentially selects their cached folios for eviction. [cache_ext, section 5.5]

Author-reported changes versus the default Linux policy. LevelDB mixed GET/SCAN experiment; not Hesela measurements.
Request classMetricReported change
GETthroughput70% increase
GETP99 latency57% decrease
SCANthroughput18% decrease

The mix was 99.95% GET requests and 0.05% SCAN requests, with separate thread pools. The paper's test platform used Ubuntu 22.04 and Linux 6.6.8; CPU pinning, disabled SMT and swap, and cache drops were part of its setup. These are workload-specific results, not a ranking of current Linux distributions. [cache_ext, sections 6 and 6.1.4]

Interpretation: the GET gain and SCAN loss describe different populations. Request share is not byte share, and these percentages cannot be added into a whole-workload speedup. Check the background task's completion objective as well as foreground tail latency. The structured source extraction records the metric, population, baseline and limitations together.

The artifact needs a modified Linux 6.6.8 kernel and supporting BPF tools. A developer can then change a policy without another kernel edit; that does not make the framework an add-on for any stock kernel. Its repository also includes application and benchmark components. No kernel was installed and no author benchmark was reproduced for this review. [pinned artifact README]

The authors' 2026 presentation separates per-cgroup policy hooks from unresolved live-switching and cgroup-lifetime work. Treat the paper's prototype, a later implementation and a distribution feature as different claims. Policy isolation alone does not establish resource fairness or an application latency guarantee. [2026 presentation]

Baleen: better hit ratios can still mean more HDD work

Baleen couples learned admission and prefetching under a flash-write budget. Its residency episodes support training; they are not a running cache's knowledge of future requests. The FAST 2024 evaluation uses seven Meta traces, training on the first day and testing on later days. [Baleen, sections 3.4 and 5]

The paper estimates backend work as fetch count * seek cost + fetched bytes * transfer cost per byte. Charge the bytes actually fetched, including extra prefetch traffic. This is modeled disk-head time, not end-to-end request latency. [section 3.1, equation 1]

Constructed counterexample. Each row below prescribes 100 one-MiB requests and one backend fetch per demand miss. Assume 10 ms per positioning operation and 5 ms per MiB transferred. These parameters and counters are hypothetical, not measurements from the paper.

Exact counter accounting. Extra fetched bytes are charged even when they produce no demand hit in this observation.
LedgerDemand hits / requestsFetchesFetched MiBModeled work (ms)
A: demand-only90 / 1001010150
B: expanded fetches95 / 100540250
C: B without extra bytes95 / 1005575

B improves both demand request and byte hit ratios from 90% to 95%, yet costs 250 ms rather than 150 ms: five positioning operations save 50 ms, but 30 extra MiB cost 150 ms. C holds B's demand hits constant and removes the extra traffic, giving 75 ms. It is a counterfactual accounting control, not proof that a cache could obtain those hits without earlier prefetching.

The ranking depends on the cost assumptions. At 1 ms per MiB, A costs 110 ms and B costs 90 ms. No row claims feasibility under identical cache capacity, initial state or flash-write budget. We test a metric implication, not which policy wins on a real trace.

Peak is a separate question. In two hypothetical one-second windows on one HDD, 150 ms then zero and 75 ms then 75 ms both average 7.5% of available disk time. Their peaks are 15% and 7.5%. Baleen's published peak metric instead uses ten-minute windows; its admission and prefetch policies optimize average work rather than explicitly scheduling admission for peaks. [author's design explanation]

The generated ledger, standalone Python model and tests expose every input. Run python3 model.py --check beside the JSON. The author artifact separately documents the RejectX baseline and Baleen training/simulation. Neither has been executed for this source review; our arithmetic does not reproduce a published performance or cost-saving percentage.

What an eviction learner can observe

LeCaR samples between LRU and LFU using learned weights. A later miss on a remembered victim changes those weights; it is not a comparison of two independent caches' hit rates.[LeCaR, section 3]

CACHEUS adapts the learning rate as well as the weights. Its C3 variant changes the experts to SR-LRU and CR-LFU, addressing scans and churn separately. Choosing among weak candidates and improving the candidates are different interventions.[CACHEUS, sections 3-5]

Source-reviewed attribution cases, not measured trace outcomes.
EventFeedback for expert weights
Remembered victim returnsPenalize its recorded eviction expert.
Victim has left historyNo attribution remains for that eviction.
Experts nominate the same victimSkip attribution history in the pinned implementations.

The consensus branch appears in CACHEUS Algorithm 1 and in both pinned implementations. Consequently, an unchanged weight is not proof of a good eviction: feedback is bounded and selective.[CACHEUS, Algorithm 1] [LeCaR code] [CACHEUS code]

Pin baseline semantics before comparing hit ratios. The CACHEUS paper describes random tie-breaking for classic LFU, but the pinned standalone implementation evicts the most recently used item among equal counts. Its LeCaR expert instead breaks such ties by block identifier and can restore counts from eviction history. Repository labels alone therefore do not establish equivalence with paper baselines; this is not evidence that the historical results are wrong.[CACHEUS, section 5] [Standalone LFU code] [LeCaR code]

This is a mechanism review, not another policy in the trace experiment above. Any performance comparison needs its own cache size, workload, history budget and random-seed protocol.

What the paper establishes, and what it does not

The NSDI 2024 evaluation covers 1,559 web-cache traces from seven sources, including two proprietary CDN collections. Its main efficiency comparison ignores object-size variation and replays requests with immediate fill. The reported greater-than-twofold throughput advantage at 16 threads is a CacheLib prototype result on a Meta trace; cache and working-set sizes grow with thread count. It is not a universal speed multiplier.[1, sections 4.1-4.3]

Section 7.2 explicitly identifies lack of scan resistance: some block-cache workloads have higher SIEVE miss ratios than LRU. These results do not establish the replacement policy of any retail SSD, nor justify replacing a storage cache without tracing its workload.[1, section 7.2]

Our replay neither reproduces that study nor validates its multicore benchmark. It tests a narrow algorithmic distinction using a later library release. There is no sampling confidence interval for these fully specified sequences; the uncertainty is whether a real workload resembles them.

Before a deployment comparison, hold the observed request stream, cache budget and admission rules constant. Include object sizes, metadata, expiration, writes and refill delays where relevant. Measure backend work and response-time distributions separately from hit ratio. Preserve negative results when the simpler policy is already sufficient.

Replay and check every decision

The result JSON contains all sequences, H/M outcomes, assumptions, versions and the script hash. The Python replay script checks SIEVE against a separate list-based model for all 729 six-request strings over A-C at capacities one, two and three, plus all 65,536 eight-request strings over A-D at capacity three: 67,723 comparisons. The larger set includes the CLOCK counterexample above. This bounded check does not prove correctness for all inputs or concurrent use.

python3 -m venv .venv
.venv/bin/pip install libcachesim==0.3.5
.venv/bin/python sieve-traces.py --output reproduced.json

The recorded dependency versions describe our isolated Python 3.12 environment. Use --discover to repeat the counterexample search. There is no random seed because enumeration and the input traces are deterministic. Different Python versions change the environment field, not the expected hit/miss sequences.

The regression tests also reject invalid inputs, a mismatched library version and an intentionally broken oracle, including under Python's optimization mode. The generated JSON records the two exhaustive domains and its actual generation time. Hesela's script, tests and constructed results use the MIT license.

libCacheSim's Python package is GPLv3+; its upstream code and the research paper retain their respective rights. No library binary, private trace or paper figure is redistributed here.

Primary sources

  1. Yazhuo Zhang, Juncheng Yang, Yao Yue, Ymir Vigfusson and K. V. Rashmi. SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches. NSDI 2024, pp. 1229-1246; sections 3, 4 and 7.2.
  2. Yang and colleagues. SIEVE: Cache eviction can be simple, effective, and scalable. USENIX ;login:, 16 June 2024. Author explanation of list ordering.
  3. NSDI24-SIEVE author artifact, commit 0861f8261c37b8286a70449a1defb5a4749c72d2: Sieve.c, insertion and eviction operations.
  4. libCacheSim Python binding 0.3.5. Version used for Hesela's constructed trace replay, not the original 2024 evaluation binary.
  5. L. A. Belady, R. A. Nelson and G. S. Shedler. An anomaly in space-time characteristics of certain programs running in a paging machine. CACM, 1969. IBM Research publication record.
  6. Jake Wires, Stephen Ingram, Zachary Drudi, Nicholas J. A. Harvey and Andrew Warfield. Characterizing Storage Workloads with Counter Stacks. OSDI 2014, pp. 335-349; sections 2-3.
  7. Peter Fornai and Antal Ivanyi. FIFO anomaly is unbounded. Acta Univ. Sapientiae, Informatica 2(1), 2010, pp. 80-89; sections 2-5, arXiv:1003.1336v2.
  8. Nirav Atre, Justine Sherry, Weina Wang and Daniel S. Berger. Caching with Delayed Hits. SIGCOMM 2020, pp. 495-513. DOI 10.1145/3387514.3405883; sections 2 and 6.
  9. Nadav Keren, Gil Einziger and Gabriel Scalosub. Latency-Aware Caching with Delayed Hits: From Bursty Traffic to Pipeline Architectures. NSDI 2026, pp. 2389-2405; sections 1.1 and 4.
  10. Song Jiang, Feng Chen and Xiaodong Zhang. CLOCK-Pro: An Effective Improvement of the CLOCK Replacement. USENIX ATC 2005, sections 4.2-4.4 and 5.2.
  11. Sorav Bansal and Dharmendra S. Modha. CAR: Clock with Adaptive Replacement. FAST 2004, sections I and III.
  12. Yang et al. FIFO Queues are All You Need for Cache Eviction. SOSP 2023. DOI 10.1145/3600006.3613147; sections 3.1-3.2, 5.1 and 5.3-5.4.
  13. Eisenman et al. Flashield: a Hybrid Key-value Cache that Controls Flash Write Amplification. NSDI 2019, pp. 65-78; sections 2-5.
  14. Shakiba, Sultan and Stumm. Kosmo: Efficient Online Miss Ratio Curve Generation for Eviction Policy Evaluation. FAST 2024.
  15. Waldspurger, Saemundson, Ahmad and Park. Cache Modeling and Optimization using Miniature Simulations. USENIX ATC 2017, pp. 487-498; sections 1.1 and 3.1-3.2.
  16. O'Neil, O'Neil and Weikum. The LRU-K Page Replacement Algorithm for Database Disk Buffering. SIGMOD 1993, pp. 297-306; section 2.1.2, p. 301. DOI 10.1145/170035.170081.
  17. R. L. Mattson, J. Gecsei, D. R. Slutz and I. L. Traiger. Evaluation techniques for storage hierarchies. IBM Systems Journal 9(2), 1970, pp. 78-117; OPT on pp. 93-95. DOI 10.1147/sj.92.0078. Original paper reprinted in the linked Canadian government compilation, PDF pp. 82-84.
  18. Daniel S. Berger, Nathan Beckmann and Mor Harchol-Balter. Practical Bounds on Optimal Caching with Variable Object Sizes. POMACS 2(2), article 32, June 2018, 38 pages. DOI 10.1145/3224427; sections 2.4, 3.3 and 5.
  19. Peter Manohar and Jalani Williams. Lower Bounds for Caching with Delayed Hits. arXiv:2006.00376v1, 2020; sections 1.1, 2 and 4.
  20. Keerthana Gurushankar, Noah G. Singer and Bernardo Subercaseaux. Latency Guarantees for Caching with Delayed Hits. arXiv:2501.16535v1, 2025; section 2.
  21. Linux v6.12: Multi-Gen LRU design, workflow and working-set protection.
  22. Linux v6.12: Multi-Gen LRU administration, runtime options and noncumulative working-set histograms.
  23. Linux v6.12 mm/workingset.c: workingset_refault dispatches separately to lru_gen_refault.
  24. Zussman et al. cache_ext: Customizing the Page Cache with eBPF. SOSP 2025, pp. 462-478; sections 4-6. DOI 10.1145/3731569.3764820.
  25. cache_ext artifact README at commit 6c3b8a0: patched Linux 6.6.8, components and reproduction setup.
  26. Cheng et al. cache_ext, LSF/MM/BPF 2026 slides: per-cgroup hooks, workload separation and open integration questions.
  27. Tang, Huang, Lloyd, Kumar and Li. RIPQ: Advanced Photo Caching on Flash for Facebook. FAST 2015, pp. 373-386; sections 4 and 6.1.
  28. Yang et al. CacheSack: Admission Optimization for Google Datacenter Flash Caches. ATC 2022, pp. 1021-1036; sections 3.4, 5, 6.3-6.5, 7.1 and Appendix A.
  29. Wong et al. Baleen: ML Admission & Prefetching for Flash Caches. FAST 2024, pp. 347-371; sections 3.1, 3.4 and 5.
  30. Daniel Lin-Kit Wong. Baleen: ML admission & prefetching for flash caches. CMU CSD PhD Blog, 12 January 2024; design and optimization objective.
  31. Baleen-FAST24 author artifact, pinned README at 4e3a9205b1f1bd72bffd66dd52bd5b06509089e9.
  32. Vietri et al. Driving Cache Replacement with ML-based LeCaR. HotStorage 2018, sections 3-4.
  33. Rodriguez et al. Learning Cache Replacement with CACHEUS. FAST 2021, pp. 341-354, sections 3-6.
  34. LeCaR author implementation: evict, addToHistory, miss and adjustWeights; commit 1eec63ce166502be33ddd1f35bc041ed73a24f4d.
  35. CACHEUS author implementation: eviction attribution and adaptive learning rate; commit 1eec63ce166502be33ddd1f35bc041ed73a24f4d.
  36. Standalone LFU author implementation: count lifetime and tie-breaking; commit 1eec63ce166502be33ddd1f35bc041ed73a24f4d.
  37. Song, Berger, Li and Lloyd. Learning Relaxed Belady for Content Distribution Network Caching. NSDI 2020, pp. 529-544, sections 3-4 and 6.4.
  38. LRB author simulator, lrb.cpp: lookup, forget and rank; commit 9e8b4423383c01c4528deb447f152f0437a37c3a.
  39. LRB author simulator, lrb.h: training labels, sample count and default objective; commit 9e8b4423383c01c4528deb447f152f0437a37c3a.
  40. Zhou et al. 3L-Cache: Low Overhead and Precise Learning-based Eviction Policy for Caches. FAST 2025, pp. 237-254.
  41. 3L-Cache author implementation, prediction(); commit 134cd159b635cdab75419a4281bed1a330fef31f.
  42. 3L-Cache author CPU plotting helper; commit 134cd159b635cdab75419a4281bed1a330fef31f.
  43. Philip J. Fleming and John J. Wallace. How not to lie with statistics: the correct way to summarize benchmark results. Communications of the ACM 29(3), 1986, pp. 218-221; rules 2-3.
  44. Python 3.12 time: process_time and perf_counter measurement contracts.
  45. Python 3.12 resource: RUSAGE_SELF, RUSAGE_CHILDREN and CPU-time fields.
  46. psutil API: process CPU percentage, first-call initialization and host-wide normalization.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. SIEVE cache eviction: one bit is not scan resistance. Hesela. 2026-11-29. https://hesela.com/analyses/sieve-cache-eviction-traces/