OpenVZ Forum


Home » General » Support » CPUUNITS - DUAL CPU QUAD CORE
CPUUNITS - DUAL CPU QUAD CORE [message #23930] Thu, 29 November 2007 02:30 Go to next message
CleberDantas is currently offline  CleberDantas
Messages: 56
Registered: May 2006
Member
Hello all.

If i have 8 CPUs (2Ghz earch). Via vzcpucheck -v i see earch VM have 1000 units.

Current CPU utilization: 24000
Power of the node: 819549

My VMs is using ONLY 24.000 units?

In virtuozzo manual i see earch 50.000 is 1Ghz of CPU. Is correct?

My old server is SINGLE CPU QUAD CORE 1.6Ghz and load is 2 or 3 ; My new hardware is DUAL CPU QUAD CORE 2Ghz and load is 2, i no have performance with new hardware.

What sugestion?

I am brazil and no talk english perfect =)
Re: CPUUNITS - DUAL CPU QUAD CORE [message #23943 is a reply to message #23930] Thu, 29 November 2007 04:29 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
check in your /etc/vz/$VEID.conf for CPUUNIT

You have the control there. This is the minimum CPU allowed per VE. I think it can use all the CPU it wants if it is not requested by another VE.

BTW, the load isn't only something about CPU, it is also about I/O. You may have the best CPU of the world, but if you're running a very busy database server, you're likely to hit I/O limit than CPU.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: CPUUNITS - DUAL CPU QUAD CORE [message #23944 is a reply to message #23930] Thu, 29 November 2007 04:31 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
BTW, if you don't see a performance gain, it may be for different reason:

1- Your applications don't ask that much.
2- Your are bound somewhere else than CPU.

what is the output of vmstat -n 5 5 ?



Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: CPUUNITS - DUAL CPU QUAD CORE [message #23945 is a reply to message #23944] Thu, 29 November 2007 04:47 Go to previous messageGo to next message
CleberDantas is currently offline  CleberDantas
Messages: 56
Registered: May 2006
Member
[root@cluster01 ~]# w
 22:47:52 up 11 days,  2:09,  1 user,  load average: 1.29, 0.78, 0.63
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    200.222.130.188  22:44    0.00s  0.02s  0.02s w
[root@cluster01 ~]# vmstat -n 5 5
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  0    592  41708 234256 3443964    0    0    18   141    5     4  5  2 87  6
 0  0    592  41708 234256 3443964    0    0     0   535 2285  2423  4  1 93  2
 0  0    592  41644 234256 3443964    0    0     7   292 2253  2677  4  1 94  2
 0  0    592  41652 234260 3443960    0    0     0   424 2280  2532  4  1 94  2
 0  0    592  41588 234260 3443960    0    0     0   277 2364  2653  4  1 94  1
[root@cluster01 ~]#

[Updated on: Thu, 29 November 2007 04:49]

Report message to a moderator

Re: CPUUNITS - DUAL CPU QUAD CORE [message #23947 is a reply to message #23945] Thu, 29 November 2007 05:34 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
Everything seems to be going smoothly. Load average below 2... that means that 6 processors have nothing to do most of the time.

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: CPUUNITS - DUAL CPU QUAD CORE [message #23954 is a reply to message #23930] Thu, 29 November 2007 09:16 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi

just a small addition:
CleberDantas wrote on Thu, 29 November 2007 05:30

Via vzcpucheck -v i see earch VM have 1000 units.

Current CPU utilization: 24000
Power of the node: 819549

My VMs is using ONLY 24.000 units?

Look, these settings (CPUUNITS) are the guarantied cpu power, provided to the VE. But if there are some free cpuunits (as in your case - you have 819549, while set up guaranties only for 24000), then these free units are distributed between all VEs in proportion of their CPUUNITS settings.
So in any case all node's power will be utilized if needed.

--
Konstantin.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: problems with ubuntu and arch
Next Topic: probelm
Goto Forum:
  


Current Time: Sat Mar 02 12:34:00 GMT 2024

Total time taken to generate the page: 0.03355 seconds