

SQL Server 2019 continues to push the boundaries of security, availability, and performance for all your data workloads, now with new compliance tools, higher performance on the latest hardware, and high availability on Windows, Linux and containers. Reconfiguring the VM with a maximum of 4 sockets will again allow the use of all cores. SQL Server 2019 Microsoft Evaluation Center. So only 4 cores can be used by SQL Server. The VM is configured with 8 cores but there are also 8 sockets.

The Standard Edition is limited to the lesser of 4 sockets or 28 cores. This one has several SQL Server instances installed with Standard Edition. Just before publishing this post, I identified the same issue on another VM. Make sure you are aware of them and configure your VMs accordingly or you may face unexpected CPU contention on your instances. There are some CPU limitations with non-Enterprise Editions of SQL Server. Now the instances can use 4 schedulers and the load The best option here is to re-configure the VM with a single socket so both instances could use 4 cores. I would not recommend doing this as the result is still sub-optimal. To improve this situation a solution without impacting the availability of the service would be to set a Processor Affinity mask as it does not requires a restart of the service.Įach instance could be configured to use 2 differents cores so the workload would be balanced over the 4 cores. EXEC sys.xp_readerrorlog 0, 1, N'detected', N'socket' Solution The same information can also be retrieved from the Error Log with the following query. Each scheduler is mapped to an individual processor (CPU) as described in the Thread and Task Architecture Guide. This article provides details of features supported by the various editions of SQL Server 2019 (15.x). We can see that the scheduler_count is 2. One way to confirm this is to look at the sys.dm_os_sys_info DMV. Both instances are limited to 1 socket and therefore to 2 cores. So what happens is that the VM is configured with 2 sockets and 4 cores. Compute capacity limits by EditionĪs stated in the documentation the compute capacity limit for SQL Server Express Edition is the lesser of 1 socket or 4 logical cores. There are two SQL Server instances installed on this server but they are both Express Edition. The average CPU usage on this VM is indeed 50% but half of the cores are stuck at 100%. When performing an audit on an SQL Server VM the first thing the system administrator told me was that there’s no issue with the CPU on this box, the monitoring shows it’s always around 50% usage.
