PM & AI Chronicles

From Product Thinking to Prompt Engineering – One Tool at a Time

Memory: 📝The Workspace of a Computer

đź’ˇ In my earlier post, I introduced the idea of internal components and gave an overview of how they all fit together. If you missed it, you can read it here: 👉 “What’s Inside Your PC

After learning about the motherboard, it’s time to look at Memory — the workspace where your computer does all its active thinking. In this post, we’ll explore RAM, ROM, SRAM, DRAM, and Virtual Memory, and see why they are essential for performance

When we talk about memory in computers, we’re referring to the space where data and instructions are stored so the CPU can quickly access and process them. Think of memory as the computer’s short-term workspace—it’s not meant for permanent storage like a hard drive, but for holding information that the computer is actively working on.

👉 Analogy: Imagine you’re cooking. The kitchen counter (memory) is where you keep the ingredients you’re using right now, while the pantry (hard drive/SSD) stores everything else for later

Not all memory inside a computer works the same way. Some are fast but small, others are large but slower, and some are permanent while others vanish when power is off. Broadly, computer memory can be divided into:

  • RAM (Random Access Memory) – the main active memory used while programs are running.
  • ROM (Read-Only Memory) – permanent instructions stored for startup and essential functions.
  • SRAM (Static RAM) – very fast but small memory used as cache.
  • DRAM (Dynamic RAM) – the standard form of RAM found in your system.
  • Virtual Memory – extra “borrowed” space from your storage drive used when RAM is full.

Let’s look at each of them in detail.

RAM is the umbrella term for the computer’s working memory. The main memory of a computer, used to store data and instructions while programs are running.

  • Volatility: Everything in RAM disappears when the power is turned off.
  • Why it matters: More RAM = smoother multitasking and faster program execution.

👉 Think of RAM as your active workspace—the bigger it is, the more projects you can spread out at once.

Inside RAM, you’ll mainly find DRAM. SRAM is also a type of RAM, but it’s not used as the main system RAM because it’s too expensive and large. Instead, SRAM is used in cache memory, which supports the CPU by holding frequently used instructions.

👉 So, RAM ≠ just DRAM or SRAM, but in everyday usage, when people say RAM, they usually mean DRAM modules (your system’s memory sticks).

  • What it is: Static Random Access Memory (SRAM) holds data as long as the computer is powered on. It doesn’t need to be constantly refreshed.
  • Where it’s used: Mostly found in cache memory (very close to the CPU).
  • Why it matters: It’s fast, but also expensive and takes more space, so you only see small amounts of it inside a system.

👉 Analogy: Like sticky notes right beside you—quick to access, but you can’t keep many of them

  • Where it’s used: This is the main system memory (RAM) you see in your PC or laptop.
  • Why it matters: It’s cheaper and denser than SRAM, which means you can have a lot more of it, but it’s also slower.
  • What it is: Dynamic Random Access Memory (DRAM) needs to be refreshed thousands of times per second to retain data.

👉 Analogy: Like a notepad—lots of room to write, but a bit slower than sticky notes.

ROM is non-volatile memory, meaning its data stays even when power is off. Unlike RAM, it’s not meant for active program data, but for permanent instructions.

  • What it is: Stores permanent instructions that don’t change, even when the computer is powered off.
  • Purpose: Used to hold firmware, like the instructions the computer needs to start up.
  • Volatility: Non-volatile — it keeps data even without power.
  • Used in places like:
    • Firmware storage (the low-level software your computer needs to start).
    • Devices like printers, washing machines, and game consoles.

👉 Analogy: ROM is the instruction manual permanently glued into the system. Think of ROM as a cookbook with fixed recipes you always rely on to begin cooking.

One of the most important programs stored traditionally in ROM is the BIOS (Basic Input/Output System). Modern systems often use flash memory, which is similar but reprogrammable. BIOS is the first code that runs when you switch on your PC. Tasks of BIOS include:

  • Running a POST (Power-On Self-Test) to check memory and hardware.
  • Initializing devices like the keyboard, display, and storage.
  • Loading the operating system into RAM so it can take over.

👉 Without BIOS stored in ROM, your computer wouldn’t even know how to start.

When you hear the term virtual memory, it may sound complicated, but it’s really just a clever trick your computer uses when it runs out of fast memory (RAM). Imagine your computer’s RAM (Random Access Memory) as a desk where you do your work. The desk is fast and convenient, but it has limited space. If you try to spread too many books and papers on it, you’ll quickly run out of room.

This is where Virtual Memory comes in. Think of it like having an extra bookshelf nearby. When your desk (RAM) gets too crowded, you can temporarily move some books (data/programs) to the bookshelf (your hard drive/SSD). Later, when you need them again, you pull them back onto your desk

  • Programs can be bigger than RAM → Only the parts you use are kept in RAM, the rest waits on disk.
  • Run many apps at once → Virtual memory makes sure each app has its own safe, isolated space.
  • Illusion of a huge memory → The system feels like it has more memory than it physically does

Imagine you open:

  • A browser (1 GB used)
  • A music app (200 MB used)
  • A photo editor (1.5 GB used)

