Across many client environments we see the same late-afternoon experiment: someone opens sys.dm_exec_requests, sets CPU time versus elapsed time side by side, and gets a number they can't defend. Add sys.dm_os_wait_stats and the argument usually gets longer. Those two views are where Database Health Monitor starts in its Hypervisor Contention Indicators report, and the difference lies in what it refuses to count.
What does CPU time versus elapsed time tell you about a SQL Server virtual machine? For a single-threaded request that stays running without waiting, CPU time versus elapsed time should sit near 1.00. A ratio under 0.85 suggests the virtual CPU is not being scheduled fully by the host. It is an inference from inside the guest, so confirm it against hypervisor counters.
The motive is nearly always money or time. Users say the application is slow, the guest shows modest CPU, and the host team's averages look healthy. Without evidence, a business can spend days tuning queries that were never the problem.
Where the numbers come from
SQL Server cannot see CPU ready from inside the guest. It can see the damage. A thread that truly holds a processor should bank roughly a millisecond of CPU for every millisecond on the clock, and when the hypervisor leaves the virtual CPU unscheduled, the bank falls short.
One ratio is a thin case, though, so the report draws on several sources at once.
| Source | What it contributes |
|---|---|
sys.dm_exec_requests and sys.dm_os_tasks | CPU time of running requests, polled each second, plus the task count that exposes parallelism |
sys.dm_os_wait_stats | Signal wait time as a share of all wait time, measured as change across the sample |
sys.dm_os_schedulers | Runnable queue length on each scheduler |
A 100 ms WAITFOR DELAY | How late the thread is woken, tried once a second for the first 30 seconds |
sys.dm_os_sys_info | Whether the server is virtual, with committed_kb and committed_target_kb |
sys.dm_os_sys_memory and sys.dm_os_process_memory | Free physical memory, its state and the process low memory flag |
Hypervisor Contention Indicators is one of the reports in Database Health Monitor. It runs against your own servers, and it takes about a minute to have this same screen open on one of them.
Why a hand-written CPU time versus elapsed query misleads
The usual attempt is one SELECT, run once, dividing one figure by the other for whatever happens to be active. It returns something. Often that something is meaningless.
Waiting is the first contaminant. A request stuck behind a lock or a slow read piles up elapsed time while using no processor, and none of that is the host's doing. Parallelism pushes the other way: CPU time adds together every thread, so a parallel request can look richly fed while the guest is being shortchanged.
Then there is the runnable state, which fools careful people. A runnable request wants CPU and isn't getting it, which sounds exactly like starvation. But it is queued for a SQL Server scheduler. That is pressure from your own workload.
So the report is strict. A request qualifies only if every poll in the sample found it on a CPU, free of waits and working on one thread. Fewer than five qualifiers and you get not enough running requests instead of a ratio. We think that refusal is worth a lot. A confident figure built on two sessions is how the wrong team gets paged.
Duration matters too. The default sample runs 60 seconds, and the toolbar offers 30 or 120. It needs VIEW SERVER STATE, and leaving the page cancels the sample along with the timer probe.
The readings that back up the ratio
Signal waits are the second trap for a direct query. Read sys.dm_os_wait_stats once and you have a total, with nothing to isolate the minutes your users complained about. The report takes the difference between the start and end of its sample. It flags a signal share above 25 percent only while runnable tasks average fewer than 2 per scheduler, because a high share beside long queues has a much closer explanation than the host.
The timer test is pleasingly blunt. Ask to sleep for 100 milliseconds, note when you actually wake, and repeat. If the 99th percentile of the overshoot passes 50 ms, that indicator trips.
Memory needs the most restraint. Committed memory under 90 percent of target means little by itself, since a buffer pool that is still filling after a start looks just like that. It counts only when the machine is also short of memory, the pattern a balloon driver produces. If storage is your other suspect, SQL Server Disk Latency Right Now: Is the SAN Slow? takes up that question separately.
What the corrected reading tells you
The four tests are then counted. None tripped reads as no sign of contention. One makes it possible. Two or more makes it probable CPU contention from the host. If SQL Server reports that it isn't virtual, the verdict says so and the physical figures are shown as they are.
You also get the working. The evidence list shows each qualifying session with its poll count, CPU and elapsed milliseconds, ratio and the opening of its statement, worst first. Anyone who doubts the headline can inspect the rows under it.
Beside the evidence sits a list of questions for the virtualization team. For VMware it covers CPU ready, co-stop, and memory that has been ballooned or swapped. For Hyper-V it names virtual processor wait time and guest run time. Host CPU commitment and any vCPU limit belong in the same request, and the thresholds those teams work to are listed with them.
Know the edges before you forward anything. This is inference, and the hypervisor's own counters settle the matter. Steal time accounting on Azure and AWS virtual machines isn't read. There is no seven day history of the indicators yet. On SQL Server 2008 R2, the virtual flag and committed memory figures are skipped, so the verdict leans on the rest. A calm minute proves nothing either, so sample while the pain is live.
The full list of sources and rules is in the Hypervisor Contention Indicators documentation. In our experience the costly part of these incidents is the circular meeting. A timed sample with named sessions gives both teams something specific to test, and if their counters disagree with yours, that is worth a second pair of eyes.
What to check on your own server
- Confirm the login you diagnose with holds VIEW SERVER STATE, so the DMVs can be read when trouble starts
- Poll running requests in sys.dm_exec_requests once a second during a slow spell, using sys.dm_os_tasks to set parallel ones aside
- Keep only requests that were running without a wait at every poll, and insist on at least five before trusting a ratio
- Snapshot sys.dm_os_wait_stats at the start and end of that window, and read the signal wait share beside runnable queue length
- Send your virtualization team the exact sample window and ask for the hypervisor's CPU scheduling counters for that VM
Try Database Health Monitor Today
Slow queries on a virtual machine often end in a standoff with the host team because nobody has trustworthy evidence from inside SQL Server. Database Health Monitor shows it on every instance you connect, in the time it takes to open the report.
Download Database Health Monitor and run the Hypervisor Contention Indicators report against your own server. There is nothing to configure first, and you will know inside a few minutes whether it tells you something you did not already know.

