17 - Memory and Cache Flashcards
What does the maximal memory size depend on?
The address width.
What is the address width determined by ?
- The number of bits in the CPU address registers ie IP
- The number of lines in the address bus.
What’s the maximal memory size with a 32 bit address width (x86)
4 Gb (2^32 = ~4 bn = 4 Gb)
What are the slots that hold the memory cards called and how many memory chips do they hold?
Modules, and they hold more than a handful of them at least.
What are the 4 levels in the memory ?
- Registers
- Cache memory (level 1 and 2)
- Main memory
- Mass storage
How does the cache work and where is it placed ?
It’s placed between the CPU and the main memory.
When the CPU requires information from the memory it first checks the cache which contains some copied cells of the main memory.
If not found, the block of memory containing the info and some of the blocks surrounding it are moved to the cache.
What is the ‘Localisation of Memory Access’ principle ?
That the next cell to be accessed usually resides close by to the one currently being accessed, so keep blocks of data as near as possible to the CPU.
Give a memory hierarchy pyramid ?
CPU Registers L1 Cache Memory L2 Cache Memory Main Memory Disk Cache Disk Storage Tape Backup