VMware Training from VMTraining
Partner LoginPartner Login
   Home   Search Login Register  
February 04, 2012, 10:02:01 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New to View? Attend the NEW VMware View 4 prep course to learn the basics.
 
Pages: [1]   Go Down
  Print  
Author Topic: Virtual Processor utilization  (Read 2477 times)
Viperman
Global Moderator
Jr. Member
*****
Offline Offline

Posts: 56


« on: May 08, 2008, 03:27:52 PM »

A consulting customer asked me the question of why his virtual machine was running so slow and I explained that he needed to reduce the number of processors in the VM instead of increase it.  This is a direct quote from the customer.

"Just wanted to thank you for suggesting we change one of our screaming servers from 4 procs to 1. 
The utilization went from 95% to 6%!

Awesome!"

The reason for this is that in this case his physical machine had dual quad core processors which mean a total of 8 cores available.  The virtual machine he was using had 4 vCPU's in it.  The way that VMware ESX works is that all vCPU's must be scheduled at the same time or none of them will run. 

Since he had numerous virtual machines running on this physical box they were all contending for processor utilization from the VMkernel.  Since all 4 vCPU's had to be scheduled at the same time there was alot of waiting on the part of the VM, this could be seen by viewing the CPU Ready values of the Virtual Machine from the VIC.

By reducing the number of CPU's in the Virtual machine it could pretty much be scheduled on any core at any time.  My suggestion is usually to run a single vCPU to start and then increase the number of vCPU's as needed.  Remember that some older OS's could have a problem with a single processor HAL so you might need to upgrade the HAL so that it would allow the use of more processors.
« Last Edit: May 08, 2008, 03:34:48 PM by Shawn » Logged
pizzoja
Newbie
*
Offline Offline

Posts: 6


« Reply #1 on: June 02, 2008, 03:15:49 PM »

Do you think this would be an issue if you had only 1 virtual machine running on the sytem?  They way i understand it is that if I only had 1 virtual machine running on the system then there would be nothing else competing for the processing time with the exception of the ESX server itself.

Joel
Logged
Ekoesling
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: June 02, 2008, 04:58:56 PM »

How do you see the CPU ready values within the VIC?

Thanks
Logged
pizzoja
Newbie
*
Offline Offline

Posts: 6


« Reply #3 on: June 03, 2008, 01:45:11 PM »

i am not sure what you mean.  I have not actually built this yet.  i am still in the design phase of the project.
Logged
Viperman
Global Moderator
Jr. Member
*****
Offline Offline

Posts: 56


« Reply #4 on: June 04, 2008, 08:55:26 PM »

Do you think this would be an issue if you had only 1 virtual machine running on the sytem?  They way i understand it is that if I only had 1 virtual machine running on the system then there would be nothing else competing for the processing time with the exception of the ESX server itself.

Joel

It shouldn't be, but how many physical procs do you have?  The only thing competing for the proc would be the Service console.
Logged
Viperman
Global Moderator
Jr. Member
*****
Offline Offline

Posts: 56


« Reply #5 on: June 04, 2008, 08:57:19 PM »

How do you see the CPU ready values within the VIC?

Thanks

You need to go to the performance tab, and then change the CPU to real time monitoring and choose the CPU counter of CPU ready.  CPU ready shows you how long that a CPU must wait prior to being able to use the available physical CPUs
Logged
pizzoja
Newbie
*
Offline Offline

Posts: 6


« Reply #6 on: July 08, 2008, 05:34:13 PM »

I have 4 procs that will have 1 VM,  I know not the most effecient use of VM software to it is being done for the abillity to quickly cut over to more powerful hardware.

Thanks, for all you help. 
Logged
Viperman
Global Moderator
Jr. Member
*****
Offline Offline

Posts: 56


« Reply #7 on: July 08, 2008, 08:57:07 PM »

Even on this setup I would still start with a single VCPU.  You can always increase the VCPUs if you need to, but most of the time people don't need to.  You should have more then plenty of procs though.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

  Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC  

VMware Training, Global Locations

VMTraining is a division of Global Training Solutions, Inc.
© GLOBAL TRAINING SOLUTIONS, INC. 2007 - 2012

Contact us at (815) 313-4472 or Sales@VMTraining.net

To report technical problems,
please email webmaster@vmtraining.net