Note that we intend to compute a theoretical upper bound which is necessarily
achievable.
Proof.
By Eqn.
3 the aggregate hits for the set of caches
![$ C_1,..,C_k$](img49.gif)
is
![$\displaystyle aggrHits_k = \sum_{i = 1}^k h_i = hitOPT(\sigma, \sum_{i = 1}^{k} S_i)$](img50.gif) |
(4) |
By the definition of
![$ hitOPT$](img51.gif)
, this is the same as that obtained by Belady's OPT on a
cache of the aggregate size.
Since Belady's OPT is known to deliver the maximum possible hit ratio,
![$ aggrHits_k$](img52.gif)
is maximized for all
![$ k \leq n$](img53.gif)
.
Proof.
Inter-cache traffic is the sum of misses and demotions between two adjacent caches (by Eqn.
2).
Since, OPT-UB is defined to
have no demotions and maximizes the aggregate hits at all levels of the cache (Lemma
II.1),
no other policy can have lower inter-cache traffic than OPT-UB.
Proof.
We prove by contradiction. Let a better performing policy achieve a lower average response time (equivalently, lower total response time) for a workload than OPT-UB, by providing
![$ h'_i$](img54.gif)
hits
at each corresponding cache
![$ C_i$](img30.gif)
, and
![$ m'$](img55.gif)
overall misses, as compared to
![$ h_i$](img34.gif)
hits and
![$ m$](img56.gif)
misses for OPT-UB.
(a) follows as the sum of all hits and misses is the same for both policies (
![$ \vert\sigma_1\vert$](img73.gif)
) and the second term on both sides of the inequality can be removed.
The second term on the right hand side of (b) is non-negative because
![$ t_m > t_n$](img74.gif)
and by Lemma
II.1, no policy can have more aggregate hits (up to any cache level) than OPT-UB.
(c) follows by removing the non-negative second term in inequality (b). (d) follows as the
![$ n^{th}$](img75.gif)
term in the summation is zero.
Note that between step (a) and step (d), the superscript of the summation has dropped from
![$ n$](img76.gif)
to
![$ n-1$](img77.gif)
. Steps (a) through (d) can be repeated until
![$ n = 2$](img78.gif)
(as, for all
![$ i$](img31.gif)
,
![$ t_i > t_{(i-1)}$](img79.gif)
). We will then arrive at
![$ h'_1\cdot (t_2 - t_1) > h_1\cdot (t_2 - t_1)$](img80.gif)
.
As
![$ t_2 > t_1$](img81.gif)
, it implies that
![$ h'_1 > h_1$](img82.gif)
, which contradicts Lemma
II.1,
which states that OPT-UB maximizes
![$ \sum^k_{i = 1}h_k, \forall k \leq n$](img47.gif)
(including
![$ k = 1$](img83.gif)
).