VMware

This Question is Answered

1 "helpful" answer available (6 pts)
6 Replies Last post: Jan 23, 2009 12:34 AM by konradclapa  

Sampling interval posted: Jan 20, 2009 4:43 AM

Click to view konradclapa's profile Novice 7 posts since
Dec 16, 2008
Hi everyone.

I got a question.

In Virtual Center there is a performance tab, where the chart showing the CPU can be viewed.

I see that there are some statistics of the CPU utilization: Minimum, Maximum, Average.

It also shows that the refreshing interval is 20 sec. http://communities.vmware.com/message/1148571/Dibujo.JPG%7Cthumbnail=true

Does any know how many saples are taken during that 20sec? (it seems that there are more then 2 samples because the average value is not the average of max and min.

Can it be changed?

Cheers,

Konrad

Re: Sampling interval

1. Jan 20, 2009 6:08 PM in response to: konradclapa
Click to view Rob.Bohmann's profile Master 583 posts since
May 31, 2005

The metrics are collected every 20 seconds for ESX Server 3 hosts, http://www.vmware.com/pdf/vi3_monitoring_statistics_note.pdf

The default view shows the past hour of perf data, samples taken every 20 seconds. So there are 3 samples taken every minute. The samples are then averaged (I think in 5 minute chunks so 15 samples are averaged to create the view that you see by default in your client. At least that is how I understood it back in vc2,0)

Here is the doc that explains it all ad nauseum..... http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_admin_guide.pdf starts in Chapter 18 p285

You can change the time frame to day week or month, with the law of averages making the data less meaningful generally speaking, You can change the level of data colllected (amount of detail 1-4)

as well as adjust the intervals, Happy Reading

Re: Sampling interval

2. Jan 21, 2009 12:08 AM in response to: konradclapa
Click to view tom howarth's profile Guru 7,351 posts since
Jul 25, 2005
Thread move to the vCenter forum


Tom Howarth
VMware Communities User Moderator
Blog: www.planetvm.net

Re: Sampling interval

4. Jan 22, 2009 5:10 PM in response to: konradclapa
Click to view Rob.Bohmann's profile Master 583 posts since
May 31, 2005

you're welcome.

My understanding of this is the max, min, and average values are the values for the entire host over the time period show in the display, in this case over the last hour.

If you highlight the value that shows the percentages for the entire host, (I think its purple in your screen shot) you should see that the values in the chart equal the values in text in the table below the chart.

So when it says real time display, it is not moment to moment real time, but a chart of a sample taken every 20 seconds and then displayed on the chart in 20 second increments over the last hour.

In other words every 20 seconds it samples the host and then displays that value to the far right (end of the chart). The latest value is just that, the latest sample measured.

The max, min, and average value are those respective measurements over the last hour for the chart you posted. You are absolutely correct in thinking that the last sample cannot have different values for all those different measurements at the same time. The only time they would be the same is on the inital sample.

Another interesting thing to notice is you can see how well the scheduler is utilizing and spreading the load over the various cpu's by looking at this chart. When you look at each of the varios indivdual cpu's, you can see that each of the 4 cpu's have very similar max, min, and average values over the last hour, with a slight exception of a higher average for cpu0. This is to be expected since this is the cpu where the service console runs on, and so there will be a somewhat higher load on this cpu, generally speaking,

12 vm's on 4 cpus averaging about 30% cpu utilization. Not bad, 3 vms per core. Are they all single processor vms?


Re: Sampling interval

5. Jan 22, 2009 5:17 PM in response to: Rob.Bohmann
Click to view Rob.Bohmann's profile Master 583 posts since
May 31, 2005

PS...

If you want real moment to moment perf data, or at least a faster sampling rate, you can use the esxtop command run as root in the service console. The default refresh rate there is 5 seconds and when you look at that data, you will see the utilization rates bounce around a lot more (much greater variability) then what you see generally in the virtual center.

They recently posted a terrific document on the esxtop commands here http://communities.vmware.com/docs/DOC-9279

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities