Server resources

czdavid

Member
May 17, 2012
31
0
6
Hello,

my server has 8 GB RAM and 8 cores. Can I have OpenVZ containers with these resources?

VM1 = 5 GB RAM, 6 cores
VM2 = 2 GB RAM, 1 core
VM3 = 1 GB RAM. 1 core
VM4 = 1 GB RAM, 1 core

RAM = 9 GB RAM, 9 cores

Can server crash or something?

Thank you.

David
 
As long as not all Servers run on full load you won't have problems here.

Even when the worst case happens and every Container goes full rampage on the same time and uses every resource he has (or at least tries to use it), your server won't crash but everything will go slow as hell, or even be almost unresponsive.

So you can have this Containers without system crashes for sure, but whether you should is affected by what the Container are expected to do.

this post has some additional infos:
http://forum.proxmox.com/threads/11...can-run-on-a-4-cores-server?p=62859#post62859
 
The threads conclusion about RAM and KVM does not hold anymore due to the balloon driver in recent KVM. The balloon driver ensures that unused memory in every VM is returned to the shared pool of memory.
 
I think Udo means: this current thread is about having only Openvz, so KSM is not involved here.
to the OP: int the suggested thread I read "you should leave a couple of GB free for the host system. With OpenVZ, it can be much more."

so if your CTs (openvz) concurrently use even less than the maximum allowed ram amount, you'll run into troubles.
Maybe if you use VMs (kvm), insetead of CTs, (openvz) and using the same base OS, KSM will allow you to save some ram just start them with some delay... KSM needs some time to figure out which ram pages to share...

Marco
 
]2. KVM virtual machines use up all allocated memory when they start, while OpenVZ guests run in the same memory space, so again easily 2-5x as many can run on the same hardware. KSM may help a bit when you have similar KVM machines, but you can't really overprovision with KVM. On your 24GB machine you can run 5x 4GB KVM VM's, because you should leave a couple of GB free for the host system. With OpenVZ, it can be much more.

With "With OpenVZ, it can be much more." he means that you can run much more than 5x 4GB VM's like in KVM not that OpenVZ needs more additional memory for teh host, thats the way I would understand it.
But the point that it's much better if you don't overbook your host machine and leave a bit additional resources to it, is a valid one.
 
mmm yes, reading again, that part could be more as you say.
But the point is openvz will not get any memory sharing help as kvm does, and the hyervisor needs memory of its own so, tak ealso that into account

Marco
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!