What three mini PCs can actually run
I run a home lab on three mini PCs. What they handle comfortably, where they run out, and the things a small machine does not give you however much memory you put in it.
Three mini PCs will run more than most people expect, and the limit you reach first is memory. The things they cannot give you at any price are redundancy and remote hands. I know because my lab at home is three of them, and I went through all three machines earlier this month and wrote down what each one has and what it runs.
What I have
The machines are laptop-class hardware in small boxes. None was bought as a server.
The first has a 12-core, 24-thread processor and 64 GB of memory. It does one job, which is serving local language models, and the model server runs directly on Linux with no virtualization in between.
The second has 8 cores, 16 threads and 64 GB, of which the operating system sees about 58. It has two 1 TB NVMe drives. It runs an open-source hypervisor and carries most of what I depend on day to day.
The third is the oldest. It has 8 cores, 16 threads and about 19 GB of memory, and it runs the same hypervisor.
They sit on an ordinary home network, with a mesh VPN for getting in from outside.
What runs comfortably
The second machine is the busy one. It hosts one virtual machine and four containers:
- a home automation system, as a VM with 6 GB
- the services behind a personal assistant I have been building (messaging, voice, scheduled jobs), in a container allocated 32 GB
- a workflow automation tool with its Postgres database, in a container with 2 GB
- a set of small tool servers that the assistant calls, in a container with 10 GB
- a Git server
That is everything I would call production at home, on one small box. Memory is the number I plan around. The four allocations in that list add up to 50 GB of the 58 the machine has to give.
The four allocations add up to 50 GB. I plan to lower the 32 GB when inference has moved to its own machine.
Notice the mix. Only one guest is a full virtual machine, and it is one because the software ships as an appliance with its own operating system. The rest are system containers. The LXC project describes these as "something in the middle between a chroot and a full fledged virtual machine," with the aim of being as close as possible to a standard Linux installation "but without the need for a separate kernel." No separate kernel means no memory set aside for a second operating system. A database and a workflow engine fit in 2 GB because the container is paying for those two programs and nothing else. On a machine with 58 GB to hand out, that saving decides how many guests fit.
The third machine, with its 19 GB, runs a few small containers: a chat bot and two internal web dashboards.
The first machine does inference only. It runs a model server with a handful of models installed, including a small general-purpose model and an embedding model. I wrote in February about what small models are good at, and this is where mine run.
The memory I did not have
Here is the detail I would pass on to anyone buying this class of machine.
When I audited the inference host this month, it had 64 GB installed and the operating system could use about 16. The firmware had reserved roughly 48 GB for the integrated graphics.
This is a setting. AMD's support documentation explains that systems with integrated graphics use what it calls Unified Memory Architecture, where "a portion of the system memory is shared with the integrated graphics," and the size of that portion is set in firmware. The operating system does not warn you about it. It just reports a smaller machine.
The reserved memory is not lost. It belongs to the graphics side, and a workload that runs on the integrated GPU can use it. Everything that runs on the CPU, the operating system included, shares the 16. That split is not the one I want, and lowering the reservation in the firmware setup is on my list.
So check usable memory on the day you install, with the operating system's own tools. Compare it with what is printed on the invoice. Do this before you plan what the machine will run.
Keep inference on its own machine
The 32 GB allocation on the assistant container is a leftover. That container used to run the models as well as the services, and I am in the middle of moving inference to the dedicated machine. I plan to lower the allocation when the move is finished.
I would make that split from the start if I were doing it again. A model server takes all the memory you give it and holds on to it, which makes it a poor neighbor on a hypervisor where five other things want the same pool. On a separate box it can use the whole machine, and the hypervisor host goes back to having headroom. The model server also wants to sit close to the hardware. On bare metal there is one operating system between it and the memory, with no passthrough to configure.
What three small machines do not give you
Failover. I argued in January that three hosts is the minimum for a cluster. Three machines of unequal size, each with its own job, are a different thing. The guests on my second machine are allocated 50 GB or more between them. If that machine dies, the third has 19 GB and the first is busy. They have nowhere to go. If you want a workload to survive the loss of a host, buy machines of the same size and leave one machine's worth of capacity empty. In a three-machine lab that means using two-thirds of what you paid for.
Backups that survive the host. The second NVMe drive in my main machine is set aside for backups of the guests on that machine. That covers a broken guest or a change I regret. It does not cover a dead machine or a fire, so a copy has to go somewhere else too.
Remote hands. Machines in this class generally have no baseboard management controller, which is the small independent computer on a server that lets you see the console and cycle the power from elsewhere. When a mini PC hangs, somebody has to walk over to it. At home that is an annoyance. At a remote site it is a truck roll.
Fast memory for large models. Integrated graphics share system memory, as the AMD note says, so there is no separate pool of fast memory for a model to live in. A large model will load if the memory is there, and then it generates at the speed that shared dual-channel memory allows. I went through that arithmetic last week.
Redundant anything. Each box has one power supply and one motherboard. A server spreads those risks inside the chassis. With mini PCs you spread them across boxes, which brings you back to the first item.
What I would tell someone starting out
Buy memory before cores. Both limits I have described on these machines are memory limits.
Buy matching machines if you want failover, and decide that before the first purchase.
Prefer containers to VMs for anything that will run as one.
Give inference its own box.
Put the backups on a different machine from the thing they back up.
One caveat. All of this describes a lab and a household. I would not run a business system this way without the redundancy and the remote management, and at work I would not suggest anyone else do so. The same reasoning does apply at small scale in an enterprise, though. A two-rack remote site or a retail back room has the same questions about memory per host, spare capacity and who drives out when a machine hangs. Whoever owns that site has to answer them.
Sources
Views are my own.