Hardware

Hardware

Virtual memory and cloud storage

Data Storage Paper 1 9 min read

On this page
  1. In this note
  2. What you should already know
  3. Virtual memory
  4. Cloud storage
  5. Summary
  6. Ways they test it
  7. What the examiner looks for
  8. Past-paper questions, solved
  9. Common mistakes
  10. Practice
  11. Can I do this?
  12. Quiz

In this note

Syllabus 3.3 Data storage
  • 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.

Before this: Primary and secondary storage. Next: Network hardware.

Part 1Learn the topic

The notes: every idea from the start, with our own examples.

What you should already know

RAM

RAM holds the data and programs currently in use. It is fast but limited in size.

Quick check: what happens if you open more programs than RAM can hold?

Without virtual memory, the computer could crash or refuse to open them.

Virtual memory

Virtual memory is an area of secondary storage (usually the hard disk or SSD) that is used as if it were RAM when RAM is full. It is created by partitioning part of the secondary storage. Data is moved in blocks called pages.

RAM (full)page Apage Cpage D (new)Hard diskvirtual memorypage B① page B out③ back when needed② page D now fits
Pages are swapped between RAM and virtual memory.

General methodHow virtual memory is used

  1. RAM becomes full.
  2. Pages of data that are not needed immediately are transferred from RAM to virtual memory.
  3. This frees space in RAM for the new data or program that is needed now.
  4. When a page in virtual memory is needed again, it is transferred back into RAM (another page may be moved out to make room).
Why it is necessaryIts drawback
stops the computer crashing when RAM is full; lets more / larger programs run than RAM alone allowssecondary storage is much slower than RAM, so heavy use slows the computer ("disk thrashing" when pages keep swapping)

Cloud storage

Cloud storage is storage that is accessed remotely, usually over the internet, on a collection of servers owned and maintained by a third party (e.g. Google Drive, iCloud, OneDrive). The cloud still needs physical servers and storage: the data is just not on your own device. Storing data on your own device or your own server is storing it locally.

Advantages of the cloud (vs local)Disadvantages of the cloud (vs local)
data can be accessed from any location and any device with an internet connectionneeds an internet connection: no or unstable connection = no access
the third party maintains the hardware and its security; you do notyou rely on the third party: its security, and whether it stays in business
storage can be increased easily without buying new hardwarean ongoing fee (subscription) is often charged
no need to buy, house and power your own storage hardwaredata may be less secure / stored in another country
the provider backs up the datauploading / downloading large files can be slow
easy to share and collaborate on files

Try it yourself

1
Where is virtual memory created?
Show answer

Answer On secondary storage (a partition of the hard disk / SSD)

2
What are the blocks of data moved by virtual memory called?
Show answer

Answer Pages

3
Give one disadvantage of cloud storage.
Show answer

Answer Needs an internet connection (also: relies on third party, fee, security)

Summary

  • Virtual memory: a partition of secondary storage used as RAM when RAM is full.
  • Pages not needed now move RAM → virtual memory; moved back when needed.
  • Necessary: prevents crashing, more programs run. Drawback: slower than RAM.
  • Cloud: remote collection of servers, third party, accessed over the internet; still physical servers.
  • Cloud vs local: anywhere access, no maintenance, scalable, backed up · needs internet, third party, fees, security.

If you see …

  • "explain how virtual memory can be used in this scenario"partition · page B to VM · space for D · B back when needed
  • "explain two advantages of cloud storage"point + consequence for the scenario ("… so employees can work from home")
Part 2How it is examined

Question types, what the examiner gives marks for, and real past-paper questions solved.

Ways they test it

Type 1 VM scenario

"Pages A, B, C in RAM; page D needs to be sent; explain how virtual memory can be used" [4]

Spot it named pages.

  1. Use the letters given: page B to VM, D into RAM, B back later.

Type 2 Name it

"Give the name of the partitioned section of the secondary storage" [1]

Spot it "partitioned".

  1. Virtual memory.

Type 3 Cloud definition

"Describe what is meant by cloud storage" [2]

Spot it "cloud".

  1. collection of servers · remote · accessed over the internet · third party

Type 4 Cloud pros / cons

"Explain two advantages for the owners …" [4]; "one disadvantage to employees" [2]

Spot it "explain".

  1. Two marks each: the point, then "… meaning that" for the people in the question.

