Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
 
The Voice of the DBA
 

What is CPU Usage?

I had a request from a customer recently who asked if we could give them a report of their database server instances and include CPU usage. This request was filtered through an account executive, so something was lost in translation, but I was confused and asked for clarification, as asking for CPU usage is kind of like asking how fast you were traveling in your car. There needs to be more context.

If someone asked you for a report of CPU usage for a database, what would you expect? How would you report this? I'm sure the person asking might make a difference. A fellow DBA, your DBA manager, or maybe an executive could all view this differently. I want to know how things are performing, if there is a trend, or maybe if we are getting value for the hardware we've provisioned, depending on my role.

If you were looking at your monitoring system, what would you look for? Redgate Monitor shows the last 24 hours of CPU with the last two hours in a focus window as the default, though you can easily change this. Perhaps you'd prefer this boiled down to min/max/average values over a time period? If there's something else you'd consider, let me know. Maybe I can get it added.

Certainly, the values you expect might depend on what you are trying to measure. Is there an acute performance issue? Then you might worry about the spot values or perhaps the last xx minutes of trending CPU values. If this is capacity planning, then peaks and average values can matter. If you are looking forward, you might even want longer trend lines and future extrapolation.

Of course, the experienced DBA knows that other metrics need to be taken into account when looking at the CPU. 100% usage isn't necessarily an issue if the workload isn't creating unnecessary processes stacking up or too much latency in returning results. Perhaps the amount of memory used should be included to determine if there are CPU or RAM (or other) bottlenecks.

There are a lot of factors that might go into how you examine the performance or efficiency of a database server, whether SQL Server or any other platform. A well-performing system has to balance lots of factors to meet the demands of a workload. A poor-performing system doesn't do this well and often there are many more factors than how much of your CPU capacity is being used.

The other thing this request showed me is how poorly many people communicate, and especially how much can be lost as a message moves from one person to another. This is an area where AI can succeed or fail as well. IF we communicate poorly with AI, we may waste time and money while receiving useless results. If we let AIs provide summaries to us, or from us, the model may choose to emphasize, highlight, reword, or hide things we think are important. After all, the model is predicting what should come next, not understanding the information.

Communication is crucial and is becoming more important as we become more distributed and allow technology to sit between us.

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 
 Featured Contents
SQLServerCentral Article

Can You Really Downgrade from Enterprise to Standard and Save Thousands? Here's What Happened

Pablo Echeverria from SQLServerCentral

A real world story of how someone moved from Enterprise Edition to Standard for not only the SQL Server database engine, but also with SSRS, SSIS, and SSAS.

Technical Article

Exposing a SQL injection vulnerability you’ve never heard of

Additional Articles from SQLServerCentral

This article documents a SQL injection vulnerability I discovered in sys.sp_dbmmonitorupdate, a Microsoft-signed system stored procedure. For other SQL Server security vulnerabilities I’ve discovered, see the full series here.

Blog Post

From the SQL Server Central Blogs - Install SQL Server 2025 Container on macOS Using OrbStack

MarlonRibunal from Marlon Ribunal - SQL, Code, Coffee, etc.

My old Dell XPS that I used for personal stuff started to degrade; well, it's old, and it has already served past its useful life. So, a few months...

Blog Post

From the SQL Server Central Blogs - Flyway Tips: Immediate Code Review for Developers

Steve Jones - SSC Editor from The Voice of the DBA

At the Redgate Summits this year, we’ve highlighted a few things in the Flyway solution that help developers improve their ability to get work done safely and quickly. While...

SQL Server 2022 Query Performance Tuning

Grant Fritchey from SQLServerCentral

Troubleshoot slow-performing queries and make them run faster. Database administrators and SQL developers are constantly under pressure to provide more speed. This new edition has been redesigned and rewritten from scratch based on the last 15 years of learning, knowledge, and experience accumulated by the author. The book Includes expanded information on using extended events, automatic execution plan correction, and other advanced features now available in SQL Server.

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Limiting Checkpoints

If I use the -k parameter with a number after it, what does this change in SQL Server?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

SQL Server Certificates

Which of these is not true for certificates used for SQL Server connections?

Answer: The certificate must be in the local computer certificate store

Explanation: All of these are true except "the certificate must be in the local computer certificate store". The certificate can be in either the local computer cert store or the SQL Server service account cert store. Ref: Certificate requirements for SQL Server - https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/certificate-requirements?view=sql-server-ver17

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


SQL Server 2019 - Administration
Impact of Single-Threaded PVS Cleanup on ADR in SQL Server 2019 - We want to enable ADR on our SQL Server 2019 instances. I’ve heard that the PVS cleanup process is still single-threaded in SQL Server 2019. Do you have any feedback or experience with this? Is there any noticeable latency, or is it strongly recommended to move to SQL Server 2022 before enabling ADR?
Editorials
Forward Deployed Engineers - Comments posted to this topic are about the item Forward Deployed Engineers
SSRS Reminded Me of the Time Microsoft Retired TMG - Comments posted to this topic are about the item SSRS Reminded Me of the Time Microsoft Retired TMG
I Can't Make You Learn - Comments posted to this topic are about the item I Can't Make You Learn
A Quick Second Opinion - Comments posted to this topic are about the item A Quick Second Opinion
Article Discussions by Author
TRY_PARSE vs TRY_CONVERT in SQL Server: From Basics to Practical Usage - Comments posted to this topic are about the item TRY_PARSE vs TRY_CONVERT in SQL Server: From Basics to Practical Usage
DBCC CHECKDB Limits II - Comments posted to this topic are about the item DBCC CHECKDB Limits II
BIT_COUNT II - Comments posted to this topic are about the item BIT_COUNT II
Why Your SQL Permissions Disappeared - Comments posted to this topic are about the item Why Your SQL Permissions Disappeared
Why Your SQL Permissions Disappeared - Comments posted to this topic are about the item Why Your SQL Permissions Disappeared
Five Intelligent Query Processing Features in SQL Server 2022 That Quietly Tune Your Workload - Comments posted to this topic are about the item Five Intelligent Query Processing Features in SQL Server 2022 That Quietly Tune Your Workload
Checking the Error Log I - Comments posted to this topic are about the item Checking the Error Log I
SQL Server 2022 - Administration
ALAMAT BCA KCU PEKANBARU TLP/WA 08218200203 - Hub Cs:08218200203 Jl. Jend. Sudirman No.448, Tanah Datar, Pekanbaru Kota, Kota Pekanbaru, Riau 28115
Upgrade 2016 Standard to 2022 Express - Title pretty much says it all - can this be done? I've tried several paths and always come up against some failure in the installation process. I can install a new version of 2022 Express, but that means also porting all my logins and roles, as well as restoring every database. I would much prefer […]
SQL Server 2022 - Development
Getting results from a Procedure to join to a query - I have a need to execute a stored procedure and return the results to something I can join to in a query. I am trying to execute a Trial balance from our ERP and get those balances and account numbers to correlate to another table with new account numbers. So my stored procedure execution looks […]
 

 

RSS FeedTwitter

This email has been sent to {email}. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -