SIEVE cache eviction
SIEVE is a cache replacement policy that retains insertion order and uses a visited bit and a moving pointer to select an unvisited eviction victim.
New entries start unvisited; a hit sets their bit without moving them. Eviction clears visited bits while advancing the pointer, leaving survivors in place instead of reinserting them with newcomers. [1]
The NSDI paper explicitly reports that SIEVE is not scan-resistant; some block-cache workloads perform worse than LRU. A web-cache result does not identify an SSD's internal policy. [2]
A larger SIEVE cache can miss more. The constructed cold-start trace AABBCCDED has five misses with three equal-size slots and six with four. The extra slot postpones a clearing pass; the larger cache evicts D before its final reuse. This is a checked counterexample, not a workload prevalence estimate. [4]
With C residents and no concurrent hits, one eviction needs at most C + 1 visited-bit inspections. From empty, total probes P satisfy P <= E + H after each completed request: E counts evictions and H hits. Starting with V0 set resident bits gives P <= E + H + V0. Extra probes clear previously set bits; these are operation counts, not latency guarantees. [2] [5] [7]
The total bound alone cannot validate probe logs. Repeated hits on one set bit cannot fund multiple later clearings: in a one-slot cache, MHHMM cannot have eviction counts 2 then 2. The verifier also tracks possible resident-bit counts, but still does not certify object identities or pointer order. [5]
The pinned artifact's victim-preview function searches without clearing bits or advancing the stored hand. Repeated previews do not consume those credits; their work is outside the eviction budget. Concurrent hits during a scan also invalidate the single-scan assumption. [1]
Relations
- related
- CLOCK cache replacement, Least recently used replacement, Cache pollution, Cache admission, First-in first-out cache replacement, Belady anomaly, Cache inclusion property, Delayed cache hit, Segcache, One-hit-wonder ratio
Limitations
- Insertion order assists reclamation in TTL-partitioned caches; it does not itself enforce expiry or sort arbitrary mixed TTLs by expiration time. [2, 6]
- The published CacheLib throughput comparison scales cache capacity and working-set size with thread count, using separate object-ID spaces for each replay thread. It does not measure adding threads to one fixed cache and shared working set. Its optimized LRU baseline delays repeated promotions; strict LRU is a separate comparison. [2]
Citations
- NSDI24-SIEVE author artifact, commit 0861f8261c37b8286a70449a1defb5a4749c72d2: Sieve.c, insertion and eviction operations.
- Zhang et al. SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches. NSDI 2024, sections 3, 4.3 (Figure 6) and 7.2-7.3.
- Hesela: SIEVE capacity counterexample, pinned library replay and per-request state trace; constructed example, not device timing.
- Hesela: inspection-budget arithmetic over eight frozen SIEVE traces, with cold-start and operation-scope limits.
- Yang, Yue and Vinayak. Segcache: a memory-efficient and scalable in-memory key-value cache for small objects. NSDI 2021, section 3.1.
- Hesela: SIEVE probe accounting, proof, assumptions and standalone reproduction instructions.
Further reading
Sources & caveats
- The probe bounds follow from Algorithm 1 for sequential, equal-size, immediate admission. Warm-start accounting adds initially set bits; the verifier and eight frozen traces use cold starts. No native-library benchmark is rerun. [5]
- Victim-preview behavior was read in Sieve_to_evict_with_freq and Sieve_to_evict at the pinned artifact commit; it is not a claim about every SIEVE implementation. [1]
- The probe verifier checks a possible visited-bit-count interval, including saturation and clearing. Its small bit-state oracle deliberately forgets object identity and queue order; passing these necessary checks is not full SIEVE conformance. [5]
- TTL scope follows SIEVE section 7.3 and Segcache section 3.1: partitioned expiration order is conditional, not a built-in expiry check. The frozen probe replay excludes TTL and does not test reclamation.
- Throughput scope was checked in NSDI 2024 section 4.3, printed page 1235, including the optimized LRU promotion delay and separate strict-LRU curve. This is source review, not a new benchmark.