Professional Documents
Culture Documents
Computer Architecture
Computer Architecture
Computer Architecture
System Memory
Introduction
semiconductor memory technology
hierarchical memory organization
Solution:
The hierarchical organization of system
memory.
To access an item:
in certain regions in
time
space and
ordering
Therefore:
by keeping the current “regions” in the
higher memory, performance close to that
of Level1, as measured by Tamean, is
realizable.
inclusion
coherence
locality
Inclusion
Level n, contains a copy of all information
items in the system.
During processing, a subset of items at level i
may be copied into level i-1 .
Coherency
Accesses to different copies of same
information item in different memory
levels must be consistent.
Locality of Reference:
Locality of Reference:
Cache memory
a small high speed memory to cache subsets of
main memory contents
is implemented by the machine architecture.
Virtual memory
a large external memory a subset of which is
cached by main memory
is is implemented by the operating system with
support from the machine architecture.
Components
CPU
MMU
Cache and cache controller
MM and memory controller
How it works
Performance factors
a cache hit
a copy of the target is in cache
the access request is satisfied by the cache
a cache miss
there is no copy of the target in the cache
a copy of the target has to be brought in
from memory
Performance factors
Hit ratio:
Search speed:
Miss penalty:
policies
fetch policy:
placement policy:
replacement policy:
update policy:
Exercise 1
goal of fetch, placement, replacement policies?
goal of update policy?
Fully Associative:
– a block may be copied to any frame in the
cache
Fully Associative
occupied
one of the blocks must be replaced.
Which one?
replacement policy
Random:
FIFO:
LRU:
NRU:
Write-back
Research on the above – Exercise 6
Introduction
design considerations; types; functions
Semiconductor memory technology
Underlying technology; types; organization;
performance enhancement
Hierarchical memory organization
goals; justification; cached memory: organization,
performance factors, examples; virtual memory
basic organization