Linux – Share CPU between two KVM VPS on a dedicated server

centoskvm-virtualizationlinuxqemuvirtualization

how can I share CPU between two KVM VPS on a dedicated server?

assume that we have 8-core CPU on a dedicated server

to get maximum performance for two VPS, should I assign 8 cores to each one of them? or just assign 4 core to each VM?

Best Answer

You need to understand the needs of each VM and the threading limitations of the code you have, not every OS and application can make use of all the cores you can throw at it, very often there's zero benefit of expanding past a certain number of cores. The ideal scenario is that you allocate each VM what it needs, not less and ideally not more as that can actually slow down your system in some circumstances.