I don't use --cpulimit

safranero

Renowned Member
Jan 21, 2010
39
0
71
Spain
Hi all,

I have created a virtual machine with open vz. My problem is, when I'm setting cpulimit to the machine. Doesn't show errors, but not setting the parameter.

I read the manual open vz:

--cpulimit num[%]Limit of CPU usage for the VE, in per cent. Note if the computer has 2 CPUs, it has total of 200% CPU time. Default CPU limit is 0 (no CPU limit). --cpus num sets number of CPUs available in the VE.I have proved these examples:

vzctl set VMID --cpulimit 25 --save

and

vzctl set VMID --cpulimit 25% --save


What is the problem?? Thanks for you help
 
Hi all,

I have created a virtual machine with open vz. My problem is, when I'm setting cpulimit to the machine. Doesn't show errors, but not setting the parameter.

I read the manual open vz:

--cpulimit num[%]Limit of CPU usage for the VE, in per cent. Note if the computer has 2 CPUs, it has total of 200% CPU time. Default CPU limit is 0 (no CPU limit). --cpus num sets number of CPUs available in the VE.I have proved these examples:

vzctl set VMID --cpulimit 25 --save

and

vzctl set VMID --cpulimit 25% --save


What is the problem?? Thanks for you help

pls post the output of 'pveversion -v'
 
Hi, version of proxmox is 1.5.

The command set the cpulimit is executed correctly and returns "Setting CPU LIMIT: XX".

Which I see the cpu limit in the virtual machine?

Thanks for your response
 
Hi, version of proxmox is 1.5.

The command set the cpulimit is executed correctly and returns "Setting CPU LIMIT: XX".

Which I see the cpu limit in the virtual machine?

Thanks for your response

again, pls post the output of 'pveversion -v'
 
Sorry.

pve-manager: 1.5-5 (pve-manager/1.5/4627)
running kernel: 2.6.24-10-pve
proxmox-ve-2.6.24: 1.5-21
pve-kernel-2.6.24-10-pve: 2.6.24-21
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-7
vncterm: 0.9-2
vzctl: 3.0.23-1pve5
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
pve-qemu-kvm: 0.11.1-1
 
The vzctl-command return code 0 which means success. So why it returns 0 ? Because the changes can be written to the config but not be "interpreted" by some kernel versions.

So why is the field shown in version 2.6.24 ? The developers should answer this question. For me it isn't really bad but if someone doesn't know the background the person will be irritated.

EDIT: dietmar was a little bit faster ;)
 
Hi,

I'm using server compatible with set cpulimit...

How can I see if the changes are done? Exists some command with linux that's show the cpu limit?

Thanks!!