top of page

Get Average Task Counts for SQL Server

-- Get Average Task Counts (run multiple times)

SELECT AVG(current_tasks_count) AS [Avg Task Count],

AVG(runnable_tasks_count) AS [Avg Runnable Task Count],

AVG(pending_disk_io_count) AS [AvgPendingDiskIOCount]

FROM sys.dm_os_schedulers WITH (NOLOCK)

WHERE scheduler_id < 255 OPTION (RECOMPILE);


-- Sustained values above 10 suggest further investigation in that area

12 views0 comments

Recent Posts

See All

Comments


bottom of page