Nine spreads on what's inside a computer: CPU, memory, storage, motherboard, GPU, power, cooling, ports, and how to build and troubleshoot one.
"It's a 12-core CPU, 32 GB of dual-channel DDR5, a PCIe 4.0 NVMe SSD, and a 750 W gold PSU. The bottleneck is the GPU."
Commands for Linux and Windows show how to inspect your own machine. Use the tabs or the ← → keys.
| Unit | Size | Think of it as |
|---|---|---|
| bit | 0 or 1 | one switch |
| byte | 8 bits | one character |
| KB / MB / GB / TB | ×1,000 each (KiB… ×1,024) | page / song / movie / library |
| Hz / GHz | cycles per second | the clock's tick rate |
# see your machine's inventory $ lscpu ; free -h ; lsblk ; lspci ; lsusb ; sudo dmidecode -t baseboard # Linux PS> Get-ComputerInfo | Select CsProcessors,CsTotalPhysicalMemory,BiosVersion # Windows PS> Get-CimInstance Win32_Processor, Win32_BaseBoard, Win32_PhysicalMemory
"Fetch, decode, execute. Everything else is about feeding the CPU faster."
$ lscpu | grep -E 'Model name|^CPU\(s\)|Thread|Core|Socket|MHz|L[123]' $ nproc ; watch -n1 "grep MHz /proc/cpuinfo | head -4" $ sensors # temperatures (lm-sensors) PS> (Get-CimInstance Win32_Processor | Select Name,NumberOfCores,NumberOfLogicalProcessors,MaxClockSpeed)
| Workload | Cares about |
|---|---|
| gaming | single-core speed + GPU |
| video, compile, VMs | many cores, more RAM |
| office, web | almost any modern CPU |
"8 cores, 16 threads, 4.7 GHz boost, and a big L3. The workload is lightly threaded, so clocks matter most."
RAM holds what's running right now. When it fills, the OS pushes data to disk (swap / pagefile), and everything slows down. Adding RAM helps when you're running out, not otherwise.
| Spec | Meaning |
|---|---|
| DDR4 / DDR5 | generation; not interchangeable (different notch) |
| capacity | 8 GB basic · 16 GB comfortable · 32 GB+ pro work |
| speed (MT/s) | 3200–3600 (DDR4) · 4800–7200 (DDR5) |
| latency (CL) | fewer clock cycles of delay = better |
| dual channel | two matched sticks in the right slots ≈ double bandwidth |
| ECC | detects/corrects bit errors; servers and workstations |
$ free -h ; vmstat 1 5 # used, cache, swap activity (si/so) $ sudo dmidecode -t memory | grep -E 'Size|Speed|Type:|Locator' $ sudo memtester 1G 1 # basic RAM test (or run MemTest86 from USB) PS> Get-CimInstance Win32_PhysicalMemory | Select Capacity,Speed,Manufacturer
"Two 16 GB sticks in dual channel, XMP/EXPO enabled in the BIOS so it runs at rated speed."
$ lsblk -o NAME,SIZE,TYPE,MODEL,ROTA,MOUNTPOINT # ROTA 1 = spinning $ sudo smartctl -a /dev/nvme0 # health: wear %, errors, temps (smartmontools) $ sudo hdparm -t /dev/sda # quick read speed $ df -h ; sudo fio --name=t --rw=randread --bs=4k --size=1G --runtime=10 --filename=/tmp/f PS> Get-PhysicalDisk | Select FriendlyName,MediaType,Size,HealthStatus PS> Get-Disk ; Get-Volume
"NVMe for the OS and apps, an HDD mirror for bulk, SMART monitoring, and a real backup, since RAID doesn't protect against deletion."
| Compatibility check | Must match |
|---|---|
| CPU ↔ board | socket + chipset (and BIOS version) |
| RAM ↔ board | DDR generation, max speed and capacity |
| board ↔ case | form factor, standoffs |
| GPU ↔ case/PSU | length, slots, power connectors |
$ sudo dmidecode -t bios -t baseboard $ sudo lspci -vv | grep -E 'LnkCap|LnkSta' # PCIe link speed/width actually negotiated PS> Get-CimInstance Win32_BIOS | Select Manufacturer,SMBIOSBIOSVersion,ReleaseDate
"AM5 socket, B650 chipset, DDR5, one PCIe 5.0 x16 slot, and two M.2 slots, so it fits the plan."
A GPU renders images, but its parallel design also powers video editing, scientific computing and machine learning. For AI work, VRAM capacity usually decides what models you can run.
$ lspci | grep -iE 'vga|3d' $ nvidia-smi # NVIDIA: temp, power, VRAM use, processes $ nvidia-smi --query-gpu=name,memory.total,memory.used,temperature.gpu --format=csv $ glxinfo -B ; radeontop # Mesa / AMD PS> Get-CimInstance Win32_VideoController | Select Name,AdapterRAM,DriverVersion
"24 GB of VRAM matters for the model size, and I'll check the PSU has the 12 V high-power connector."
$ sudo apt install lm-sensors && sudo sensors-detect && sensors $ watch -n1 sensors $ stress-ng --cpu 0 --timeout 120s && sensors # load test, then check temps PS> powercfg /batteryreport ; powercfg /energy # laptop battery + power diagnostics
"A 750 W Gold PSU with headroom, front intake and rear exhaust, and temps hold at 70 °C under load."
$ lsusb -t # USB tree with negotiated speeds (480M / 5000M / 10000M) $ ip -br link ; ethtool eth0 | grep -E 'Speed|Duplex' $ xrandr --verbose | head -30 # monitors, modes, refresh rate $ bluetoothctl devices ; iw dev PS> Get-PnpDevice -PresentOnly | Where Status -ne OK # devices with problems PS> Get-NetAdapter | Select Name,LinkSpeed,Status
"A Gen 2 USB-C cable only gives 10 Gb/s, so I need a Thunderbolt cable for the 40 Gb/s dock."
$ sudo smartctl -H /dev/sda # drive health PASS/FAIL $ sudo journalctl -k -p err --since today # kernel hardware errors $ dmesg -T | grep -iE 'error|fail|thermal|usb|nvme' $ sudo badblocks -sv /dev/sdX # surface scan (read-only default) PS> mdsched.exe # Windows Memory Diagnostic PS> Get-WinEvent -FilterHashtable @{LogName='System';Level=1,2} -MaxEvents 20 PS> sfc /scannow ; chkdsk C: /scan
"I narrowed it down by reseating RAM, testing one stick at a time, and checking the SMART data and temperatures."