chapter 3 Flashcards
1
Q
what are the accessing methods for unit data
A
- sequential - organized into words and access in a sequential manner
- direct access - read & write mechanism
- direct access of data from physical memory - random access - has unique addressing mechanism
- location of address is random (will access from available devices or memory) - associative - recognized data by its content than its address
2
Q
explain the importance of cache size
A
- access time - large size, large no. of gates, increase addressing, decrease performance
- cost - small size, increase performance, increase cost
- larger size, decrease performance, decrease cost
3
Q
what are the access method of cache
A
- direct - 1 main memory block mapped to 1 unique cache line
- fully associative - each memory block can map to any cache line
- set associative - each memory block map to 1 unique cache line
4
Q
what is replace algorithm
A
- replace 1 of the existing block with a new one after cache is filled
- 3 types
1. least recently used - replace block in cache the longest (simple & effective)
2. first in first out - replace block in cache the longest ( fist to come in first to go out)
3. least frequently used - replace block has the fewest reference experienced
5
Q
explain write through & write back
A
through - write operations to main memory & cache
back - updates are only in cache
- io modules are allowed through the cache
6
Q
what’s a cache coherency
A
transfer of data from caches of different devices with a shared memory
- if 1 data is altered, it will caused an invalidation of data among other caches & main memory
- 3 main approaches
1. bus watching with write through
= use cache controller to monitor address lines by other bus master
- hardware transparency
= additional hardware to ensure updates in main memory is reflected in all caches - non-cacheable memory
= more than 1 processor shared memory is designed as non-cacheable memory & access to that memory is considered a cache miss
7
Q
what are the 3 design principles
A
- locality 2.inclusion 3.coherence