OpenVZ Forum


Home » General » Support » *SOLVED* Cpulimit
*SOLVED* Cpulimit [message #6907] Wed, 27 September 2006 10:37 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Hello,
I've one vps limited to 14% but seems it's using a lot more resources:

[root@host0 ~]# vzlist 135 -o laverage,cpuunits,cpulimit
LAVERAGE CPUUNI CPULIM
32.08/58.30/30.04 17857 14


Is it a bug or my mistake?

Thanks in advance,


http://static.openvz.org/userbars/openvz-user.png

[Updated on: Wed, 04 October 2006 06:19] by Moderator

Report message to a moderator

Re: Cpulimit [message #6911 is a reply to message #6907] Wed, 27 September 2006 11:32 Go to previous messageGo to next message
HaroldB is currently offline  HaroldB
Messages: 61
Registered: June 2006
Member
What value makes you think the cpu usage is more than 14% of the HN's power?

Re: Cpulimit [message #7032 is a reply to message #6907] Sun, 01 October 2006 10:16 Go to previous messageGo to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
The host node loads are about 32% with all other vps at 0% load

http://static.openvz.org/userbars/openvz-user.png
Re: Cpulimit [message #7033 is a reply to message #6907] Sun, 01 October 2006 10:19 Go to previous messageGo to next message
HaroldB is currently offline  HaroldB
Messages: 61
Registered: June 2006
Member
disregard the load value in this case. its not a metric that can be converted to cpu usage. load is basically the number of processes which are waiting for cpu time. instead you should look at /proc/vz/vestat to see cpu usage / cpu time per ve (check other threads for info here).

Re: Cpulimit [message #7035 is a reply to message #6907] Sun, 01 October 2006 15:35 Go to previous messageGo to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
It's working, tks Smile
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
26709 root      25   0  1936  960  284 R 10.6  0.0   0:07.00 cpuburn-in
26708 root      25   0  1936  960  284 R 10.2  0.0   0:07.04 cpuburn-in


But since i've limited it to 19% (392Mhz) shouldn't i get something like:
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 4
cpu MHz : 532

Instead of
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 4
cpu MHz : 2815.033

Regards,


http://static.openvz.org/userbars/openvz-user.png

[Updated on: Sun, 01 October 2006 15:50]

Report message to a moderator

Re: Cpulimit [message #7100 is a reply to message #7035] Wed, 04 October 2006 06:18 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
No you shouldn't! Smile
/proc/cpuinfo shows only information about real hardware processor(s). Its power is devided between VPSs in accordance with your settings.
Previous Topic: IPtraf
Next Topic: *SOLVED* Problem with 026test018.1 vps runs into failcnt
Goto Forum:
  


Current Time: Tue Nov 19 11:25:14 GMT 2024

Total time taken to generate the page: 0.03219 seconds