Question 1 Report
A computer uses different types of storage arranged in a hierarchy.
(a) The diagram shows a storage hierarchy. State the relationship between speed and capacity as you move down the hierarchy. [2]
(b) Explain the purpose of cache memory. [2]
(c) Explain why a computer needs both RAM and secondary storage. [2]
(d) Describe what is meant by virtual memory and explain when it is used. [2]
(a) As you move down the storage hierarchy (from registers at the top, through cache, RAM, and down to secondary storage at the bottom):
This trade-off exists because the fastest memory technologies are extremely expensive to manufacture, so they are only used in small quantities close to the processor.
(b) Cache memory stores copies of frequently accessed data and instructions from RAM. [1] By holding this data in a faster memory layer between the CPU and RAM, the processor can retrieve it much more quickly than if it had to fetch it from the slower main memory every time. [1] This significantly speeds up processing because the CPU spends less time waiting for data.
(c) A computer needs both RAM and secondary storage because they serve complementary roles:
(d) Virtual memory is an area of secondary storage (such as part of a hard drive or SSD) that the operating system uses as an extension of RAM when physical RAM becomes full. [1] When all RAM is in use, the operating system moves less frequently used pages of data from RAM to the virtual memory area on disk, freeing up RAM for active tasks. Although this prevents the system from running out of memory, accessing data from virtual memory is considerably slower than accessing real RAM because it involves reading from secondary storage. [1]
Everything you need to excel in your exams