← Lab Notes
July 2, 2026 homelabhardwareramcpugpudpu

Hardware Fundamentals for Homelabbers: RAM Types, CPU vs GPU vs DPU, and Unified Memory

Learn the basics of hardware selection for your homelab, focusing on RAM types, CPUs, GPUs, DPUs, and unified memory.


Overview

In this lab note, I'll cover some fundamental aspects of hardware that are crucial when speccing out a home lab or AI box. We’ll dive into RAM types (DDR4 vs DDR5), CPUs versus GPUs and DPUs, and the concept of unified memory. By understanding these components better, you can make more informed decisions about your setup.

Background

When building a homelab or an AI box, choosing the right hardware is key to achieving optimal performance. This note aims to provide insights into selecting RAM types, CPUs, GPUs, DPUs, and unified memory, helping you make better choices for your specific needs.

How It Works

RAM: DDR Generations and Types

RAM is a critical component in any system, especially when running multiple containers or virtual machines (VMs). Here’s what you need to know about the different types of RAM:

DDR4 vs DDR5

  • DDR4: This is what most affordable homelab gear runs. It operates at speeds ranging from 2133 MT/s to 3200 MT/s.
  • DDR5: Offers higher bandwidth, with speeds starting around 4800 MT/s and going up. However, it comes with a cost premium.

For server duty, the honest advice is that capacity trumps speed for almost everything we do: more RAM means you can run more containers, VMs, or have a bigger ZFS ARC cache.

Real ECC vs Registered/Buffered RAM

  • Real ECC: Detects and corrects single bit flips. Essential for long uptime boxes and especially important with ZFS storage.
  • RDIMM vs UDIMM: Server boards usually require RDIMMs due to their nature, though they can be expensive in large sticks.

Form Factors

  • DIMM (Desktop/Server): Common on desktops and servers.
  • SO-DIMM (Laptops/Mini PCs/Many NUCs): Used in laptops, mini PCs, and many NUCs. Mini PCs often pay a density penalty for using SO-DIMMs.

Channels

  • Populating pairs of channels is crucial. A single channel on a mini PC can halve memory bandwidth, which directly impacts tasks like large language model (LLM) inference.

CPU: General Purpose vs Specialized

CPUs are designed to handle general-purpose tasks efficiently. Here’s what you need to consider:

Game Servers

  • Core Count and Single Core Clock: For game servers, having a few dozen cores with big caches and branch prediction is essential. High single core clocks are particularly important because the main simulation loop is often single-threaded.
  • Boost Clocks: The AMP host cares more about boost clocks than core count.

GPU: Graphics vs Inference

GPUs excel at handling thousands of simple cores performing the same operation on different data (SIMT). Here’s what you need to know:

LLM Inference and Transcoding

  • VRAM Capacity and Bandwidth: The bottleneck for large language models is usually VRAM capacity and memory bandwidth. A 7B model quantized to ~4-5GB needs to stream every weight per token.
  • Performance Example: Our Qwen2.5:7B runs on the CPU and takes minutes for a blog draft; the same model on an 8-12GB GPU is 10-30x faster due to GDDR bandwidth.

DPU (Data Processing Unit)

DPUs are smart NICs with their own ARM cores and accelerators that offload networking, storage, and crypto from the host CPU. Here’s what you need to know:

Hyperscale Cloud vs Homelab

  • Hyperscale Cloud: The entire virtualization network stack runs on the DPU, making 100% of host cores rentable.
  • Homelab Take: You don’t need one; they are power-hungry and have enterprise-oriented driver support. However, knowing about them is important because cloud networking increasingly assumes their presence.

Unified Memory

Unified memory allows CPU and GPU to share a single physical pool of RAM. Here’s what you need to know:

Apple Silicon

  • Mac with 32GB Unified Memory: Can load models that require ~20GB of VRAM because the VRAM is system RAM, offering very high bandwidth (100s of GB/s on M series).
  • Tradeoff: It can’t be upgraded and is always on-package.

AMD APUs and Consoles

  • Integrated graphics with shared memory show a cheaper version of this concept.

Practical Speccing Rules

  • Buy RAM Capacity First: More RAM means you can run more containers, VMs, or have a bigger ZFS ARC cache.
  • ECC if the Board Allows: Essential for long uptime boxes and especially important with ZFS storage.
  • Wire Dual Channel Always: Memory bandwidth is crucial.

Game Server Box

  • Fast cores are essential.

AI Box

  • Memory bandwidth is king. Choose GPUs or unified memory, ensuring the model fits within your setup.

Everything Else

  • Used enterprise gear is often a value play. Watch idle power consumption; a rack that draws 400W idle ties into the business plan's cost baseline.

Results

By understanding these hardware fundamentals, you can make more informed decisions when speccing out your homelab or AI box. The key takeaway is that capacity and bandwidth are often more important than raw speed for many tasks.

Lessons Learned

  • RAM: Capacity > Speed for most use cases.
  • CPU: High single core clocks matter for game servers.
  • GPU: VRAM and memory bandwidth are critical for LLM inference.
  • DPU: Not necessary in a homelab, but important to know about.
  • Unified Memory: Apple Silicon is the standout example.

This note should help you make better-informed decisions when building your next homelab or AI box.

Was this useful?