{
  "slug": "sieve-eviction",
  "term": "SIEVE cache eviction",
  "aliases": [
    "SIEVE"
  ],
  "definition": "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.",
  "note": "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. [artifact]\n\nThe 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. [paper]\n\nA 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. [capacity-replay]\n\nWith 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. [paper] [probe-budget] [probe-method]\n\nThe 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. [probe-budget]\n\nThe 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. [artifact]",
  "related": [
    "clock-replacement",
    "lru-replacement",
    "cache-pollution",
    "cache-admission",
    "fifo-replacement",
    "belady-anomaly",
    "cache-inclusion-property",
    "delayed-hit",
    "segcache",
    "one-hit-wonder-ratio"
  ],
  "citations": [
    {
      "id": "artifact",
      "title": "NSDI24-SIEVE author artifact, commit 0861f8261c37b8286a70449a1defb5a4749c72d2: Sieve.c, insertion and eviction operations.",
      "url": "https://github.com/cacheMon/NSDI24-SIEVE/blob/0861f8261c37b8286a70449a1defb5a4749c72d2/libCacheSim/libCacheSim/cache/eviction/Sieve.c",
      "accessed": "2026-10-17"
    },
    {
      "id": "paper",
      "title": "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.",
      "url": "https://www.usenix.org/system/files/nsdi24-zhang-yazhuo.pdf",
      "accessed": "2026-11-01"
    },
    {
      "id": "hesela",
      "title": "Hesela: SIEVE/CLOCK/LRU counterexamples, eight constructed libCacheSim 0.3.5 traces, not device measurements.",
      "url": "https://hesela.com/analyses/sieve-cache-eviction-traces/",
      "accessed": "2026-10-17"
    },
    {
      "id": "capacity-replay",
      "title": "Hesela: SIEVE capacity counterexample, pinned library replay and per-request state trace; constructed example, not device timing.",
      "url": "https://hesela.dev/research/sieve-capacity.json",
      "accessed": "2026-10-19"
    },
    {
      "id": "probe-budget",
      "title": "Hesela: inspection-budget arithmetic over eight frozen SIEVE traces, with cold-start and operation-scope limits.",
      "url": "https://hesela.dev/research/sieve-probe-budget.json",
      "accessed": "2026-10-30"
    },
    {
      "id": "segcache",
      "title": "Yang, Yue and Vinayak. Segcache: a memory-efficient and scalable in-memory key-value cache for small objects. NSDI 2021, section 3.1.",
      "url": "https://www.usenix.org/system/files/nsdi21-yang.pdf",
      "accessed": "2026-11-01"
    },
    {
      "id": "probe-method",
      "title": "Hesela: SIEVE probe accounting, proof, assumptions and standalone reproduction instructions.",
      "url": "https://hesela.dev/research/sieve-probe-method.md",
      "accessed": "2026-11-01"
    }
  ],
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Insertion order assists reclamation in TTL-partitioned caches; it does not itself enforce expiry or sort arbitrary mixed TTLs by expiration time.",
      "citationIds": [
        "paper",
        "segcache"
      ]
    },
    {
      "text": "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.",
      "citationIds": [
        "paper"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-01",
  "provenance": [
    "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. [probe-budget]",
    "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. [artifact]",
    "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. [probe-budget]",
    "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."
  ]
}
