Primary storage (memory) — OCR GCSE Computer Science
Teaching note checked against the official specification.
Test yourself on Primary storage (memory) with OCR GCSE practice questions.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Primary storage (memory) explained
Primary storage (memory) covers 6 specification points, including The need for primary storage and The difference between RAM and ROM.
Read the full explanation
Open a point below for its explanation and revision guidance.
The need for primary storage
Primary storage is the memory the CPU accesses directly while a program runs. It is needed because the CPU can only execute instructions and process data that are held in immediately addressable memory; secondary storage such as a solid-state drive or hard disk is far slower and cannot be read directly by the CPU. Primary storage holds the currently running program's instructions, the data being processed, the operating system in use and the BIOS/firmware needed at start-up. It is volatile or non-volatile: RAM loses its contents when power is removed, whereas ROM keeps firmware permanently. Capacity and speed matter because too little memory forces swapping to slower secondary storage, reducing performance. For example, opening a video editor loads its code and project data into RAM so the CPU can fetch and execute instructions quickly.
The difference between RAM and ROM
RAM and ROM are both primary storage, but they differ in volatility, contents and purpose. RAM is volatile: it loses its contents when power is removed. It stores the operating system, currently running programs and the data being processed, and its contents can be read from and written to. ROM is non-volatile: it keeps its contents when power is removed. It stores fixed instructions such as the bootstrap/BIOS program used at start-up, and normally its contents can only be read, not changed by ordinary programs. RAM is typically larger and can be upgraded; ROM is small and fixed. For example, when a computer starts, ROM runs the power-on self-test and locates the boot loader, then the operating system is copied into RAM so the CPU can execute it quickly.
The purpose of ROM in a computer system
ROM (Read-Only Memory) is non-volatile primary storage that retains its contents when power is removed. Its main purpose is to hold the bootstrap program (BIOS/UEFI firmware) that runs when a computer is switched on. The CPU fetches and executes these instructions from ROM to perform the power-on self-test (POST), initialise hardware, and load the operating system from secondary storage into RAM. ROM is typically written during manufacture and cannot be easily altered by normal programs, so it is suited to storing fixed start-up instructions. For example, a desktop PC has a ROM chip on the motherboard containing firmware; without it, the CPU would have no instructions to execute at start-up and the system could not boot.
The purpose of RAM in a computer system
RAM (Random Access Memory) is volatile primary storage that temporarily holds data and instructions currently in use by the CPU. Its purpose is to provide fast, directly accessible working memory so the processor can fetch and execute programs without waiting for slower secondary storage. When a program is opened, its instructions and associated data are copied from secondary storage into RAM. The CPU then reads from and writes to RAM as it processes. RAM is volatile, so its contents are lost when power is removed. For example, a web browser, its open tabs and the operating system are held in RAM while the computer is running; increasing RAM capacity allows more programs to be held simultaneously, reducing reliance on virtual memory.
Virtual memory
Virtual memory is a technique that lets a computer run programs larger than the available physical RAM. When RAM becomes full, the operating system moves pages of data that are not currently being used from RAM onto a reserved area of secondary storage, often called the page file or swap file. This frees space in RAM for the pages the CPU needs now. When a program needs data currently held on secondary storage, the operating system swaps it back into RAM and may move another page out. Because secondary storage is much slower than RAM, heavy use of virtual memory slows the computer down. For example, a laptop with 8 GB of RAM running several large applications may use virtual memory to keep working, but switching between applications becomes noticeably slower.
Cache
OCR J277 explicitly lists Cache as a standalone item in 1.2.1 Primary storage (memory), while also naming cache as a CPU component in 1.1.1 and cache size as a performance factor in 1.1.2. Cache is small, fast, volatile memory close to or inside the CPU. It keeps copies of frequently used instructions and data so the processor waits less often for slower RAM. A cache hit supplies the requested item quickly; a miss requires a RAM fetch. Larger cache can improve average access time by retaining more useful items, although clock speed and core count also affect performance. J277 is untiered, so this teaching applies to every candidate.
Your focus
- State that primary storage is directly accessible by the CPU and give RAM and ROM as examples.
- Explain why running programs and their data must be held in primary storage.
- Distinguish primary storage from secondary storage in terms of speed, volatility and CPU access.
Show all 18 objectives
- Describe RAM as volatile read/write memory holding running programs and data.
- Describe ROM as non-volatile read-only memory holding fixed start-up instructions.
- Compare RAM and ROM in terms of volatility, contents, read/write ability and role in a computer system.
- Describe ROM as non-volatile primary storage that retains its contents without power.
- Explain how ROM is used during computer start-up to run firmware and load the operating system.
- Distinguish ROM from RAM and secondary storage in terms of purpose and volatility.
- Describe RAM as volatile primary storage used to hold data and instructions currently in use.
- Explain why programs must be loaded into RAM before the CPU can execute them.
- Compare RAM with ROM in terms of volatility, read/write access and purpose.
- Describe how virtual memory allows a computer to run programs larger than its physical RAM.
- Explain the role of the operating system in swapping pages between RAM and secondary storage.
- Evaluate the effect of virtual memory on computer performance when RAM is insufficient.
- Describe cache as a component of the CPU architecture that stores frequently used instructions and data.
- Explain how cache size affects CPU performance and the fetch-execute cycle.
- Compare cache with registers and RAM in terms of speed, size and cost.
Primary storage (memory) exam tips
Marking Points
- Primary storage is directly accessible by the CPU, unlike secondary storage which must first be loaded into memory.
- It holds the instructions of currently running programs and the data those instructions operate on.
- It holds the operating system and firmware such as the BIOS/bootstrap program needed to start the computer.
- RAM is volatile and stores currently running programs and data; ROM is non-volatile and stores fixed start-up instructions.
- Primary storage is much faster than secondary storage, so it reduces the time the CPU waits for instructions and data.
- Insufficient primary storage causes swapping or paging to secondary storage, which slows execution.
- RAM is volatile and loses its contents when power is removed; ROM is non-volatile and retains its contents.
- RAM stores the operating system, currently running programs and data being processed; ROM stores fixed start-up instructions such as the bootstrap/BIOS.
- RAM can be read from and written to; ROM is normally read-only during normal operation.
- RAM is usually larger and can be upgraded; ROM is small and fixed in the system.
- Both are primary storage directly accessible by the CPU, but they serve different roles.
- At start-up, ROM instructions run first and cause the operating system to be loaded into RAM.
- ROM is non-volatile, meaning it keeps its contents when the power is turned off.
- ROM stores the bootstrap program or firmware (BIOS/UEFI) used at start-up.
- The CPU fetches and executes instructions from ROM when the computer is first switched on.
- ROM is used to run the power-on self-test (POST) and initialise hardware before the operating system loads.
- ROM contents are typically read-only during normal operation, so they are not changed by user programs.
- ROM may hold fixed instructions that load the operating system from secondary storage into RAM.
- RAM is volatile, meaning its contents are lost when the power is turned off.
- RAM temporarily stores data and instructions currently being used by the CPU.
- RAM acts as fast primary storage that the CPU can access directly.
- Programs and data are copied from secondary storage into RAM before they can be executed.
- The CPU reads instructions and data from RAM and writes results back to RAM during processing.
- More RAM allows more programs or larger amounts of data to be held in memory at the same time.
- Virtual memory extends the apparent size of RAM by using secondary storage as an overflow area.
- The operating system moves pages or blocks of data between RAM and a page file or swap file on secondary storage.
- When required data is not currently in RAM, the operating system retrieves it from secondary storage and may move another page out.
- Frequent swapping increases disk access and slows performance because secondary storage has a much higher access time than RAM.
- Virtual memory allows programs larger than physical RAM to run, and allows more programs to be open at once.
- The technique is managed by the operating system, not directly by the application program.
- Cache is a small, fast type of volatile memory located within the CPU architecture, used to store copies of frequently used instructions and data.
- Cache size is a key factor affecting CPU performance; a larger cache reduces the average time the CPU waits for data by storing more frequently used instructions.
- A cache hit occurs when requested data is found in the cache, which is much quicker than fetching it from main memory (RAM).
- A cache miss causes the CPU to fetch the required instruction or data from RAM and copy it into the cache for future use.
- Cache sits between registers and RAM in the memory hierarchy, being faster but smaller and more expensive per unit of storage than RAM.
Examiner Tips
- 💡Link every point back to the CPU: primary storage exists so the CPU can fetch and execute instructions quickly.
- 💡Use the terms volatile and non-volatile accurately, and name RAM and ROM as examples of primary storage.
- 💡When asked why more RAM improves performance, explain that more programs and data fit in fast memory, reducing slow transfers from secondary storage.
- 💡Structure comparisons around volatility, contents, read/write ability and typical size.
- 💡Use a start-up sequence example to show how ROM and RAM work together.
- 💡Avoid saying ROM can never be changed; say it is normally read-only and is not written to by ordinary programs.
- 💡Link ROM to a specific start-up task, such as holding the bootstrap program that runs POST and loads the operating system.
- 💡Use the term non-volatile explicitly and contrast it with RAM to show understanding of primary storage.
- 💡If asked to explain, give a cause-and-effect chain: power on → CPU fetches from ROM → POST and hardware initialisation → OS loaded into RAM.
- 💡Use the phrase volatile working memory and link it to the CPU fetching instructions and data during processing.
- 💡Give a concrete example, such as a game or document being loaded from secondary storage into RAM before it can run.
- 💡When comparing with ROM, mention both volatility and typical purpose to make the distinction clear.
- 💡Link virtual memory to the fetch-execute cycle by explaining that the CPU can only execute instructions and data held in RAM.
- 💡Describe the transfer between RAM and secondary storage in both directions, using GCSE-level terminology.
- 💡When asked about performance, compare access times of RAM and secondary storage rather than saying virtual memory is simply good or bad.
- 💡Explicitly link cache to CPU performance: explain that a larger cache size means more frequently used data can be stored, reducing slower RAM accesses.
- 💡When asked to compare memory types, give a clear point plus a reason, for example cache is faster than RAM because it is closer to the CPU and built from faster memory.
Common Mistakes
- Saying primary storage is only RAM: correct this by noting ROM is also primary storage because the CPU can access it directly.
- Confusing primary storage with secondary storage: correct this by stating secondary storage is non-volatile, larger and slower, and is not directly executed by the CPU.
- Claiming primary storage permanently stores all files: correct this by explaining RAM is volatile and files are kept in secondary storage until loaded.
- Saying ROM stores the operating system: correct this by stating the operating system is stored in secondary storage and loaded into RAM when running.
- Saying RAM keeps data when the computer is switched off: correct this by stating RAM is volatile and its contents are lost without power.
- Treating ROM as a type of secondary storage: correct this by explaining ROM is primary storage because the CPU can access it directly.
- Thinking ROM is volatile: correct this by stating that ROM is non-volatile and retains data without power, unlike RAM.
- Confusing ROM with secondary storage: correct this by explaining that ROM is primary storage directly accessible to the CPU and usually stores start-up firmware, not user files.
- Saying ROM stores the operating system permanently: correct this by clarifying that the operating system is usually stored on secondary storage and loaded into RAM; ROM holds the bootstrap/firmware that starts the loading process.
- Thinking RAM permanently stores files: correct this by stating that RAM is volatile and only holds data temporarily while the computer is on; permanent storage is secondary storage.
- Confusing RAM with ROM: correct this by explaining that RAM is read/write and volatile, while ROM is read-only during normal use and non-volatile.
- Saying RAM stores the operating system permanently: correct this by clarifying that the operating system is stored on secondary storage and loaded into RAM when needed.
- Thinking virtual memory increases the amount of physical RAM: it does not; it uses secondary storage to supplement RAM.
- Believing virtual memory makes a computer faster: it usually slows performance because secondary storage is slower than RAM.
- Confusing virtual memory with cache or with cloud storage: cache is fast memory close to the CPU, and cloud storage is remote secondary storage, not a local extension of RAM.
- Thinking cache is a type of secondary storage. Correction: cache is volatile memory located inside the CPU architecture, unlike a hard disk or SSD.
- Confusing cache with RAM. Correction: RAM is larger and slower main memory, while cache is smaller, faster and holds copies of data that RAM also stores.
- Assuming a bigger cache always means a faster computer. Correction: performance also depends on other factors such as CPU clock speed and the number of cores.