PROJECTENGRAM

COMPUTER HARDWARE COMPONENTS - MEMORY AND STORAGE

9.0 Computer Hardware Components - Memory and Storage

Tags: #◇Computer Science #◇CCICOMP #◇Conceptual #◇M3


◇Overview

A computer system relies on a hierarchy of memory and storage devices to balance speed, cost, and capacity. Primary memory (Internal Memory) is volatile, highly expensive, extremely fast, and interacts directly with the CPU. Secondary storage (External Memory) is non-volatile, economical, provides vast capacities, but operates at much slower speeds. Memory architecture is structured such that frequently accessed data moves closer to the CPU to optimize execution time, progressing from secondary storage into main RAM, then into caches, and finally into CPU registers.

◇Key Definitions

Primary Memory (Internal): High-speed, volatile memory accessed directly by the processor (e.g., RAM, Cache, Registers). Secondary Storage (External): Slower, non-volatile memory used for long-term data storage (e.g., HDDs, SSDs, Flash Drives). RAM (Random Access Memory): The main memory of a computer that temporarily stores data and instructions currently in use. ROM (Read-Only Memory): Non-volatile memory containing firm, unchanging system instructions (like the BIOS/UEFI). Includes PROM, EPROM, and EEPROM. Memory Access Time: The amount of time it takes the processor to read data, instructions, and information from memory.

◇Theoretical Framework

1. Types of RAM SRAM (Static RAM): Uses a complex transistor circuit (flip-flop) to store each bit. It is incredibly fast, expensive, consumes more power, and does not need to be constantly refreshed. Primarily used for CPU Registers and Cache (L1, L2, L3). DRAM (Dynamic RAM): Uses a single transistor and capacitor per bit. It is slower, highly economical, consumes less power, but must be continuously refreshed (thousands of times per second) or the data leaks away. Used for the system's Main Memory (e.g., DDR3, DDR4 SDRAM).

2. The Memory Hierarchy

When the processor requires data or instructions, it searches memory in a strictly hierarchical order designed to minimize delay:

  1. CPU Registers: Fastest, smallest capacity.
  2. L1 Cache: Built directly into the CPU core.
  3. L2 Cache: Slightly larger/slower, usually per-core.
  4. L3 Cache: Shared across all cores.
  5. Main Memory (RAM): Placed on the motherboard.
  6. Secondary Storage: If the data is not in RAM (a page fault), the system must fetch it from the hard drive or SSD, which incurs a massive latency penalty.

3. Secondary Storage Technologies

Data moves between Main Memory and Secondary Storage via read/write operations. Magnetic Storage: Hard Disk Drives (HDD) and magnetic tapes. Uses mechanical read/write heads and spinning platters. High capacity, lowest cost, but mechanically slow and prone to physical failure. Solid-State Storage: Solid-State Drives (SSD), USB Flash Drives, Memory Cards. Uses NAND flash memory with no moving parts. Significantly faster than HDDs, durable, and increasingly standard. Optical Storage: CD, DVD, Blu-Ray (BRD). Uses lasers to read/write microscopic pits on a plastic disc. Enterprise / Cloud Storage:
NAS (Network Attached Storage): Specialized file server attached to a local network.
SAN (Storage Area Network): High-performance dedicated network for block-level storage.
Cloud Storage: Internet-based storage hosted by third-party data centers, providing off-site redundancy and elasticity.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

Which characteristic best describes Primary Memory (Internal) compared to Secondary Storage?

Q2

What type of RAM uses a complex transistor circuit (flip-flop) and does not need to be constantly refreshed?

Q3

Why is DRAM typically used for a system's Main Memory rather than SRAM?

Q4

What does ROM (Read-Only Memory) typically contain?

Q5

In the memory hierarchy, which storage type is the fastest but has the smallest capacity?

Q6

What happens if the processor requires data that is not currently in RAM (a page fault)?

Q7

How does Solid-State Storage differ from Magnetic Storage?

Q8

Which secondary storage technology uses lasers to read and write microscopic pits on a plastic disc?

Q9

What is a Storage Area Network (SAN)?

Q10

Which type of cache is typically shared across all cores in a multi-core CPU?

Computer Hardware Components - Memory and Storage | PROJECT ENGRAM