How much CPU performance for a LXC

BurningSquirrel-de

Active Member
May 25, 2021
38
4
28
Essen, Germany
Hello,

I think about a new privat HomeLab server. When it comes to the CPU performance I am unsure how scaled, in sense of the cores / threads the CPU should be.
Okay, for VM it is easy, but how should i calculate the needed performance for an LXC?

I planed a small HomeLab for one persist VM (2 virtual cores are okay), optional one more for testing systems. Then I need around 12 persist LXCs (for SDN Software, HomeAssist, BitWarden, PiHole, etc.) and i think about ressources fro 8 - 12 more LXCs.

In what range I have to think for finding the right CPU? 4 / 8 cores, 8 / 16 cores, two sockets?? How much power is needed for one LXC?

Thanks and regards
 
Thats really hard to tell and primarily depends on the software you want to run inside the LXCs as the LXCs share the kernel with the host so you get really low overhead.
For VMs you don't want to overprovision too much CPU and don't overprovision RAM at all. And in general, the more cores your got, get better PVE can hypervise the vCPU so the CPU queues up less and gets more responsive.
I personally try to don't have more then 4 vCPUs per physical CPU thread.