Learn
3.3 | PRIMARY, SECONDARY AND CLOUD STORAGE
01 | WHERE IS THE DATA?
| Category | Main role | Examples |
|---|---|---|
| Primary storage | Instructions and data directly accessible by the CPU | RAM and ROM |
| Secondary storage | Longer-term storage, accessed through input/output systems rather than directly as main memory | HDD, SSD, optical disc, SD card, USB drive |
| Cloud storage | Remote storage accessed through a network service | Files held on a provider’s servers |
Opening a saved document usually brings the data needed for processing from secondary storage into RAM. The CPU works with memory; saving writes the document back to longer-term storage.
Do not decide the category only by whether a device is inside the case. An internal SSD is secondary storage. ROM is primary storage even though it retains its contents without power.
02 | RAM: THE WORKING SPACE
Random access memory (RAM) holds instructions and data currently in use. It is read/write memory: the system can obtain values from it and change them.
RAM is volatile, meaning its contents are lost when power is removed. A running application and unsaved changes may be held in RAM; RAM alone does not preserve them after shutdown.
More RAM can allow a larger working set or more applications to stay in main memory, reducing pressure to use slower virtual memory. It does not automatically make every calculation faster.
03 | ROM: KEEP ESSENTIAL STARTUP CODE
Read-only memory (ROM) is non-volatile memory commonly used to hold essential firmware or startup instructions. The data remains when power is removed.
At startup, the system needs instructions before a normal application is loaded into RAM. Non-volatile firmware supplies that starting point.
In the basic syllabus comparison, ROM is not changed during ordinary use, whereas RAM is routinely written to. Some practical firmware memory is reprogrammable using a controlled update process; “read-only” does not mean no hardware technology can ever be updated.
| Property | RAM | ROM |
|---|---|---|
| Power removed | Contents lost | Contents retained |
| Ordinary use | Read and write working data | Read essential stored instructions |
| Typical purpose | Running programs and current data | Firmware / startup code |
04 | SECONDARY STORAGE: SAVE FOR LATER
Secondary storage preserves programs and files beyond the current running session. The devices discussed here are non-volatile.
An SSD can keep a saved essay, while RAM holds the current editable copy. If you type a change but do not save it, the saved version and working version may differ.
Secondary storage generally offers more capacity at lower cost per unit than main memory, but access is typically slower. Exact costs and speeds depend on the devices.
05 | MAGNETIC STORAGE: HDDs
A hard disk drive (HDD) stores data as magnetic patterns on rotating platters. The surface is organised into tracks and sectors.
A moving read/write head accesses the relevant area. Writing changes magnetic states using an electromagnet; reading detects stored patterns and the drive electronics interpret them as data.
Advantages: commonly high capacity and competitive cost per unit. Drawbacks: moving parts introduce seek and rotational delays, noise and sensitivity to mechanical shock.
Magnetic patterns represent binary information. The drive does not store printed 0 and 1 characters on the surface.
06 | OPTICAL STORAGE: LIGHT AND SURFACE PATTERNS
CDs, DVDs and Blu-ray discs use a laser and detector to read an encoded pattern along a track. Pits and lands, or equivalent changes in recordable media, alter the reflected signal.
The electronics interpret the detected pattern as data. It is too simplistic to say every pit directly equals 1 and every land equals 0; encoding uses the detected pattern and transitions.
Writable media use laser-controlled changes to a recording layer. Not every optical disc is rewritable; some are pressed read-only or can be written only once.
Uses: media distribution and removable copies where suitable drives are available. Limitations: scratches, drive requirements, access speed and capacity compared with many modern storage options.
07 | SOLID-STATE STORAGE: ELECTRICAL STATES
SSDs, SD cards and USB flash drives store data electronically with no moving read/write mechanism. They use flash memory cells built from transistors.
In the syllabus floating-gate model, a control gate helps change or sense charge stored on an insulated floating gate. The stored charge changes the transistor’s behaviour, allowing states to represent data even after power is removed.
Flash storage uses NAND or NOR arrangements. Modern designs can use different cell structures and store multiple bits per cell, but the key concept is non-volatile electrical storage rather than rotating magnetic surfaces.
Advantages: fast access, low mechanical noise, compact form and better resistance to movement-related damage. Limitations: finite write endurance and costs that depend on capacity and design. No moving parts does not make a device indestructible.
08 | COMPARE THE PHYSICAL METHODS
| Method | How data is represented | Examples | Useful comparison |
|---|---|---|---|
| Magnetic | Magnetic states on a surface | HDD | High capacity; mechanical access delays |
| Optical | Pattern affecting reflected laser light | CD, DVD, Blu-ray | Removable discs; optical drive needed |
| Solid-state | Stored electrical states in flash cells | SSD, SD card, USB drive | No mechanical read/write motion; fast access |
For a portable system exposed to movement, solid-state storage may suit better than a spinning HDD because it avoids moving read/write parts. For a large archive, capacity and cost may dominate. Compare actual requirements.
09 | VIRTUAL MEMORY: WHEN RAM IS UNDER PRESSURE
Virtual memory uses secondary storage as backing for parts of a process’s memory. In the syllabus model, when RAM is insufficient, the operating system can move selected pages from RAM to secondary storage and bring needed pages back.
A page is a fixed-size block of memory data. A page needed by the CPU must be available in RAM before normal processing can use it; the CPU does not treat an HDD as equally fast RAM.
- The working data exceeds available RAM.
- The operating system moves suitable pages out to backing storage, freeing RAM.
- If a moved page is needed later, it is brought back into RAM.
- Another suitable page may be moved out to make space.
This can allow programs to continue, but page transfers to secondary storage are slower than RAM access. Frequent paging can make the system noticeably slow.
10 | A SMALL PAGING EXAMPLE
Suppose a simplified model has space for three working pages in RAM, but a program needs four pages, A, B, C and D.
| Moment | RAM | Backing storage | Action |
|---|---|---|---|
| Start | A, B, C | D | D is not currently in RAM |
| Need D | A, C, D | B | Move B out and bring D in |
| Need B again | B, C, D | A | Move A out and bring B in |
The program can access all four pages over time, but transfers add delay. Virtual memory does not create physical RAM or make storage faster. Adding suitable RAM can reduce paging when the working set would then fit.
11 | CLOUD STORAGE IS STILL PHYSICAL STORAGE
Cloud storage means storing data on remote servers accessed through a network, often the internet. A provider manages the storage infrastructure.
Files still exist on physical storage hardware in data centres. The term “cloud” does not mean the data has no physical location.
A service may keep a local synchronised copy, allow downloads for offline use or provide only remote access to particular data. The behaviour depends on the service and settings.
12 | CLOUD VERSUS LOCAL
| Factor | Cloud storage | Local storage |
|---|---|---|
| Access | Can support access from multiple authorised devices and locations | Available on the device or local system; remote access needs extra arrangements |
| Connection | Remote operations depend on a working network | Local files can be used without internet |
| Sharing | Services often offer controlled sharing | Copies or a local sharing system may be needed |
| Capacity / management | Provider manages hardware; plans and quotas vary | Owner manages device capacity and maintenance |
| Speed | Affected by network and service as well as storage | Affected by the local device and connection |
| Risks | Provider outage, account access and privacy concerns | Device failure, loss or theft; owner needs backups |
Cloud can be useful for collaboration and access across devices. Local storage can be useful for large files, offline work and direct control. Many users combine both.
13 | SYNC IS NOT THE SAME AS BACKUP
Synchronisation keeps selected locations aligned. Deleting or damaging a file locally may therefore propagate to a synced cloud copy.
A backup is a separately retained recovery copy or history. Some cloud services provide version history and recovery, but retention and settings vary.
Do not assume cloud storage is automatically secure, unlimited or immune to data loss. Account controls, permissions, provider arrangements and independent recovery copies matter.
14 | CHOOSE AND EXPLAIN
Running several large applications: sufficient RAM can keep more working data in main memory and reduce paging.
Portable working files: an SSD offers non-volatile storage without mechanical read/write motion.
Sharing a group document: cloud storage may provide convenient authorised access, but requires suitable connectivity and permissions.
Working without internet: a local copy avoids dependence on the remote connection.
In an explanation, link the property to its consequence: “RAM access is faster than paging to secondary storage, therefore reducing paging can improve responsiveness.”