Study Guide Instructor view

Primary Storage and Virtual Memory

Teaching notes for Lesson 3.6, with controls for presenting it.

Keep this page on your own screen. Share only the lesson window. The lesson window holds no teaching notes, so sharing it cannot show them.

Presenting

  1. Open the lesson in its own window and share that window, not this one.
  2. Use Next and Previous here, or the lesson’s own, to move through the lesson. Next reveals one thing at a time: the next idea, or the answer to the question on screen, then the next step. Previous takes the last reveal back. The line below says what is on screen and what Next will show.
  3. Reveal hints and answers when the class is ready, and reset a demonstration before using it again.

The controls need JavaScript and a browser that supports BroadcastChannel. Without them, open the lesson in presentation mode and use its own controls.

The two windows talk to each other only inside this browser, on this device. Nothing is sent to a server, and no account is needed. A second device (a phone or another tablet) cannot follow the lesson window yet.

Lesson plan

Level
Intermediate
Time
About 60 minutes; the steps below add up to 60

Pupils work from a desk (RAM), a card stuck to the desk lid (ROM) and a locker down the corridor (secondary storage), predicting what is lost in a power cut, where a computer’s first instructions come from and what happens when the desk is full, before any term is given. The lesson ends with a slow laptop to diagnose and a explanation to a younger pupil, so you can see whether virtual memory is understood as slower size, not extra speed.

Objectives

  • Explain what primary storage is, and how it differs from secondary storage
  • Describe RAM and ROM, and state three differences between them
  • Explain why a computer needs both RAM and ROM
  • Describe what virtual memory is, how it is created and how it is used
  • Explain why virtual memory is needed, and why it is slower than RAM

Before the lesson

  • Draw the desk, the lid card and the locker on the board; keep them visible and add the labels RAM, ROM and secondary storage only as pupils reach them.
  • Four ‘books’ (paper cards) and a fifth for the desk-is-full demonstration; a second pile as the locker.
  • Mini whiteboards for predictions and show-me answers.
  • Optionally open a task manager or activity monitor on the shared screen to show memory in use.

