Overview#

Understanding computer hardware is the foundation of IT literacy. Every piece of software ultimately runs on physical components — processors, memory, storage, and interconnects. Knowing how these parts work, interact, and fail gives you a mental model for performance tuning, troubleshooting, and system design.


The Central Processing Unit (CPU)#

The CPU executes instructions. It’s the brain of the computer, but a very specific kind of brain — one that does billions of simple operations per second.

Architecture#

flowchart TB
    subgraph CPU["CPU Package"]
        subgraph Core1["Core 0"]
            ALU1["ALU"]
            FPU1["FPU"]
            L1C1["L1 Cache (64KB)"]
        end
        subgraph Core2["Core 1"]
            ALU2["ALU"]
            FPU2["FPU"]
            L1C2["L1 Cache (64KB)"]
        end
        L2["L2 Cache (per core, 256KB-1MB)"]
        L3["L3 Cache (shared, 8-64MB)"]
        MC["Memory Controller"]
        PCIE["PCIe Controller"]
    end
    MC --> RAM["System RAM"]
    PCIE --> GPU["GPU / NVMe / Devices"]

Key Concepts#

ConceptDescription
Clock speedCycles per second (GHz). Higher = more operations per second, but not the full picture
IPCInstructions Per Clock — how much work each cycle does. Architecture-dependent
CoresIndependent processing units. More cores = better parallelism
Threads (SMT/HT)Simultaneous Multithreading — one core handles two threads by utilizing idle execution units
TDPThermal Design Power (watts) — heat output under sustained load
Process nodeManufacturing size (nm). Smaller = more transistors, less power, more heat density

The Instruction Pipeline#

Modern CPUs don’t execute one instruction at a time. They use pipelining — breaking execution into stages so multiple instructions are in-flight simultaneously:

Fetch → Decode → Execute → Memory Access → Write Back
TechniquePurpose
Branch predictionGuess which path a conditional will take to avoid pipeline stalls
Out-of-order executionExecute instructions in a different order than written, when dependencies allow
Speculative executionExecute ahead of known results, discard if prediction was wrong
Register renamingAvoid false dependencies by mapping logical registers to physical ones

CPU Families#

VendorFamilyUse Case
IntelCore (i3/i5/i7/i9)Consumer desktops/laptops
IntelXeonServers, workstations (ECC RAM, more cores)
AMDRyzenConsumer desktops/laptops
AMDEPYCServers (high core counts, PCIe lanes)
AppleM-series (M1–M4)Mac — unified memory architecture, ARM-based
ARMCortex-A / NeoverseMobile, embedded, cloud (AWS Graviton)

x86 vs ARM#

Aspectx86 (Intel/AMD)ARM (Apple/Qualcomm/AWS)
Instruction setCISC (Complex)RISC (Reduced)
Power efficiencyHigher power drawExcellent perf/watt
Software ecosystemDominant in desktop/serverDominant in mobile, growing in server
Decode complexityComplex, variable-length instructionsSimpler, fixed-length instructions

Memory (RAM)#

RAM is volatile, fast storage that the CPU accesses directly. When the system loses power, RAM contents are lost.

Memory Hierarchy#

Speed and capacity are inversely related:

graph TB
    A["CPU Registers<br/>~1 cycle, bytes"] --> B["L1 Cache<br/>~4 cycles, 64KB"]
    B --> C["L2 Cache<br/>~12 cycles, 256KB-1MB"]
    C --> D["L3 Cache<br/>~40 cycles, 8-64MB"]
    D --> E["RAM (DRAM)<br/>~100 cycles, 8-128GB"]
    E --> F["SSD/NVMe<br/>~10,000 cycles, 256GB-4TB"]
    F --> G["HDD<br/>~10,000,000 cycles, 1-20TB"]

DDR Generations#

GenerationSpeed (MT/s)VoltageTypical Capacity
DDR3800–21331.5V2–8 GB/stick
DDR42133–56001.2V8–32 GB/stick
DDR54800–8400+1.1V16–64 GB/stick

Key RAM Concepts#

  • Channels — Dual-channel doubles bandwidth by using two sticks in parallel. Always install RAM in pairs for matched channels.
  • ECC (Error-Correcting Code) — Detects and corrects single-bit errors. Required for servers (Xeon/EPYC), not supported on consumer platforms.
  • CAS Latency (CL) — The delay between requesting data and receiving it, measured in clock cycles. Lower is better, but raw speed often matters more.
  • DIMM vs SO-DIMM — Desktop modules vs laptop modules (smaller form factor).

How Much RAM Do You Need?#

Use CaseMinimumRecommended
Web browsing, office8 GB16 GB
Software development16 GB32 GB
Virtual machines, containers32 GB64 GB
Video editing, 3D rendering32 GB64–128 GB
Machine learning training64 GB128+ GB

