EEasy IGCSELabTracker

On a phone the notes, quizzes and tracker work fine. The 3D models and the practice lab are made for a laptop.

Specification points 3.3.1–3.3.6 ·

primary storage (RAM, ROM), secondary storage, how magnetic, optical and solid-state storage work, virtual memory, and cloud storage compared with local.

1Primary and secondary storage

CPU PRIMARY STORAGE RAM volatile ROM non-volatile directly accessed by the CPU small, fast SECONDARY STORAGE HDD · SSD · CD/DVD/Blu-ray SD card · USB drive NOT directly accessed by CPU permanent (non-volatile) large, slower direct copied into RAM before use
Figure 1. Only primary storage is accessed directly by the CPU.
Definition

Primary storage — storage that is directly accessed by the CPU: RAM and ROM.

Secondary storage — storage that is not directly accessed by the CPU; it is needed for more permanent (non-volatile) storage of data and programs.

RAM — random access memory ROM — read only memory
Power off Volatile — contents are lost Non‑volatile — contents are kept
Read / write Read and write; contents change all the time Read only; contents cannot be changed
Role Holds the data and instructions currently in use (the OS, open programs and files) Holds the start‑up instructions (firmware: the bootloader, also called the BIOS) needed to boot the computer

Why a computer needs both: RAM is fast, changeable working memory for whatever is running now, but it is empty when the computer is switched on. The start-up instructions therefore have to be kept in ROM, which keeps its contents without power and cannot be changed by accident.

2How secondary storage works

Magnetic (e.g. hard disk drive, HDD)

  • Data is stored on platters coated in magnetic material, which spin at high speed.
  • Each platter surface is divided into circular tracks, and each track into sectors.
  • A read/write head on an arm moves to the correct track and waits for the sector to pass under it. The head is an electromagnet: it writes by magnetising tiny areas in one of two directions (1 or 0) and reads by detecting that direction.
  • Moving parts make access slower than solid-state, and a knock can damage the drive.

Optical (CD, DVD, Blu-ray)

  • The disc spins and a laser follows a single spiral track.
  • Writing: the laser burns pits into the track; unburnt areas are lands.
  • Reading: the laser shines on the track; lands reflect light back to a sensor and pits scatter it. The pattern of reflections is converted into binary.

Solid-state / flash memory (SSD, SD card, USB drive)

  • No moving parts. Data is stored in millions of transistors arranged as NAND or NOR flash.
  • Each transistor has a control gate and a floating gate, separated by insulating layers.
  • Writing: a voltage on the control gate forces electrons into the floating gate, where the insulation traps them. A cell with or without trapped electrons stores 1 or 0, and keeps it without power.
  • Reading: the cell is tested for whether its floating gate is charged.
  • With no moving parts, data is accessed faster and the device is more robust than an HDD.
Magnetic — e.g. HDD Optical — CD, DVD, Blu-ray Solid-state — SSD, SD, USB platter (spins) read/write head (electromagnet) sector track tiny areas magnetised one way = 1, other way = 0 one spiral track, centre → edge close-up of the track land pit land pit laser land: light reflected back to a sensor pit: light scattered writing: laser burns pits one memory cell (a transistor) control gate floating gate − − − − source drain silicon insulating layers Electrons trapped in the floating gate (surrounded by insulation) stay there with no power: charged or not = 0 or 1. Cells are arranged as NAND or NOR flash.
Figure 2. The three secondary storage technologies.

3Virtual memory

Definition

Virtual memory — an area of secondary storage (HDD or SSD) that is used as if it were extra RAM when RAM is full.

  • Created: the operating system sets aside part of the HDD or SSD as virtual memory.
  • Used: data is divided into pages, which are transferred between RAM and virtual memory when needed (Figure 3).
  • Why necessary: without it, once RAM is full no more programs or data could be loaded, and the computer could crash. With it, more programs can be open than RAM alone could hold.
  • Virtual memory is much slower than RAM, so heavy use slows the computer down.