Steps

  1. Introduction Opening

    On screen: the lesson’s title, module and number; Next adds its objectives and key terms, as the lesson page lists them; Next again begins the first step.

    Objectives on screen

    • Explain what primary storage is, and how it differs from secondary storage
    • Describe RAM and ROM, and state three differences between them
    • Explain why a computer needs both RAM and ROM
    • Describe what virtual memory is, how it is created and how it is used
    • Explain why virtual memory is needed, and why it is slower than RAM

    Purpose: Pupils work from a desk (RAM), a card stuck to the desk lid (ROM) and a locker down the corridor (secondary storage), predicting what is lost in a power cut, where a computer’s first instructions come from and what happens when the desk is full, before any term is given. The lesson ends with a slow laptop to diagnose and a explanation to a younger pupil, so you can see whether virtual memory is understood as slower size, not extra speed.

  2. 1. The desk and the locker Think 7 min

    Purpose: Pupils compare working from a desk and from a locker, so that primary storage is first met as what is within reach and cleared, and secondary storage as slower but kept.

    Ask

    • Why is it quicker to work from the desk than from the locker?
    • What is the drawback of keeping something only on the desk?
    • Which would the CPU be able to use directly?

    Responses to expect

    • It is within reach with no trips
    • The desk is cleared every evening, so it would be lost
    • What is on the desk

    Misconceptions to challenge

    • A learner may believe: “Primary storage is the biggest or most permanent storage.” Respond: Primary is the quick, directly reached memory; the locker is bigger and permanent. Ask which is within reach.
    • A learner may believe: “Storage in an online service counts as primary storage.” Respond: Primary storage is memory the CPU reaches directly, not something over the internet.
    • A learner may believe: “The CPU reads files straight from the locker.” Respond: Things must be brought to the desk first. Ask what the pupil does before working on a book.

    On the board or with the pen

    • Write fast and cleared beside the desk, slow and kept beside the locker.

    What learners should notice

    • Two things trade off: speed and permanence.
    • The desk is cleared; the locker keeps things.

    Checking understanding: Pupils write one advantage and one drawback of the desk on whiteboards; the what-is-primary check shows who ties primary storage to direct access by the CPU.

    Depending on the answers

    • If pupils pick the ‘CPU cannot reach directly’ option: ask which place the pupil works from and what the CPU works from, then re-ask.
    • If answers are secure: ask where a pupil’s finished essay should be kept overnight.

    English as an additional language

    • Check desk, locker, within reach and cleared with the drawing.

    Discussion pause: Thirty seconds of silent thinking, then pairs compare.

    In the lesson window

    • Think it through: Why is it quicker to work from what is on the desk than from the locker? And what is the drawback of keeping something only on the desk?
    • Check your understanding: Which statement describes primary storage?
  3. 2. The desk: RAM Predict 8 min

    Purpose: Pupils predict what happens to an unsaved essay in a power cut, so that RAM is met as working memory that is volatile.

    Ask

    • The power fails with half an essay unsaved: what has happened to it, and why?
    • Can RAM be written to as well as read?
    • Where did the essay live while it was being typed?

    Responses to expect

    • It is lost, because working memory is cleared when the power goes off
    • Yes, it can be read from and written to
    • In RAM

    Misconceptions to challenge

    • A learner may believe: “RAM keeps its contents when the power is off.” Respond: That is what makes it volatile, like the desk cleared each evening.
    • A learner may believe: “RAM can only be read from.” Respond: It is read from and written to all the time; it is ROM that is read only.
    • A learner may believe: “Unsaved work is safe because the computer ‘remembers’ it.” Respond: Only what has been saved to secondary storage is kept.

    On the board or with the pen

    • Write RAM = random access memory: read and write, volatile beside the desk.

    What learners should notice

    • Volatile means loses its contents without power.
    • Saving moves work from RAM to secondary storage.

    Checking understanding: The power-cut-answer check; ask pupils which wrong option describes ROM.

    Depending on the answers

    • If pupils choose the option about keeping contents: ask what happens to the desk each evening and map it to RAM.

    English as an additional language

    • Check volatile and working memory; relate volatile to ‘disappears’.

    In the lesson window

    • Think it through: A pupil has typed half an essay and has not saved it. The power fails. What do you expect has happened to the unsaved essay? Why?
    • Check your understanding: Which statement about RAM is correct?
  4. 3. The card on the desk lid: ROM Think 8 min

    Purpose: Pupils work out that a computer’s first instructions must survive a power cut, so ROM is met as the card stuck to the lid.

    Ask

    • RAM is empty at switch-on, so where could the very first instructions be?
    • What does ROM hold?
    • What is the difference between ROM and secondary storage?

    Responses to expect

    • In memory that keeps its contents without power
    • The start-up instructions, put there when the computer is made
    • ROM is primary storage the CPU reads directly and holds only a small amount; secondary storage is larger

    Misconceptions to challenge

    • A learner may believe: “ROM holds the programs and files the user is working on.” Respond: That is RAM’s job. ROM’s contents stay fixed.
    • A learner may believe: “ROM is used to extend RAM when RAM is full.” Respond: ROM cannot be changed in normal use, so it cannot hold things when RAM is full.
    • A learner may believe: “ROM and secondary storage are the same because both keep their contents.” Respond: Use the misconception callout: ROM is small, fixed and directly reached by the CPU.

    On the board or with the pen

    • Add the lid card labelled ROM to the drawing with a note: fixed, small, start-up.

    What learners should notice

    • Non-volatile means keeps contents without power.
    • ROM is read only in normal use.

    Checking understanding: The rom-job check; ask pupils to say which memory each wrong option really describes.

    Depending on the answers

    • If pupils choose the ‘programs the user is working on’ option: ask which memory is cleared every evening and which has a fixed card.

    English as an additional language

    • Check permanent, fixed and start-up with the lid card picture.

    In the lesson window

    • Think it through: When a computer is switched on, RAM is empty, because it loses its contents when the power is off. Yet the CPU starts working straight away. Where could its very first instructions come from?
    • Check your understanding: What is ROM used for in a computer?
  5. 4. Why a computer needs both Discover 9 min

    Purpose: Pupils imagine a computer with only ROM and one with only RAM, so that the need for both is argued, and then apply it to a design without ROM.

    Ask

    • What would be the problem with a computer that has only ROM?
    • What would be the problem with one that has only RAM?
    • Is each description in the table true of RAM or ROM?

    Responses to expect

    • It could not hold anything that changes
    • It would lose its start-up instructions and have nothing to begin with
    • Volatile and read/write: RAM; start-up and fixed: ROM

    Misconceptions to challenge

    • A learner may believe: “Without ROM, programs could no longer be changed because RAM cannot be written to.” Respond: RAM is the writable memory. Ask which memory keeps its contents when the power is off.
    • A learner may believe: “Without ROM the CPU could not reach memory directly.” Respond: The CPU reaches RAM directly. Ask what is missing at the moment of switch-on.
    • A learner may believe: “Without ROM the computer would use more power.” Respond: Power use is not the point. Ask what the CPU would find in memory when first switched on.

    On the board or with the pen

    • Draw a two-column RAM and ROM table with volatile, read/write, holds, and fill it in as pupils answer.

    What learners should notice

    • Each type of memory fills a gap the other cannot.
    • The CPU needs something fixed to begin from.

    Checking understanding: The ram-or-rom table, then no-rom; ask pupils to explain why ‘RAM starts empty’ is the key fact.

    Depending on the answers

    • If pupils choose a power-use option: return to switch-on and ask what the CPU does first and where it finds it.
    • If answers are secure: ask what a designer could do if ROM had to be updated.

    Support

    • Provide the six descriptions as cards to sort into RAM and ROM before typing.

    English as an additional language

    • Check switch-on, fixed and change with the desk and lid card.

    Discussion pause: Pairs decide the only-ROM and only-RAM problems before anyone answers.

    In the lesson window

    • Think it through: Imagine one computer built with only ROM, and another with only RAM. What would be the problem with each?
    • Apply it: A designer builds a computer with RAM and no ROM at all. What is the most likely problem?
  6. 5. When the desk is full Predict 9 min

    Purpose: Pupils work out what to do with a fifth book on a four-book desk, so that virtual memory and paging are met as moving unneeded pages to the locker at the cost of time.

    Ask

    • What could the pupil do so that all five books can be used?
    • What is the cost?
    • What gets moved between RAM and virtual memory?

    Responses to expect

    • Move a book not needed now to the locker and fetch it when needed
    • Time, because the locker is slower
    • Pages not needed at that moment

    Misconceptions to challenge

    • A learner may believe: “Virtual memory is a very fast chip inside the CPU.” Respond: A small, fast memory inside the CPU is the cache. Virtual memory physically lives on secondary storage.
    • A learner may believe: “Virtual memory is a copy of ROM.” Respond: It is not; ask what it helps with when RAM is full.
    • A learner may believe: “Whole programs are moved as one piece, or the registers are copied to the drive.” Respond: The operating system moves smaller, equal-sized pages; registers are inside the CPU and not part of RAM.

    On the board or with the pen

    • Draw four boxes for RAM pages and one outside labelled virtual memory; move a page in and out with arrows.

    What learners should notice

    • Space on the drive stands in for extra RAM.
    • The cost of using it is time.

    Checking understanding: The what-is-virtual and what-moves checks; ask pupils to say what moves and where.

    Depending on the answers

    • If pupils choose the registers option: ask whether registers are in RAM and what RAM holds that could be moved.
    • If answers are secure: ask which page the operating system should move out first and why.

    Stretch

    • What could go wrong if the operating system moves out a page that is needed a moment later?

    English as an additional language

    • Check page, swap and extension; act out the books with real cards.

    Discussion pause: Pupils decide what to do with the fifth book before the StepThrough.

    In the lesson window

    • Think it through: What could the pupil do, so that all five books can be used? What is the cost of doing it?
    • Check your understanding: What is virtual memory?
    • Check your understanding: What is moved between RAM and virtual memory?
  7. 6. A laptop that slows to a crawl Apply 9 min

    Purpose: Pupils diagnose a slow laptop and challenge Dev’s claim, so that virtual memory is applied as a slower extension of size, not extra speed.

    Ask

    • A laptop with little RAM slows and its drive light flashes: what is the cause?
    • Which change would reduce the slowdown?
    • What is wrong with ‘virtual memory is just extra RAM and works as fast’?

    Responses to expect

    • RAM is full so pages are swapped to and from the drive, which is much slower
    • Adding more RAM, so fewer pages are moved
    • It is part of secondary storage, which is much slower

    Misconceptions to challenge

    • A learner may believe: “The ROM is full of the open programs.” Respond: ROM does not hold open programs. Ask where programs in use live.
    • A learner may believe: “The operating system has deleted the unused programs.” Respond: Pages moved out are kept and brought back; nothing is deleted.
    • A learner may believe: “Switching virtual memory off would help, or opening more programs would use the drive less.” Respond: Without it a full RAM could not cope at all, and more programs means more swapping.
    • A learner may believe: “Virtual memory is made of RAM chips or is faster than RAM.” Respond: It is part of the drive and is slower; it gives size, not speed.

    On the board or with the pen

    • Write a cause and effect chain: many programs, RAM full, pages swapped, drive light flashes, slow.

    What learners should notice

    • The flashing drive light is the evidence for swapping.
    • More RAM means fewer pages to move.

    Checking understanding: Show-me answers on all three questions before reveals; ask pupils to defend a wrong option as Dev would.

    Depending on the answers

    • If pupils choose ‘nothing is wrong’ for Dev: ask where virtual memory physically sits and how fast that is compared with RAM.
    • If answers are secure: ask why the laptop speeds up more by adding RAM than by raising the clock speed.

    Support

    • Give the cause and effect chain as cards to be ordered.

    English as an additional language

    • Check slow, flash and swap; use the drive light as a visual cue.

    In the lesson window

    • Apply it: A laptop has only a little RAM. After many programs are opened, its drive light flashes constantly and everything slows down. What is the most likely cause?
    • Apply it: Which change is most likely to reduce the slowdown on that laptop?
    • Apply it: Dev says: “Virtual memory is just extra RAM, so it works just as fast as RAM.” What is wrong with this?
  8. 7. Show what you know Consolidate 10 min

    Purpose: Pupils explain to a younger pupil, using the desk and locker, why both RAM and ROM are needed and what happens when RAM is full, which tests whether the model carries over to the technical ideas.

    Ask

    • Explain to a younger pupil why a computer needs both RAM and ROM, and what it does when RAM is full.
    • Which statement about primary and secondary storage is correct?

    Responses to expect

    • RAM is the desk (working, cleared); ROM is the lid card (start-up, stays); when RAM is full pages go to virtual memory, more slowly
    • The CPU accesses primary storage directly and programs are copied from secondary storage into RAM

    Misconceptions to challenge

    • A learner may believe: “The CPU reads programs straight from secondary storage as they run.” Respond: The CPU does not reach secondary storage directly; programs are copied into RAM first.
    • A learner may believe: “Primary storage keeps its contents permanently and secondary loses them.” Respond: That is the wrong way round for RAM and for drives; ask which memory is volatile.

    On the board or with the pen

    • Collect the class’s explanation in three lines: RAM, ROM, full RAM, each in desk-and-locker words.

    Checking understanding: Collect explanations; look for volatile versus kept, the start-up job and the speed cost of virtual memory.

    Depending on the answers

    • If explanations omit what happens when RAM is full: ask what the pupil does with the fifth book and what it costs.
    • If answers are strong: ask pupils to explain why a computer needs secondary storage as well.

    Support

    • Offer a frame: RAM is like ___ because ___. ROM is like ___ because ___.

    English as an additional language

    • Allow a labelled drawing with one sentence for each part.

    Discussion pause: Two minutes of silent writing before pairs compare.

    In the lesson window

    • Think it through: Explain to a younger pupil, using the desk and the locker, why a computer needs both RAM and ROM, and what it does when RAM is full.
    • Check your understanding: Which statement about primary and secondary storage is correct?
  9. Lesson recap Closing

    On screen: the lesson’s objectives again; Next adds the closing question, which asks the class to explain each one in their own words without looking back. It says nothing about what anyone has learnt: use the answers to decide what to revisit.

    Points to listen for

    • Ask pupils to say aloud one fact each for RAM, ROM and virtual memory, using the desk, lid card and locker.
    • Take one mistaken option (virtual memory is faster than RAM) and ask pupils to explain what is true.
    • Look ahead: the next lesson looks at secondary storage, so ask pupils to name where their own files are kept when the power is off.
    • Ask pupils to write what happens, step by step, when a program is opened, using the words secondary storage, RAM and CPU.

Consolidation

  • Ask pupils to say aloud one fact each for RAM, ROM and virtual memory, using the desk, lid card and locker.
  • Take one mistaken option (virtual memory is faster than RAM) and ask pupils to explain what is true.
  • Look ahead: the next lesson looks at secondary storage, so ask pupils to name where their own files are kept when the power is off.
  • Ask pupils to write what happens, step by step, when a program is opened, using the words secondary storage, RAM and CPU.