Model
When a cache entry pays
P/S is a natural batch size, with reuse count as the batch.
- Read rate
- the rate of reads on the object
- Write rate
- the rate of writes that invalidate it; summed over its dependencies
- Cost to produce
- the cost of computing one version
- Saving
- what serving one read from the cache saves
- Reuse factor
- reads per version
How it behaves
One input on the horizontal axis, the others held fixed.
Data table
| Inputs the result depends on | Reuse factor R |
|---|---|
| 1 | 20 |
| 1.24 | 16.2 |
| 1.48 | 13.6 |
| 1.71 | 11.7 |
| 1.95 | 10.3 |
| 2.19 | 9.14 |
| 2.42 | 8.25 |
| 2.66 | 7.51 |
| 2.9 | 6.9 |
| 3.14 | 6.37 |
| 3.38 | 5.93 |
| 3.61 | 5.54 |
| 3.85 | 5.19 |
| 4.09 | 4.89 |
| 4.33 | 4.62 |
| 4.56 | 4.38 |
| 4.8 | 4.17 |
| 5.04 | 3.97 |
| 5.28 | 3.79 |
| 5.51 | 3.63 |
| 5.75 | 3.48 |
| 5.99 | 3.34 |
| 6.22 | 3.21 |
| 6.46 | 3.09 |
| 6.7 | 2.99 |
| 6.94 | 2.88 |
| 7.17 | 2.79 |
| 7.41 | 2.7 |
| 7.65 | 2.61 |
| 7.89 | 2.54 |
| 8.13 | 2.46 |
| 8.36 | 2.39 |
| 8.6 | 2.33 |
| 8.84 | 2.26 |
| 9.07 | 2.2 |
| 9.31 | 2.15 |
| 9.55 | 2.09 |
| 9.79 | 2.04 |
| 10 | 2 |
| 10.3 | 1.95 |
| 10.5 | 1.9 |
| 10.7 | 1.86 |
| 11 | 1.82 |
| 11.2 | 1.78 |
| 11.4 | 1.75 |
| 11.7 | 1.71 |
| 11.9 | 1.68 |
| 12.2 | 1.64 |
| 12.4 | 1.61 |
| 12.6 | 1.58 |
| 12.9 | 1.55 |
| 13.1 | 1.53 |
| 13.3 | 1.5 |
| 13.6 | 1.47 |
| 13.8 | 1.45 |
| 14.1 | 1.42 |
| 14.3 | 1.4 |
| 14.5 | 1.38 |
| 14.8 | 1.35 |
| 15 | 1.33 |
| 15.3 | 1.31 |
| 15.5 | 1.29 |
| 15.7 | 1.27 |
| 16 | 1.25 |
| 16.2 | 1.23 |
| 16.4 | 1.22 |
| 16.7 | 1.2 |
| 16.9 | 1.18 |
| 17.1 | 1.17 |
| 17.4 | 1.15 |
| 17.6 | 1.13 |
| 17.9 | 1.12 |
| 18.1 | 1.1 |
| 18.3 | 1.09 |
| 18.6 | 1.08 |
| 18.8 | 1.06 |
| 19.1 | 1.05 |
| 19.3 | 1.04 |
| 19.5 | 1.02 |
| 19.8 | 1.01 |
| 20 | 1 |
Worked examples, recomputed
Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.
- P = 8 s, S = 2 s → each version must be read more than 4 times
- 5 inputs committed hourly, 20 reads/h → 4 reads per version, not 20
Where it appears
Each mechanism states it in its own names. The general symbol each name stands for is shown with it.