![Page 1: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/1.jpg)
Memorias Cache
Arq. de Computadores
Santiago González Tortosa
![Page 2: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/2.jpg)
Parte I
Introducción a Memorias Cache
![Page 3: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/3.jpg)
Introducción
Para que sirve Reducción de tiempo en el acceso de información (no acceder a MP)
Tiempo de acceso reducido Control de Información
Política de lectura: Para un buen uso de Mca, se necesita tener actualizada la información en la misma (coherencia). ¿Cómo se lleva la info a MCa?
Política de escritura: Cuando el user quiere modificar info,¿cómo se escribe?
OJO: Reemplazo de Mca únicamente en asociativas y asociativas por conjuntos
![Page 4: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/4.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4
![Page 5: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/5.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 3
![Page 6: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/6.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 3
![Page 7: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/7.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 3
![Page 8: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/8.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3
![Page 9: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/9.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
![Page 10: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/10.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4
![Page 11: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/11.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4 1
![Page 12: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/12.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4 1 2
![Page 13: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/13.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4 1 2 3
![Page 14: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/14.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4 1 2 3
![Page 15: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/15.jpg)
Política de Lectura
OOF
Early Start
CPU
MP MCa
1 2 3 4 1 2 3 4
CPU
MP MCa
1 2 3 4 1 2 3 4
![Page 16: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/16.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
3 3
![Page 17: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/17.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 3
![Page 18: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/18.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 3
![Page 19: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/19.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 2
![Page 20: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/20.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
3 3
![Page 21: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/21.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
3 2
![Page 22: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/22.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
3 2
reemplazo
![Page 23: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/23.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
3 2
reemplazoy dato mod
3
![Page 24: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/24.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 2 3
Segun Politica Lectura
![Page 25: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/25.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 2
Segun Politica Lectura
![Page 26: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/26.jpg)
Política de escritura
Copy(write)-BackMCa MP
CPU
2 2
Segun Politica Lectura
![Page 27: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/27.jpg)
Política de escritura (II)
Write-throughMCa MP
CPU
3 3
![Page 28: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/28.jpg)
Política de escritura (II)
Write-throughMCa MP
CPU
2 2
![Page 29: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/29.jpg)
Operaciones MCa
Lectura Acierto Fallo
Escritura (Política de Escritura) Acierto Fallo
Debemos tener en cuenta políticas
![Page 30: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/30.jpg)
Lectura MCa
Acierto
Fallo
MCa
T = Tca
MCa
MP
Segun Politica Lectura
X
reemplazo
![Page 31: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/31.jpg)
Lectura MCa
Acierto
Fallo
MCa
T = Tca
MCa
MPreemplazo
bloque
bloque
![Page 32: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/32.jpg)
Lectura MCa
Acierto
Fallo
MCa
T = Tca
MCa
MP
Tacc = Tca (+ N * Tmp) + X * TmpTocup = Tca ( + N * Tmp) + N * Tmp
bloque
Segun Politica Lectura
Xreemplazo
![Page 33: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/33.jpg)
Posibles Derivaciones
Tiempo medio de Acceso: probabilidades de Acierto/Fallo T = Hr * Tacierto + (1-Hr) * Tfallo
Tiempo medio de Acceso con Probabilidades de Lectura/Escritura Plec * Tlec + Pesc * Tesc Tlec calculado con probabilidades acierto/fallo Tesc calculado con probabilidades acierto/fallo
![Page 34: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/34.jpg)
Posibles Derivaciones (II)
Tiempo máximo de acceso Igual que tiempo medio de acceso, pero sin tener en
cuenta la posibilidad de acierto. Tiempo mínimo de acceso
Igual que tiempo medio de acceso, pero sin tener en cuenta la posibilidad de fallo.
Tiempo de ocupación Igual que el tiempo medio de acceso, pero teniendo
en cuenta la lectura y escritura de TODAS las palabras del bloque (tiempo en que la CPU realiza otras operaciones)
![Page 35: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/35.jpg)
Parte II
Uso de Memoria Virtual
![Page 36: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/36.jpg)
Fase de Traducción
TLBMP Paginada
3 Niveles
DV
![Page 37: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/37.jpg)
Fase de Traducción
TLBMP Paginada
3 Niveles
DV
DR
T = Ttlb
![Page 38: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/38.jpg)
Fase de Traducción
TLBMP Paginada
3 Niveles
DV
![Page 39: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/39.jpg)
Fase de Traducción
TLBMP Paginada
3 Niveles
DV
DF
T = Ttlb + 3 * Tmp
![Page 40: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/40.jpg)
Uso de Memoria Virtual
Traducción y Acceso a la Info secuencial
DV DF InformaciónTtrad Tacc
T = Ttrad + Tacc
![Page 41: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/41.jpg)
Uso de Memoria Virtual (II)
Traducción y Acceso a la Info Simultaneo
TRAD
ACC
TLB
MCa
(acierto/fallo)
(acierto/fallo)
DV
Byte + Bloque
DF
Info
![Page 42: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/42.jpg)
Uso de Memoria Virtual (II)
Tiempo de TraducciónT = Hrtlb * Ttlb + (1 - Hrtlb) * (Ttlb + N * Tmp)
Tiempo de AccesoAcierto: T = TcaFallo: T = Tca (+ …)
Habiendo SimultaneidadT = max (Ttrad,Tacc) + (Si fallo MCa) …
![Page 43: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/43.jpg)
Uso de Memoria Virtual (III)
Diferencias entre secuencial y simultaneoAcierto en Cache
Tsec = Ttrad (aciertos o fallos) + Tca Tsimul = max(Ttrad,Tca)
Fallo en Cache Tsec = Ttrad (acierto o fallo) + Tacc Tsimul = max (Ttrad, Tca) + Tfallo
![Page 44: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/44.jpg)
Uso de Memoria Virtual
Posibilidades: Traducción
Acierto TLB: Ttlb Fallo TLB: Ttlb + N * Tmp (N niveles de pagina)
Acceso Información Acierto Mca: Tca Fallo Mca: Tca (+ Tfallo_cache)
Mezclar posibilidades con derivaciones de tiempos OJO: Tiempo de Traducción es siempre el mismo en todos los
casos (acceso, ocupación) Tpo maximo de acceso: Solo fallos de TLB (1 – Hr_tlb = 100%) Tpo minimo de acceso: Solo aciertos de TLB (Hr_tlb = 100%)
![Page 45: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/45.jpg)
Parte III
Inclusión de nuevas tecnologías
![Page 46: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/46.jpg)
Nuevas Tecnologías
Memoria Cache de 2º Nivel Stream Buffer Buffer de Escritura Victim Buffer
Posibilidad de mezclar: Traducción + Acceso simple a MCa + Nuevas Tecnologías
![Page 47: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/47.jpg)
Memoria Cache de 2º Nivel
Cuando falla el MCa de Nivel 1, se accede al MCa de Nivel 2.
Políticas de Nivel 1 y Políticas de Nivel 2 Si falla MCa de Nivel 2, se accede a MP.
MCa1 MCa2 MP
![Page 48: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/48.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
![Page 49: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/49.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
![Page 50: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/50.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
2
![Page 51: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/51.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
2
NO politica lectura
2
![Page 52: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/52.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
22
![Page 53: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/53.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
2 bloque i+1bloque i+1
Tacc = Tca + N * maximo(MCa,Stream)Tocup = Tca + N * maximo(Mca,Stream) + N * Tmp
![Page 54: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/54.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
![Page 55: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/55.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
Según política lectura
22
![Page 56: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/56.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
22
![Page 57: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/57.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
Según política lectura
22
![Page 58: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/58.jpg)
Stream Buffer
Anticipaciones
MCa Stream
MP
CPU
22 bloque i+1
bloque i+1
Tacc = Tca + Tstr + X * TmpTocup = Tca + Tstr + N * Tmp + N * Tmp
![Page 59: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/59.jpg)
Buffer de escritura
Escrituras de MP NO en Tacc (Tocup) Se utiliza este mecanismo sii buffer no
lleno Probabilidades llenado de Buffer
Pb_vacio * Tb_vacio + (1-Pb_vacio) * Tacc_nTb_vacio = Tacc usando buffer de escritura
![Page 60: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/60.jpg)
Buffer de escritura (II)
Casos de estudioPolítica Escritura: Copy-Back
Op Lectura, fallo MCa con reemplazo Op Escritura, fallo MCa con reemplazo
Política Escritura: Write-through Op Escritura, acierto o fallo
![Page 61: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/61.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
![Page 62: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/62.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2
![Page 63: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/63.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2Reempazo
bloque
![Page 64: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/64.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2
Reempazo
bloque bloque
![Page 65: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/65.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2bloque2
según politica lectura
X
![Page 66: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/66.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2bloque2
![Page 67: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/67.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2bloque2
según politica lectura
![Page 68: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/68.jpg)
Buffer de escritura (III)
CB, Op lectura y escritura
MCa Buffer
MP
CPU
2bloque2
bloque
Tacc = Tca + N * maximo (Tca,Buff) + X * TmpTocup = Tca + N * maximo (Tca,Buff) + N * Tmp + N * Tmp
![Page 69: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/69.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
![Page 70: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/70.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2 2
![Page 71: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/71.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2 2
![Page 72: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/72.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2 2 2
Tacc = maximo (Tca,Tbuf)Tocup = maximo (Tca,Tbuf) + Tmp
![Page 73: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/73.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2
![Page 74: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/74.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2
![Page 75: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/75.jpg)
Buffer de escritura (III)
WT, Op escritura
MCa Buffer
MP
CPU
2 2
Tacc = TbufTocup = Tbuf + Tmp
![Page 76: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/76.jpg)
Victim Buffer
Unicamente para Caches DIRECTAS Reducir el Tacc por fallos de conflicto
(dos palabras en la misma dir)
![Page 77: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/77.jpg)
Victim Buffer (II)
MCa VB
MP
CPU
![Page 78: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/78.jpg)
Victim Buffer (II)
MCa VB
MP
bloque r
CPU
![Page 79: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/79.jpg)
Victim Buffer (II)
MCa VB
MP
bloquebloque r
CPU
![Page 80: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/80.jpg)
Victim Buffer (II)
MCa VB
MP
bloquebloque r
CPU
![Page 81: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/81.jpg)
Victim Buffer (II)
MCa VB
MP
bloque bloque r
Tacc = Tca + N * max(Mca,Tvb) + N * max (Mca,Tvb)Tocup = TaccCPU
![Page 82: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/82.jpg)
Victim Buffer (II)
MCa VB
MP
CPU
![Page 83: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/83.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU
bloque r
![Page 84: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/84.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU
bloque r bloque r
![Page 85: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/85.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU según política de lectura
2 bloque r
X
![Page 86: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/86.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU
2 bloque r
![Page 87: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/87.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU según política de lectura
2 bloque r
![Page 88: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/88.jpg)
Victim Buffer (II)
MCa VB
MP
2
CPU
2 bloque r
Tacc = Tca + Tvb + N * maximo(Tca,Tvb) + X * TmpTocup = Tca + Tvb + N * maximo(Tca,Tvb) + N * Tmp
![Page 89: Memorias Cache Arq. de Computadores Santiago González Tortosa](https://reader035.vdocumento.com/reader035/viewer/2022062511/54d46f29497959a0198b52a0/html5/thumbnails/89.jpg)
Memorias Cache
Fin