If your RAM is 2 GB, it can’t fit everything at once.

  • The OS divides memory into pages (small blocks).
  • Active pages (like the photo you’re editing) stay in RAM (desk).
  • Inactive pages (music app you aren’t looking at) get moved to disk (bookshelf).
  • When you click the music app again, the OS swaps its pages back into RAM.
  • If this swapping happens too often, your PC slows down (called thrashing).
  • Smartphone apps: When you switch from Instagram to WhatsApp, the phone may unload some Instagram data to storage to free up memory. When you return, it reloads—sometimes you notice a “refresh.”
  • Gaming: A game level too large for RAM loads parts (textures, sounds) into RAM, and swaps unused parts back to disk.
  • Multitasking on a laptop: Writing a document, streaming music, and editing photos—all feel smooth because unused parts quietly sit in virtual memory
  • Slower than real RAM (disk ≠ RAM speed).
  • Too much swapping causes thrashing (system freeze/lag).
  • Needs extra space on disk (swap file/partition).

👉 Analogy: In short, virtual memory is your computer’s way of pretending it has more RAM than it really does, by temporarily using your hard drive or SSD as extra space. It keeps your system running smoothly, even when RAM is full, but it will always be slower than real RAM.

The CPU and memory don’t just magically “talk” to each other — they use a memory bus, which acts like a highway for data to travel back and forth. The speed of this bus determines how quickly data can move between the CPU and RAM.

👉 Analogy: Imagine cars (data) moving between your house (CPU) and a supermarket (RAM). A wide, high-speed highway allows many cars to travel quickly, whereas a narrow, slow road often causes traffic jams.

  • Definition: The rate at which data can be transferred between the CPU and RAM.
  • Measured in: Megahertz (MHz) or Gigahertz (GHz).
  • Impact: Faster bus speed = quicker communication = better overall performance.
  • The memory bus is divided into lanes (width) and speed (frequency).
  • The width (number of bits) decides how much data can be transferred at once.
  • The frequency (MHz/GHz) decides how fast those transfers happen.

👉 Example: A 64-bit wide bus running at 1600 MHz can transfer much more data per second than a 32-bit bus at the same speed.

  • The “bit” value refers to how many bits of data can travel across the bus at once.
  • 8-bit = only 1 byte at a time (older computers, simple processors).
  • 32-bit = can handle 4 bytes at a time (common in PCs until the early 2000s).
  • 64-bit = can handle 8 bytes at a time (modern standard).

👉 Analogy: Think of it like the number of lanes on a highway:

  • 8-bit = 1-lane road
  • 32-bit = 4-lane road
  • 64-bit = 8-lane expressway

More lanes = more data moving at once.

When people talk about RAM today, you’ll often hear the term DDR (Double Data Rate). It’s a technology that makes memory faster by allowing it to move data twice in the same cycle instead of just once. ( once on the rising edge and once on the falling edge of the signal)

👉 Analogy: Imagine a delivery truck that used to make one delivery per trip. With DDR, the truck now makes two deliveries each trip — one on the way out and another on the way back. This means more data gets moved in the same amount of time.

  • Generations:
    • DDR1 (old, early 2000s)
    • DDR2 / DDR3 (faster, used in older PCs/laptops)
    • DDR4 (current standard in most systems)
    • DDR5 (latest, faster and more efficient, used in new PCs).

👉 Example: DDR4-3200 means DDR4 RAM with a data rate of 3200 MT/s (mega transfers per second).

  • A fast CPU with slow bus speeds is like a sports car stuck in a traffic jam.
  • Higher memory bus speeds mean the CPU spends less time waiting for data.
  • Modern systems often pair fast DRAM (like DDR4/DDR5) with high bus speeds to balance performance.

✅ In short: The bus width (bits) decides how much data can move at once, and DDR speed (frequency) decides how fast it moves. Together, they shape your memory’s performance.

RAM doesn’t just differ in speed or type — it also comes in different shapes and sizes depending on the device. These physical designs are called form factors

  • DIMM (Dual In-line Memory Module)
    • What it is: The standard RAM stick used in desktop computers.
    • Size: About 5.5 inches long (much bigger than laptop RAM).
    • Pins: Usually 240 pins (DDR3) or 288 pins (DDR4/DDR5).
    • Where used: PCs, workstations, and servers.

👉 Think of DIMMs as the full-sized “books” of memory modules.

  • SO-DIMM (Small Outline DIMM)
    • What it is: A smaller version of DIMM, used in laptops, mini-PCs, and compact systems.
    • Size: About 2.5 inches long, nearly half the size of a DIMM.
    • Pins: Usually 204 pins (DDR3) or 260 pins (DDR4/DDR5).
    • Where used: Laptops, small form-factor desktops, gaming consoles.

👉 Think of SO-DIMMs as the pocket-sized notebooks of memory modules.

  • Other Characteristics of RAM Modules
    • Notches: Small cuts on the module’s edge that prevent inserting the wrong RAM type into the slot.
    • Heat spreaders: Some RAM sticks (especially gaming RAM) come with metal covers to help cool them.
    • Capacity: Each stick has a set size (e.g., 8 GB, 16 GB) and can be combined with others on the motherboard.

âś… In short:

  • DIMM = Desktop RAM (big, full-sized).
  • SO-DIMM = Laptop RAM (small, compact).