OpenVZ Forum


Home » General » Support » CPUUNITS over 500000 not possible ? vzcpucheck problem ?
icon8.gif  CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28790] Fri, 28 March 2008 11:47 Go to next message
bast is currently offline  bast
Messages: 4
Registered: March 2008
Junior Member
Hi,
When I want to set cpuunits over 500000, I have an error. More over, vzcpucheck returns an error when cpuuints is two hight.

What is the problem ?

# vzctl set 183012 --cpuunits 500000 --save
Setting CPU units: 500000
Saved parameters for VE 183012


# vzcpucheck
ERROR: VE0 CPU units not set, or set too high!
Probably you have not started /etc/init.d/vz


# vzctl set 183012 --cpuunits 500001 --save
Bad parameter for --cpuunits: 500001

# vzcpucheck
ERROR: VE0 CPU units not set, or set too high!
Probably you have not started /etc/init.d/vz


# vzctl set 183012 --cpuunits 200000 --save
Setting CPU units: 200000
Saved parameters for VE 183012


# vzcpucheck
Current CPU utilization: 300000
Power of the node: 1064080


My VE0 CPU units : VE0CPUUNITS=50000

My configuration :
- DELL PowerEdge 2950 (bi intel quad core)
- Debian Etch 64 bits
- Kernel 2.6.18-fza-028stab053.5-amd64 #1 SMP Sat Mar 1 19:50:43 UTC 2008 x86_64 GNU/Linux (kernel from openvz)
- vzctl 3.0.22-1dso1
- vzdump 1.0-2
- vzprocps 2.0.11-1dso2
- vzquota 3.0.11-1dso1
Re: CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28794 is a reply to message #28790] Fri, 28 March 2008 14:12 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

It's a little bit misleading message. You'd better understand it like "Warning: hardware node is overcommitted". 500000 is too big value. Please decrease it!
Have you read "Managing CPU share" chapter from OpenVZ user's guide (p. 53)
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Re: CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28795 is a reply to message #28794] Fri, 28 March 2008 14:28 Go to previous messageGo to next message
bast is currently offline  bast
Messages: 4
Registered: March 2008
Junior Member
Hi, Maratrus,
Thanks for your quikly response.
I have read the documentation of OpenVZ, and of course CPU sharing.
But the Power of the node is 1064080 and when I want to put cpuunits at 500000, this is under 1064080 !
Re: CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28803 is a reply to message #28795] Fri, 28 March 2008 15:25 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

It's incorrect work of vzcpucheck/vzctl utilities.
You may fill the bug.
http://bugzilla.openvz.org/
But let me explain the situation and suggest you the workaround:

a) 500000 - is the maximal value of cpuunits you can use. That's why you cannot set 500001 cpuunits:
Quote:

Bad parameter for --cpuunits: 500001

b) But cpuunits are relative values. So if you have only one VE instead of VE0CPUUNITS=50000 and YOUR_VE_CPUUNITS=500000 you can set VE0CPUUNITS=5000 and YOUR_VE_CPUUNITS=50000 because 50000/500000=5000/50000.

But, be sure that you've set sufficient value of cpuunits for your HN.

P.S. How many CPUs have you got?
Re: CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28806 is a reply to message #28803] Fri, 28 March 2008 16:15 Go to previous messageGo to next message
bast is currently offline  bast
Messages: 4
Registered: March 2008
Junior Member
I have 2 cpus with 4 cores per cpu : 8 cpus.
I will have more than one VE (one big VE, the others will be little), but CPUUNITS=500000 will be enough.
I will open a bug for vzcpucheck and for this "mysterious" limit of 500000.
Thans a lot.
Re: CPUUNITS over 500000 not possible ? vzcpucheck problem ? [message #28808 is a reply to message #28806] Fri, 28 March 2008 16:30 Go to previous message
bast is currently offline  bast
Messages: 4
Registered: March 2008
Junior Member
See open bug : http://bugzilla.openvz.org/show_bug.cgi?id=861
Previous Topic: *SOLVED* NIC Bonding/Grouping
Next Topic: ls: reading directory .: Input/output error
Goto Forum:
  


Current Time: Sun Aug 31 06:41:27 GMT 2025

Total time taken to generate the page: 0.07332 seconds