RESOURCE_GOVERNOR_IDLE is a query being held idle on purpose, because Resource Governor has a hard CPU cap on its pool. It is a policy reporting what it denied, not a fault. Run the check to see which pool has a cap and whether that cap still matches what you intended.Microsoft lists it as internal use only, from SQL Server 2012. With CAP_CPU_PERCENT set on a resource pool, SQL Server inserts an idle consumer into the runnable queue to use up the CPU time the pool is not entitled to, and this wait is that idle consumer. CAP_CPU_PERCENT is a hard cap, unlike MAX_CPU_PERCENT, which only applies when there is contention for CPU.
Is It a Problem?
It is a policy, reported honestly. Its size is how much CPU the capped pool wanted and did not get; whether that is a problem depends on whether the cap still reflects what you meant. On an instance with no cap it should be zero, and it was zero on our SQL Server 2025 lab, where Resource Governor is off. Get Wait Statistics does not filter it out, so if it ranks, you will see it.
It is also commonly reported on Azure SQL Database, where service tiers limit CPU; there, sustained high values are read as the workload wanting more CPU than the tier gives. That comes from community write-ups rather than the official documentation, so confirm it against the platform’s own resource views.
Judge it over an interval rather than the cumulative totals. The baseline to monitor is its share of total wait time against the pool’s CPU usage.
Common Causes
- A resource pool with
CAP_CPU_PERCENTset below 100, doing real work. - A cap set some time ago for a workload that has since grown.
- On Azure SQL Database, a workload running at its tier’s CPU limit.
The Check To Run
Rank it against everything else with Get Wait Statistics, then see which pools have a cap and how much CPU they use:
SELECT
p.name AS pool_name,
p.cap_cpu_percent,
p.max_cpu_percent,
rp.total_cpu_usage_ms
FROM sys.resource_governor_resource_pools AS p
JOIN sys.dm_resource_governor_resource_pools AS rp ON rp.pool_id = p.pool_id
ORDER BY p.name;
A cap_cpu_percent below 100 is the pool to look at. While it is happening, see which sessions run in which pool:
SELECT
r.session_id,
g.name AS workload_group,
p.name AS pool_name,
r.wait_type,
r.cpu_time
FROM sys.dm_exec_requests AS r
JOIN sys.dm_resource_governor_workload_groups AS g ON g.group_id = r.group_id
JOIN sys.dm_resource_governor_resource_pools AS p ON p.pool_id = g.pool_id
WHERE r.session_id > 50
ORDER BY p.name;
Both need VIEW SERVER STATE.
What To Do
- Revisit the cap against current intent. If the throttled workload now matters more, raise the cap or move it to a different pool.
- If the cap is right, reduce the work: tune the biggest CPU consumers in that pool.
- On Azure SQL Database, read it with
sys.dm_db_resource_stats; ifavg_cpu_percentsits at the limit, tune the top consumers or scale the tier. - Do not chase it as a performance bug; it is configuration doing what it says.
Where To Go Next
If RESOURCE_GOVERNOR_IDLE is sitting near the top of your wait stats, these are the next places to look.
- SOS_SCHEDULER_YIELD, the CPU wait to read alongside this one.
- The waits that usually matter, ranked, with what each one is telling you.
- Performance & Troubleshooting, the scripts and guides for this part of the stack.
Leave a Reply