RAM — full page — program B (in use) page — program A (not needed now) page — program C (in use) page — program B (in use) HDD / SSD virtual memory area page — program A page — program D 1 A page not currently needed is moved out of RAM — this frees space in RAM 2 When a page in virtual memory is needed, it is moved back into RAM (another page moves out)
Figure 3. Pages are swapped between RAM and virtual memory on the HDD or SSD.

Fill the RAM

Loading the interactive…

4Cloud storage

Definition

Cloud storage — storing data on remote physical servers, owned and run by a cloud provider, that are accessed over the internet. Local storage is storage in or attached to the user's own device.

Physical servers and storage devices are still needed — in the provider's data centres, usually with copies of the data kept in more than one place.

Cloud compared with storing data locally:

Advantages
  • Access from anywhere, on any device with an internet connection, so files are easy to share and work on together.
  • No storage hardware to buy or maintain; more space can be bought as needed.
  • The provider keeps backup copies on several servers, so data survives if the user's own device is lost or damaged.
Disadvantages
  • Needs an internet connection; without one the data cannot be reached, and large files are slow to upload and download.
  • Security and privacy risk: a third party holds the data, and its servers can be hacked.
  • Ongoing cost (subscription) for large amounts of space.
  • If the provider has an outage or closes, the data may be unavailable or lost.
Traps
Wrong Right
ROM is a type of secondary storage. ROM is primary storage — accessed directly by the CPU.
Virtual memory is extra RAM. It is part of the HDD/SSD used as if it were RAM, and is much slower.

Quick check

12 multiple-choice questions. Pick an answer to see whether it is right and why.

  1. Which of these is primary storage?

  2. What does RAM hold?

  3. Why are the start-up instructions kept in ROM and not in RAM?

  4. How is the surface of a hard disk platter divided up?

  5. How does the read/write head of a hard disk drive write data?

  6. When an optical disc is read, what happens to the laser light at a pit?

  7. In flash memory, where are electrons held to store a bit?

  8. Why is data accessed more slowly on an HDD than on an SSD?

  9. What is virtual memory?

  10. RAM is full and the user opens another program. How does virtual memory make room for it?

  11. Which statement about cloud storage is correct?

  12. Which of these is a disadvantage of cloud storage compared with local storage?

Exam-style questions

Write your answer, then show the answer and compare. Nothing here is marked for you: you decide how close you were. What you write is saved in this browser.

Recall

1

What is meant by primary storage?

1 mark
2

Give two differences between RAM and ROM.

2 marks
3

Give one example of each: magnetic, optical and solid-state storage.

3 marks

Understanding

4

Explain why a computer needs both RAM and ROM.

3 marks
5

Describe how data is read from an optical disc.

3 marks
6

Describe how solid-state storage stores data.

4 marks

Application

7

A student's laptop becomes slow when many programs are open. Explain how virtual memory lets the programs stay open, and why the laptop slows down.

4 marks
8

A photographer travels with a laptop. Explain why an SSD is more suitable than an HDD.

2 marks

Exam-style

9

Describe how data is written to and read from a magnetic hard disk drive.

4 marks
10

A company is deciding whether to move its files from its own servers to cloud storage. Explain the advantages and disadvantages of doing this.

6 marks

How well do you know this?

Rate each specification point. It is saved to your tracker as a new revision round.

All points:
  • 3.3.1Understand what is meant by primary storage
  • 3.3.2Understand what is meant by secondary storage
  • 3.3.3Describe the operation of magnetic, optical and solid-state (flash memory) storage and give examples of each
  • 3.3.4Describe what is meant by virtual memory, how it is created and used and why it is necessary
  • 3.3.5Understand what is meant by cloud storage
  • 3.3.6Explain the advantages and disadvantages of storing data on the cloud in comparison to storing it locally

Settings

Your subjects

Untick the subjects you don't take. They leave the menu, the home page and the tracker. Your ratings are kept, so you can bring a subject back at any time.

Page style

Colours