Storage#

Storage retains data without power. The two main technologies are fundamentally different:

HDD (Hard Disk Drive)#

Mechanical: spinning magnetic platters with a read/write head on an actuator arm.

CharacteristicValue
Sequential read100–250 MB/s
Random read (4K)0.5–2 MB/s
Latency5–15 ms (seek time)
EnduranceNear-unlimited writes
Best forBulk storage, backups, archives
Failure modeMechanical — vibration, wear

SSD (Solid State Drive)#

Electronic: NAND flash memory with no moving parts.

InterfaceSequential ReadRandom Read (4K)Latency
SATA SSD~550 MB/s~50 MB/s~0.1 ms
NVMe (PCIe 3.0)~3,500 MB/s~500 MB/s~0.02 ms
NVMe (PCIe 4.0)~7,000 MB/s~700 MB/s~0.02 ms
NVMe (PCIe 5.0)~12,000 MB/s~1,000 MB/s~0.02 ms

NAND Flash Types#

TypeBits/CellSpeedEnduranceCost
SLC1FastestHighestMost expensive
MLC2FastGoodModerate
TLC3ModerateModerateAffordable
QLC4SlowestLowestCheapest

Form Factors#

Form FactorInterfaceWhere Used
3.5"SATADesktop HDDs
2.5"SATALaptop HDDs/SSDs
M.2 2280SATA or NVMeModern desktops/laptops
U.2NVMeEnterprise servers
PCIe Add-in CardNVMeWorkstations, servers

Graphics Processing Unit (GPU)#

GPUs are massively parallel processors. Originally for rendering graphics, now critical for machine learning, scientific computing, and video processing.

CPU vs GPU Architecture#

AspectCPUGPU
Cores4–128 complex cores1,000–16,000+ simple cores
Optimized forLow-latency, serial tasksHigh-throughput, parallel tasks
MemorySystem RAM (shared)Dedicated VRAM (fast, private)
Good atDecision-making, branchingMatrix math, identical operations on many data points

GPU Memory (VRAM)#

TypeBandwidthUsed In
GDDR6~500 GB/sConsumer GPUs (RTX 4070, RX 7800)
GDDR6X~1,000 GB/sHigh-end consumer (RTX 4090)
HBM2e/HBM32,000–5,000 GB/sData center AI (A100, H100, MI300X)

Use Cases by Domain#

DomainGPU NeedWhy
GamingMid-to-highReal-time rendering, shaders
3D renderingHighRay tracing, path tracing
Video editingModerateEncoding/decoding acceleration
Machine learning (inference)ModerateMatrix multiplication
Machine learning (training)ExtremeMassive parallel tensor operations
Cryptocurrency miningExtremeParallel hash computation

The Motherboard#

The motherboard is the central PCB connecting all components.

Key Components#

flowchart TB
    CPU["CPU Socket"] --- Chipset
    Chipset --- RAM["RAM Slots (DIMM)"]
    Chipset --- PCIE["PCIe Slots (x16, x4, x1)"]
    Chipset --- M2["M.2 Slots (NVMe/SATA)"]
    Chipset --- SATA["SATA Ports"]
    Chipset --- USB["USB Headers"]
    Chipset --- NET["Ethernet / WiFi"]
    Chipset --- AUDIO["Audio Codec"]
    CPU --- RAM
    CPU --- PCIE

Socket Types#

SocketPlatformCPU Support
LGA 1700Intel 12th–14th GenCore i3–i9, some Xeon
LGA 1851Intel Core Ultra (Arrow Lake)Core Ultra 200 series
AM5AMD Ryzen 7000+Ryzen 5–9, Threadripper
AM4AMD Ryzen 1000–5000Mature, affordable
sTR5AMD ThreadripperHigh-end workstation
SP5AMD EPYCServer

Chipset Role#

The chipset manages communication between the CPU and lower-speed peripherals (SATA, USB, audio, extra PCIe lanes). Higher-tier chipsets provide more:

  • PCIe lanes
  • USB ports
  • Overclocking support
  • Multi-GPU support

Form Factors#

Form FactorSize (mm)Expansion SlotsUse Case
ATX305 × 2447Standard desktops
Micro-ATX244 × 2444Compact desktops
Mini-ITX170 × 1701Small form factor builds
E-ATX305 × 3307+Workstations, servers

Power Supply Unit (PSU)#

The PSU converts AC mains power to the DC voltages components need (+12V, +5V, +3.3V).

Key Specifications#

SpecMeaning
WattageTotal power output capacity
Efficiency rating80 Plus Bronze/Gold/Platinum/Titanium — less waste heat
ModularityFixed / Semi / Fully modular cable management
Rail designSingle +12V rail (simpler) vs multi-rail (protection per connector)

