Limit CPU for openvz on proxmox 1.4

reloaded

Member
Aug 25, 2009
69
0
6
hello all,

I have a question,

as I can limit the cpu usage for VMS Proxmox openvz in 1.4?

For kvm if that is done, but not for openvz.

Thank you very much in advance.
 
Re: Limit CPU for openvz on proxmox 1.9

Hello,
Even this thread seem to be out of date, but I'd put the question here, as I'm asking about the same, but in v.1.9 of Proxmox.

In the web gui when I create an OpenVZ container, I cannot assign more then 16 cpus, I get an error message that I cannot... but in the config file I did it, after restarting the container, I see the host reading 50 CPS, but just when I open the webgui, I get the error message, and the sockets automatically are being decreased.

The question that I have asterisk container with critical telecommunications mission, and I need to assign more cpus to the server, how can I do that???

Regards,
 
Re: Limit CPU for openvz on proxmox 1.9

Just to be clear: your run a OpenVZ container? Details about your hardware? What config did you change, how?
 
Yes, I'm talking about OpenVZ.

I edit CPU fair sheduler parameters in /etc/vz/conf/XXX.conf
CPUUNITS="1000"
CPUS="16" ### I put 50

I have 2 servers, one with Intel Corei7-920 Quad-Core, and the second Intel Corei7-980 Quad-Core...

So, how can I calculate the available CPUs, in this servers, because as it's described, or as I understand, available unites: CPUUNITS="1000"... so if they are available,m why I cannot assign more then 16?

Thanks in advance,
 
if you got a corei7 quadcore you got 4 cores and if you have HT enabled, you got 8 cpu´s to assign.

so the maximum for this hardware: CPU flag is 8.