Study Guide | EEE 105 Module 6
UP EEEi | Lawrence Quizon
Module Intro
In this module, we will discuss an overview of how memory is handled in the CPU. Slow memories are cheap, fast memories are expensive. This gives us a motivation for using many different memory types with varying capacity and speed to use in our computers.
Topic 1: Memory Basics
We show typical types of memory, the SRAM, the DRAM, and the HDD. We discuss why these memories very with price and speed.
Watch the lecture below:
Study Questions
- Which organization (in slide 8) would result in a faster access time?
- Is your answer to (1) an example of spatial or temporal locality?
- Inspect your own device’s information. How large is your RAM? What is your secondary memory? How much is your cache?
You can find information on your cache by searching up your processor on wikipedia.
Topic 2: Cache
Next, we’ll discuss how we design caches. We do not access memory randomly- we access them with specific patterns. Caches are built by taking advantage of these usual memory access patterns.
Watch the lecture below:
Study Questions
- For the memory access patterns in slide 3, how many blocks would we need to optimally store all the needed accesses?
- What could be the problem with FIFO replacement policy?
Topic 3: Virtual Memory
Creating the illusion of having infinite memory is ideal for programmers so that they do not have to worry about using (a realistic) amount of memory. This is implemented using virtual memory. We can think of this as a cache, but over secondary memory. However, how do we find the correct physical address when two processes can have the same virtual address? That’s where it becomes different.
Watch the lecture below:
Study Questions
- How is it possible for two processes to try to access the same virtual address but get different data?
- When I manually set the page size higher (do this at your own risk), my PC becomes extremely slow. What could have been the problem?
- Can you get a TLB hit but a Page fault?
Quiz
Only problem set 3 from here on.