Computer Memory & Caching Flashcards
Week 2.6 (63 cards)
what are the 8 key characteristics of computer memory system
- location
- performance parameters
- physical characterisitcs
- physical type
- organisation
- access method
- unit of transfer
- capacity
what are the 2 memory locations
- internal - small, fast & directly accessible
- external - large, slower & accessed through I/O devices
examples of internal location memory
- registers
- cache main memory
examples of external location memory
- hard drives
- tapes
what are the 3 performance parameters
- access time
- cycle time
- transfer rate
what is the access time
time to R/W from a memory location
what is the cycle time
total time needed for ine memory operation, including setup for the next operation
what is the transfer rate
speed at which data is transferred between memory & the processor, includes fetchin the data & transferring it
Non-RAM transfer formula
Tn = Ta + n/R
where:
- Ta = access time
- n = number of bits
- R = transfer rate in bps
what are the 2 physical characteristics
- volatile
- non-volatile
what are the 4 physical types
- semiconductor
- magnetic
- optical
- magneto-optical
what are the 4 access methods
- sequential
- direct
- random
- associative
how does sequential access work
linear order
how does direct access work
unique addresses
how does random access work
any memory location can be accessed directly, with constant access time
how does associative access work
based on content not address
what is a unit of transfer
number of bits transferred between memory & the processor at one time
- internal: words or bytes
- external: larger blocks
what are the design constraints & dilemma of memory
how much? how fast? how expensive?
- designers need large-capacity, low-cost memory. performance requirements demand fast, low-capacity & costly memory
solution to memory’s dilemma
memory hierachy - smaller, faster, more expensive memory is supplememted by larger, slower & cheaper memory
how is cache optimised
levels
what is level 1 cache
small, fast. stores frequently accessed data
what is level 2 cache
larger, acts as a buffer between L1 and memory
how do cache levels optimise cache
- reduce latency
- minimises CPU stalls
how is data organised across the memory hierachy
- high-level memory stores frequently accessed data
- clusters in L1 are periodically swapped with L2 clusters to manage space