<p dir="ltr">Short answer: vzcpucheck was written a long time ago, when the trees were big and CPUs were small. Just divide the numbers it show by say 10 and you'll be fine.</p>
<div class="gmail_quote">On Jun 13, 2014 9:27 AM, "Rene C." <<a href="mailto:openvz@dokbua.com">openvz@dokbua.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a server with 12 cores and vzcpucheck reports following "power<br>
of the node":<br>
[root@server16 ~]# vzcpucheck<br>
Current CPU utilization: 646833<br>
Power of the node: 2085210<br>
<br>
Essentially I want to allow one container 2/3 of the power of this<br>
hardware node but if I set the value of --cpuunits to more than 500000<br>
it throws the error<br>
<br>
[root@server16 ~]# vzctl set 1602 --save --cpus 8 --cpulimit 800<br>
--cpuunits 500001<br>
Bad parameter for --cpuunits: 500001<br>
<br>
Setting it to 500000 works fine:<br>
<br>
[root@server16 ~]# vzctl set 1602 --save --cpus 8 --cpulimit 800<br>
--cpuunits 500000<br>
Setting CPU limit: 800<br>
Setting CPU units: 500000<br>
Setting CPUs: 8<br>
CT configuration saved to /etc/vz/conf/1602.conf<br>
<br>
What am I misunderstanding here?<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div>