How Much Wattage?#

System TypeRecommended PSU
Office / basic350–450W
Mid-range gaming550–650W
High-end gaming (RTX 4080+)750–850W
Workstation (multi-GPU)1000–1600W

Rule of thumb: Add up CPU TDP + GPU TDP + 100W for the rest, then add 20–30% headroom.

ATX Power Connectors#

ConnectorPurpose
24-pin ATXMain motherboard power
8-pin (4+4) EPSCPU power
8-pin (6+2) PCIeGPU power
12VHPWR / 12V-2x6New GPU power (RTX 40/50 series)
SATA powerDrives, fans
MolexLegacy devices

Buses and Interconnects#

Buses are communication pathways between components.

PCIe (Peripheral Component Interconnect Express)#

The primary high-speed bus for GPUs, NVMe SSDs, network cards, and more.

GenerationBandwidth per Lanex16 Total
PCIe 3.0~1 GB/s~16 GB/s
PCIe 4.0~2 GB/s~32 GB/s
PCIe 5.0~4 GB/s~64 GB/s
PCIe 6.0~8 GB/s~128 GB/s

Lane widths: x1, x4, x8, x16. A device can use fewer lanes than the slot provides.

Other Interconnects#

BusSpeedUse
SATA III600 MB/sLegacy SSDs, HDDs, optical drives
USB 3.2 Gen 210 GbpsPeripherals, external storage
USB4 / Thunderbolt 440 GbpsDocks, eGPUs, high-speed peripherals
Thunderbolt 580 Gbps (120 Gbps asymmetric)Next-gen docking, displays
DisplayPort 2.180 GbpsHigh-res, high-refresh monitors
HDMI 2.148 GbpsTVs, monitors

Cooling#

Every watt of power consumed becomes heat. Without cooling, components throttle or fail.

Cooling Methods#

MethodUse CaseNoiseEffectiveness
Air (heatsink + fan)Most systemsModerateGood for <150W TDP
AIO liquid coolerHigh-performance desktopsLow–moderateExcellent for 150–300W
Custom loopEnthusiast/workstationVery lowBest, but complex and expensive
Passive (fanless)Embedded, silent PCsSilentLimited to <35W TDP

Thermal Interface Material (TIM)#

Thermal paste fills microscopic gaps between the CPU die and heatsink. Quality matters — a good paste can mean 5–10°C difference under load.

Airflow Principles#

  • Positive pressure (more intake than exhaust) — keeps dust out, preferred for most builds
  • Negative pressure (more exhaust than intake) — slightly better cooling, pulls in dust from cracks
  • Front/bottom intake, top/rear exhaust — follows natural convection (hot air rises)

Peripherals and I/O#

Input Devices#

  • Keyboard (mechanical, membrane, capacitive)
  • Mouse (optical, laser)
  • Touchscreen (capacitive, resistive)
  • Stylus/digitizer (Wacom, Apple Pencil)
  • Microphone, webcam, scanner

Output Devices#

  • Monitor (IPS, VA, OLED — resolution, refresh rate, response time)
  • Speakers / headphones
  • Printer (inkjet, laser)

Expansion Cards#

  • Dedicated GPU
  • Network card (10GbE, WiFi 6E/7)
  • Sound card
  • Capture card
  • RAID controller

Server vs Desktop vs Laptop Hardware#

AspectDesktopLaptopServer
CPUConsumer (Core/Ryzen)Mobile (lower TDP)Xeon/EPYC (many cores, ECC)
RAMDDR5 DIMM, no ECCDDR5 SO-DIMMRegistered ECC RDIMM
StorageConsumer NVMe/SATAM.2 (soldered or slotted)Enterprise NVMe, SAS
GPUConsumer discreteIntegrated or mobile discreteCompute GPUs (A100, H100)
RedundancyNoneNoneDual PSU, hot-swap drives, IPMI
Form factorATX towerSlim, portableRackmount (1U, 2U, 4U)
ManagementLocalLocalRemote (IPMI/iLO/iDRAC)

Key Takeaways#

  1. CPU performance is determined by cores × IPC × clock speed — not just GHz
  2. Memory hierarchy matters — cache misses are expensive (100x slower to reach RAM vs L1)
  3. Storage interfaces matter as much as the drive — NVMe over PCIe is ~10x faster than SATA
  4. GPUs are not just for gaming — they’re the backbone of modern AI and parallel computing
  5. Power and cooling are engineering constraints — a 450W GPU needs appropriate PSU and airflow
  6. Form factor choices cascade — pick the motherboard size first, then the case, then cooling constraints follow
  7. Server hardware prioritizes reliability and remote management over raw consumer performance