Byte hit ratio
Byte hit ratio is the fraction of requested payload bytes served from a cache under a stated request-accounting rule.
For full-object requests, divide hit payload bytes by requested payload bytes, counting repeats. Request hit ratio counts hits, so unequal sizes can reverse a ranking. [1]
Ten requests totaling 24 KiB can yield eight hits serving 8 KiB or two hits serving 16 KiB. These fixed-residency examples produce byte hit ratios of one-third and two-thirds respectively. [2]
Pool compatible, disjoint observations by summing hit payload bytes and requested payload bytes separately before dividing. Weighting window ratios by request counts instead of requested bytes does not generally recover the pooled byte ratio. No requested bytes means the ratio is undefined. [3]
Equal-size, full-block requests with identical hit accounting have equal byte and request hit ratios. Neither describes miss-stream sequentiality. DULO balances recency with sequence size under an equal sequence-fetch-cost assumption within a bounded range. Short sequences receive a retention preference, but inactive ones can still be evicted. In the paper's multi2 simulation, execution time improved with little hit-ratio change; this historical disk result is not an SSD performance guarantee. [4]
A constructed equal-block trace gives both warm resident sets 8 hits in 16 requests and 32 KiB of hits in 64 KiB requested. Their miss streams contain either eight single-block ascending runs or two four-block runs. Logical adjacency is not a count of physical seeks, commands or elapsed time. Misses bypass; there is no prefetch or reordering. [5]
On ABCABC with A=3, B=C=1, empty capacity 3 and bypass allowed, the request optimum fetches 8 units in 4 misses (2/10 byte hits); the payload optimum fetches 7 in 5 (3/10). The six requests total ten requested units. [6]
Relations
- related
- GreedyDual-Size, Cache admission, TinyLFU, SSD mapping cache, Request hit ratio, Disk-head time, AdaptSize
Citations
- Einziger, Eytan, Friedman and Manes. Lightweight Robust Size Aware Cache Management. arXiv:2105.08770v2 (2021), sections 1 and 4-5.
- Hesela. Fixed-residency request and byte accounting: constructed inputs and reproducible results.
- Prometheus documentation. Recording rules: Aggregation; sum numerators and denominators separately before division.
- Jiang, Ding, Chen, Tan and Zhang. DULO. FAST 2005, sections 2, 3.4 and 4.1.2: sequence cost, recency and simulated miss streams.
- Hesela. Equal-hit miss-stream witness: original logical-block trace, assumptions, code and tests.
- Hesela. Exact request-miss and payload objectives: ABCABC witness, complete cost-pair enumeration, code and controls.
Sources & caveats
- Payload accounting alone does not measure latency, compressed transfer, partial-read traffic or NAND operations. The example is synthetic, not a cache-policy benchmark. [2]