[Users] vzctl --cpuunits max?

Rene C. openvz at dokbua.com
Fri Jun 13 19:05:07 PDT 2014


Now you mention it, I think I remember reading about that before. The
cpuunits is really just a matter of percentages, isn't it?   If I
understand right you could just as well start with a value of 100 for
a server and then in this case assign 67 (as 2/3) to this VE, and re
remaining 33 to remaining VE's. That would accomplish the same as
setting this VE to ~1390000 (2/3 of ~2085000) and use the remaining
~694000 for remaining VE's -- right?

On Sat, Jun 14, 2014 at 7:23 AM, Kir Kolyshkin <kir at openvz.org> wrote:
> 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.
>
> On Jun 13, 2014 9:27 AM, "Rene C." <openvz at dokbua.com> wrote:
>>
>> I have a server with 12 cores and vzcpucheck reports following "power
>> of the node":
>> [root at server16 ~]# vzcpucheck
>> Current CPU utilization: 646833
>> Power of the node: 2085210
>>
>> Essentially I want to allow one container 2/3 of the power of this
>> hardware node but if I set the value of --cpuunits to more than 500000
>> it throws the error
>>
>> [root at server16 ~]# vzctl set 1602 --save --cpus 8 --cpulimit 800
>> --cpuunits 500001
>> Bad parameter for --cpuunits: 500001
>>
>> Setting it to 500000 works fine:
>>
>> [root at server16 ~]# vzctl set 1602 --save --cpus 8 --cpulimit 800
>> --cpuunits 500000
>> Setting CPU limit: 800
>> Setting CPU units: 500000
>> Setting CPUs: 8
>> CT configuration saved to /etc/vz/conf/1602.conf
>>
>> What am I misunderstanding here?
>> _______________________________________________
>> Users mailing list
>> Users at openvz.org
>> https://lists.openvz.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
>


More information about the Users mailing list