What the examiner looks for

"Explain two advantages for the owners of the company of storing its data in cloud storage" [4]

Marking points (one mark each, up to the marks shown)

  • Data can be accessed from any location … meaning employees can work from anywhere with a connection
  • Hardware is owned/maintained by a third party … so the company is not responsible for maintenance / security
  • Storage can be increased easily … without buying new hardware
  • No need to house the hardware … saving the cost of the space
  • The cloud system backs up the data … so the company does not need to

Keywords any location third party maintain increase back up

Past-paper questions, solved

0478/13/M/J/23 Q10Paper 1 · Computer systems4 marksFull size
Using virtual memory for pages A, B, C and D

How to start Follow the method with the question's letters.

Show a full-mark answer and the mark scheme

Part of the secondary storage is partitioned to create virtual memory. Page B, which is not needed immediately, is sent from RAM to virtual memory. This makes space in RAM for page D. When page B is needed again (once another page has been processed), it is sent back from virtual memory to RAM.

PartAnswer / workingMarksGuidance
10Any four: secondary storage partitioned · page B sent to VM · makes space for page D · once another page not required · page B sent back to RAM when requiredB4
Total: 4 marks
0478/13/M/J/25 Q2Paper 1 · Computer systems6 marksFull size
Virtual memory; features of magnetic storage; why an HDD is secondary storage

How to start (b) the question already gives platters, so give three other features. (c) two reasons from the definition of secondary storage.

Show a full-mark answer and the mark scheme

(a) Virtual memory.

(b) The platters are divided into tracks and sectors. The platters rotate (it has moving parts). It uses a read/write head with an electromagnet.

(c) It is not directly accessed by the CPU, and it stores data permanently until the user deletes it (non-volatile).

PartAnswer / workingMarksGuidance
2(a)Virtual memoryB1
2(b)Any three: tracks / sectors · platters rotate / moving parts · read/write head · electromagnet · magnetised dotsB3
2(c)not directly accessed by the CPU · stores data permanently / non-volatileB2
Total: 6 marks
2210/13/O/N/23 Q6Paper 1 · Computer systems7 marksFull size
Cloud storage: characteristics, two advantages, one disadvantage

How to start (b) and (c) are point + expansion: say what happens for the owners / the employees.

Show a full-mark answer and the mark scheme

(a) B (data is stored locally).

(b) 1: The data can be accessed from any location, meaning employees can work from anywhere with an internet connection. 2: The hardware is maintained by a third party, meaning the company is not responsible for maintaining it or its security.

(c) An internet connection is needed, and if it is unavailable or unstable the employees cannot access the data.

PartAnswer / workingMarksGuidance
6(a)BB1
6(b)Two advantages with expansion: any location … work anywhere · third party … not responsible · increase storage … no new hardware · no need to house hardware … saves cost · backs up … company need notB4
6(c)internet connection needed … if unavailable, no access // pressured to work out of hours … access from anywhereB2
Total: 7 marks

Common mistakes

  • ✗ "Virtual memory is extra RAM"✓ "Virtual memory is part of secondary storage used as RAM"
  • ✗ "Virtual memory makes the computer faster"✓ "It stops it crashing; it is slower than RAM"
  • ✗ "The cloud has no hardware"✓ "Cloud data is on physical servers owned by a third party"
  • ✗ "You can access it anywhere" with no expansion✓ "… so employees can work from home"Explain = point + effect.

Practice

Practice: easy, medium, hard

Easy

1
Is cloud storage accessed locally or remotely?
Show answer

Answer Remotely

2
What is virtual memory used for?
Show answer

Answer As extra RAM when RAM is full

Medium

1
Explain why virtual memory is necessary. [2]
Show answer

Answer When RAM is full, pages can be moved out so new data fits; stops the computer crashing

2
Give two advantages of storing photos on the cloud instead of a phone.
Show answer

Answer Access from any device / location; frees phone storage; backed up if the phone is lost

Hard

1
Explain one disadvantage of a computer relying heavily on virtual memory. [2]
Show answer

Answer Secondary storage is slower than RAM, so moving pages back and forth slows the computer

Can I do this?

Anything unticked: revise that section first. All ticked: take the quiz.

Quiz

The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

Your progress on this note is saved when JavaScript is on.

⬇️ Download this chapter as a PDF: Full notes