Buying RAM

How much RAM for a Proxmox or home lab server?

For a typical Proxmox home lab running a few containers, a Home Assistant VM and a Linux VM or two, 32GB of RAM is the comfortable target. 16GB works if you mostly run containers and skip ZFS, while 64GB makes sense once you add Windows VMs, lots of guests or a big ZFS pool. Work it out by adding up the host, each guest, ZFS and some spare room.

How do I add it up?

Use this rough formula:

  1. 2GB for Proxmox itself. Proxmox's own system requirements recommend at least 2GB for the operating system and its services, plus whatever you give your guests. ComputingForGeeks measured the host using about 2GB in practice.
  2. The memory you assign to each VM and container.
  3. About 1GB per TB of used storage if you use ZFS or Ceph. That's the rule in Proxmox's requirements page.
  4. About 10 to 15% spare, which ComputingForGeeks suggests leaving free for backups, migrations and spikes.

Here's a worked example for a common setup:

What RAM
Proxmox host 2GB
ZFS mirror with 4TB used 4GB
Three small LXC containers (Pi-hole, a reverse proxy, a media server) 3GB
Home Assistant VM 2GB
Linux VM running Docker 4GB
Windows VM 8GB
Subtotal 23GB
15% spare about 3.5GB
Total about 26.5GB

That rounds up to a 32GB kit. Drop the Windows VM and you're at about 17GB, which still points to 32GB, or a tight 16GB if you trim elsewhere.

How much does each VM or container need?

Containers are far cheaper than VMs, because they share the host's Linux kernel instead of booting their own operating system. ComputingForGeeks measured an idle Ubuntu container with a 1GB limit using just 68MiB of the host's RAM, while an idle Ubuntu VM with 2GB assigned held on to 1,941MiB.

Its rough guide for what to assign:

Guest Typical RAM
Light LXC container (Pi-hole, a small web app) 256MB to 1GB
Idle Linux VM 1 to 2GB
Linux VM running Docker or a few services 2 to 4GB
Windows or Windows Server VM 4 to 8GB

If a service runs fine in a container, put it in one. It's the easiest way to fit more on 16GB or 32GB. Plex or Jellyfin, for example, can use more memory while transcoding, so give a media server a bit more headroom than a DNS blocker.

How much RAM does ZFS need?

Less than the internet sometimes says, but it does want some. ZFS keeps a read cache in RAM called the ARC (adaptive replacement cache). More ARC means more of your files are served from memory instead of disk, but the cache is optional: ZFS works with a small one, just slower on repeat reads.

Proxmox's guidance is about 1GB of RAM per TB of used storage. A Proxmox wiki section quoted on its forum in 2024 put it as 2GB base plus 1GB per TB, so an 8TB pool would get 10GB.

Proxmox also caps the ARC by default on new installs. Since Proxmox VE 8.1, the installer limits it to 10% of the host's RAM, up to a maximum of 16GB, according to the same wiki text and ComputingForGeeks. On a 32GB server, that's about 3.2GB for the cache, leaving the rest for your guests.

To change the cap, ComputingForGeeks describes the usual method:

  1. Put a line like options zfs zfs_arc_max=6442450944 (6GiB, in bytes) in /etc/modprobe.d/zfs.conf.
  2. Run update-initramfs -u -k all. If Proxmox boots from ZFS, this step is required or the change won't apply.
  3. Reboot, then check the new limit with grep -w c_max /proc/spl/kstat/zfs/arcstats.

One setting to avoid at home is ZFS deduplication. TrueNAS's hardware guide says to add about 5GB of RAM per TB of storage for the deduplication table. For a home lab, that RAM is far better spent on guests.

What about TrueNAS?

If you run TrueNAS instead of Proxmox, or as a VM inside it, the TrueNAS hardware guide gives its own baseline: at least 8GB for basic use with up to eight drives, plus about 1GB for each drive beyond eight. Add more for apps and VMs you run on it, and for more users.

TrueNAS also says running it virtualized isn't supported for production or critical data. If your NAS holds the only copy of your family photos, give it its own box or be very careful with disk passthrough.

Can I overcommit memory in Proxmox?

You can, a bit. Two Proxmox features help:

  • Ballooning lets the host reclaim memory a VM isn't using. It's on by default for VMs. ComputingForGeeks warns that if several ballooned VMs all want their memory back at once, they can stall.
  • KSM (kernel same-page merging) finds identical memory pages across VMs and stores them once. It works best with several VMs running the same operating system. ComputingForGeeks measured savings of 1 to 2.5GiB on one node and 10 to 12GiB on a busier one.

Treat both as a cushion, not a plan. Size your RAM so everything fits without them.

Do I need ECC RAM for a home server?

It's nice to have, not a must. ECC (error-correcting memory) catches and fixes single-bit errors, which matters more on a box that stores your only copy of important files. TrueNAS says most of its users strongly recommend ECC, while noting that many TrueNAS systems run without it. Your CPU and board have to support it, and many consumer platforms don't. Our guide on ECC vs non-ECC RAM covers which platforms do.

Whichever you use, test it before you trust it with data. TrueNAS's guide notes that RAM failures usually show up in the first three months. Run a full pass of MemTest86 before you build your pool; see how to test RAM.

What kind of RAM should I buy for a home lab?

It depends on the box:

  • Mini PCs usually take two SO-DIMM laptop sticks, and some support up to 96GB or 128GB. Check the maker's spec page, and avoid models with soldered memory if you want to grow later. Our mini PC RAM guide explains the options.
  • Desktop-class servers take normal DIMMs. With DDR5, two 48GB sticks give you 96GB without the slowdown of four sticks; see 48GB and 96GB kits.
  • Used enterprise servers take registered memory (RDIMM), which won't work in a desktop board. Those servers can hold a lot of RAM, but they're loud and use more power.

With memory still expensive, start with what your formula says and leave slots free so you can add more later.

The short version

  • Add 2GB for Proxmox, the RAM for every guest, about 1GB per TB of ZFS storage, and 10 to 15% spare.
  • 16GB is fine for containers and light use; 32GB suits most home labs; 64GB if you run Windows VMs or many guests.
  • Prefer LXC containers to VMs where you can; they use far less memory.
  • Proxmox caps the ZFS cache at 10% of RAM (16GB maximum) on new installs, and you can change it in /etc/modprobe.d/zfs.conf.
  • Leave ZFS deduplication off, and test new RAM before trusting it with your data.

Sources