chapter 3 Flashcards

1
Q

what are the accessing methods for unit data

A
  1. sequential - organized into words and access in a sequential manner
  2. direct access - read & write mechanism
    - direct access of data from physical memory
  3. random access - has unique addressing mechanism
    - location of address is random (will access from available devices or memory)
  4. associative - recognized data by its content than its address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

explain the importance of cache size

A
  1. access time - large size, large no. of gates, increase addressing, decrease performance
  2. cost - small size, increase performance, increase cost
    - larger size, decrease performance, decrease cost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the access method of cache

A
  1. direct - 1 main memory block mapped to 1 unique cache line
  2. fully associative - each memory block can map to any cache line
  3. set associative - each memory block map to 1 unique cache line
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

  1. hardware transparency
    = additional hardware to ensure updates in main memory is reflected in all caches
  2. non-cacheable memory
    = more than 1 processor shared memory is designed as non-cacheable memory & access to that memory is considered a cache miss
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the 3 design principles

A
  1. locality 2.inclusion 3.coherence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly