In this post, I provide one SQL Script to find CPU Pressure using SignalwaitTime.
Any executing query for any reason has to wait for the resource and this different wait type is recorded by SQL Server.
We can analyze this wait stats and take decision accordingly.
In this script, I am showing one Signalwait stats to measure the pressure of the CPU.
Higher Signalwait stats are not good for the system performance.
SUM(signal_wait_time_ms) AS TotalSignalWaitTime
,(SUM(CAST(signal_wait_time_ms AS NUMERIC(20, 2)))
/SUM(CAST(wait_time_ms AS NUMERIC(20, 2))) * 100)