Virtual Memory and the Cache
TASK
AIM FOR QUALITY OF INFORMATION!
Cache
- Open the booklet you began work on last lesson.
- Today you are going to complete sections on virtual memory and the cache.
Resources to help:
Shared > Computing > unit 1 > lesson 3
Remember this?
- Requested data gets moved from HD > RAM > Cache
- When data is requested again, the computer first checks the Cache > RAM > HD.
- The cache acts as a buffer meaning the most frequently used data is available (buffering, anyone?)
- The bigger the Cache, the better the performance.
The Cache
What happens when RAM gets full but we want to open another program?
Limitations
Access to the hard drive is slow
If we have to move data between the HD and RAM constantly this is going to slow the computer down significantly......
To overcome this we will need to either
- Add more RAM - Permanent
- Close some programs - Temporary (alerts)
Virtual Memory
- Is used next to the CPU to provide very fast access to data
- Sits between RAM and the CPU to improve performance by holding data that has just been, or is about to be processed.
- Much, much more complex design than RAM. This means it is only available in small capacities and is expensive to produce.
- Virtual memory is not part of main memory at all, it is part of secondary storage (The hard drive)
- It is used when the computer runs out of RAM (Main memory)
- An area of the HD is allocated to store the data from the RAM that isn't currently needed, whilst anything that is needed is stored in RAM
Learning Objectives
- To understand what is meant by the terms Virtual Memory and Cache.
- To explain the role of virtual memory and cache memory within the computer
- To understand how virtual memory and the cache can speed up the computer
STARTER
- On your scrap paper, write down:
- What RAM and ROM stand for
- The difference between volatile and non-volatile memory
Plenary - Pick five!
In pairs (you must BOTH have a copy in your folder) write a definition for five of the following:
Virtual memory
ROM
Read only
Random Access
Volatile
Non-Volatile
Secondary Storage
Main (Primary) Memory
Record your answers on scrap paper.