How to calculate how much CPU requirement for SQL Server

SVA 116 Reputation points
2022-09-17T08:31:48.6+00:00

Hi

How to calculate the CPU requirement in a SQL Server

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,629 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,461 Reputation points
    2022-09-19T06:46:28.43+00:00

    Hi @SVA ,

    Welcome to Microsoft Q&A!
    I recommend you to read this Microsoft blog: Monitor CPU usage on SQL Server and Azure SQL.
    There are the following methods:

    1. Microsoft SQL Server Performance Dashboard
    2. Dynamic Management views(sys.dm_os_ring_buffers)
    3. Perf Mon

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Vinodh247 16,826 Reputation points
    2022-09-17T10:12:10.473+00:00

    Hi ShanV,

    Thanks for reaching out to Microsoft Q&A.

    There is no single method through which you can guess the CPU requirement without studying the current database cpu consumptions. Assuming you are a starter, I have given the below link which explains with use case and scripts that you can use to assess the current cpu requirements for your databases, once found you will have an idea on how many CPUs you should allocate for your needs.

    https://www.mssqltips.com/sqlservertip/6195/sql-server-function-to-measure-cpu-usage-per-database/

    Please Upvote and Accept as answer if the reply was helpful.

    0 comments No comments

  3. Seeya Xi-MSFT 16,461 Reputation points
    2022-09-19T06:48:37.637+00:00

    Hi @SVA ,

    Welcome to Microsoft Q&A!
    I recommend you to read this Microsoft blog: Monitor CPU usage on SQL Server and Azure SQL.
    There are the following methods:

    1. Microsoft SQL Server Performance Dashboard
    2. Dynamic Management views(sys.dm_os_ring_buffers)
    3. Perf Mon

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Olaf Helper 43,901 Reputation points
    2022-09-19T07:05:31.333+00:00

    The required CPU depends on many factors, like count of users, workload, database sizes and so on.

    0 comments No comments

  5. Tom Phillips 17,731 Reputation points
    2022-09-19T17:59:49.09+00:00

    There is not really a way to "calculate" the CPU usage.

    However, SQL Server is rarely CPU dependent. When CPU usage is high, it is usually an indication of another problem, bad query plan, not enough RAM, page swapping, etc.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.