|
|
|
|
|
|
|
6.8.8 Write-Through Cache Example |
|
|
|
|
|
|
|
|
Assume WTNWA strategy and word-buffered I/O, so that only read misses access lines in memory. Queueing delays occur only when a write buffer is introduced or when I/O effects are taken into account. In the following study, we analyze some typical cases. |
|
|
|
|
|
|
|
|
Study 6.4 Evaluating Write-Through (WTNWA) Caches |
|
|
|
|
|
|
|
|
Assume we have determined that our processor traffic is 0.8 reads per cycle and 0.2 writes per cycle. Then, on the basis of read traffic, we determine that our cache has a miss rate of 0.024 misses per reference. |
|
|
|
|
|
|
|
|
The cache is configured as: |
|
|
|
|
|
|
|
|
and the memory is configured as: |
|
|
|
 |
|
|
|
|
Ta = 120 ns, = Tc = 100 ns, Tbus = 40 ns, m = 2. |
|
|
|
|
|
|
|
|
We compute the cache miss delay for: |
|
|
|
|
|
|
|
|
(a) No fetch bypass, no write buffer, no I/O effects, ignoring write traffic contention in effective processor performance. |
|
|
|
 |
|
|
|
|
This is case 1 in our analysis. |
|
|
|
 |
|
|
|
|
and from study 6.3: |
|
|
|
|
| | | | | |
|
|
|
|
Tc.miss + Twrite interference |
|
|
|
| | | |
|
|
|
|
|
|
(b) Same as (a), but now including the effects of memory write contention. |
|
|
|
 |
|
|
|
|
As with study 6.1(b), |
|
|
|
|
|