The ring buffers DMV CPU query gets the actual CPU utilization by the SQL Server process in one minute increments. Looking at that output over time will give you a good idea of your average CPU utilization and the normal range of values at different times of the day. Each value that it stores is the actual value when the measurement was taken that minute.
If you really want to know the maximum value for CPU utilization by SQL Server, you would need to run PerfMon session to a file, tracking the CPU utilization by the SQL Server process in small enough increments so that you don’t miss any peak values. Honestly, I am not really sure why you want to do this though.
]]>For the CPU utilization history for the last 256 minute, Is the value for SQL Server utilization MAX or AVG and if i need to get the max value is there a way ?.
Please let me know
Thanks
]]>Thanks for the heads up. I have fixed that in the 2008 R2 version of the queries. Thanks!
]]>Thanks for sharing these very informative queries! It’s very handy to have something at hand to get so much information at once.
I’ve found a small typo/error in the script for SQL 2008 R2. On line 704 you call the column [pages_in_bytes] from [dm_os_memory_objects]. This column doesn’t exist and must be changed to [page_size_in_bytes]. I’ve executed it on a SQL2008 R2 SP2 (10.50.4000) instance.
Best regards
]]>