SQL 2022 not using all cores

Paw Boel Nielsen 5 Reputation points
2023-10-12T08:54:39.3733333+00:00

I am using SQL 2022 Developer edition and migrating from an older laptop (win10) with 11th gen intel to a new Dell XPS (win11) with a 13th gen intel CPU. However SQL performance on the new machine is a lot slower. Digging in it seems SQL server is not taking advantage of all the cores on the new machine.

I run a long query with select, inserts and updates to test.

Old machine:

User's image

New machine:

User's image

I run sp_readerrorlog and get this output:

User's image

All cores seem online:

User's image

Any ideas what is happening and why SQL Server is not using all cores?

SQL Server | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-10-12T09:08:46.0633333+00:00

    Hi @Paw Boel Nielsen

    You can refer to the previous thread. Hope it can help you.

    https://learn.microsoft.com/en-us/answers/questions/119509/sql-server-not-using-all-cores

    Best regards,

    Percy Tang


  2. Christoph Muthmann 181 Reputation points
    2023-10-12T10:54:57.44+00:00

    Hi Percy,

    please have a look at the capacity limits: https://learn.microsoft.com/en-us/sql/sql-server/compute-capacity-limits-by-edition-of-sql-server?view=sql-server-ver16

    Standard Edition is limited to lesser of 4 sockets or 24 cores.

    Oh, I've seen that you are using Developer Edition. This should use all cores. Operating system maximum!

    HTH!


  3. Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
    2023-10-12T15:18:13.02+00:00

    In general extra cores only help with concurrent queries. Your new box does not seem to be compute bound. As you cpu and disk are probable faster I’d suspect the real issue is your anti-virus software.


Your answer

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