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 total requested payload bytes, counting repeated requests each time. Request hit ratio counts hits rather than bytes, so differently sized objects 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]
Relations
- related
- cache-admission, tinylfu, mapping-cache
Citations
- Einziger, Eytan, Friedman and Manes. Lightweight Robust Size Aware Cache Management. arXiv:2105.08770v2 (2021), sections 4-5.
- Hesela. Fixed-residency request and byte accounting: constructed inputs and reproducible results.
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]