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." <ope...@dokbua.com> wrote:
> I have a server with 12 cores and vzcpucheck reports following "power > of the node": > [root@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@server16 ~]# vzctl set 1602 --save --cpus 8 --cpulimit 800 > --cpuunits 500001 > Bad parameter for --cpuunits: 500001 > > Setting it to 500000 works fine: > > [root@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@openvz.org > https://lists.openvz.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users