Throughput Versus Concurrency: Read the Knee Chart
Is this instance at capacity, or does it only feel that way? The Concurrency Knee report in Database Health Monitor answers that by plotting throughput versus concurrency from your live server. When it opens, do not start with the highest point on the chart. Start with the two lines of text at the top left, because they tell you whether anything underneath is ready to be believed.
How do I read throughput versus concurrency to tell whether SQL Server is at capacity? To read throughput versus concurrency, group live samples by requests in flight and compare median batches per second at each level. Where more requests stop adding throughput, you have the knee. Then check lock waits, median CPU and the dominant wait class above it. A curve still rising shows no knee yet.
Concurrency Knee 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.
In this post
- Throughput versus concurrency: verdict first
- Then the scatter plot, in this order
- Read the grid from left to right
- What a healthy reading looks like
- What a reading that needs action looks like
- Follow the verdict to the next report
- Collect samples that deserve a verdict
Throughput versus concurrency: verdict first
In the capture above, the heading says Collecting samples. The sentence under it says only 3 of 5 concurrency levels have at least 30 samples, so no curve has been fitted. That is the report declining to guess. Good.
Three gates stand between you and a verdict:
- At least 200 samples in total
- At least 4 populated levels of requests in flight
- At least 5 levels with 30 samples each for the curve to be fitted
A level is simply a count: 8 requests in flight is one level, 9 is another. A request counts if it is running, runnable or suspended. System sessions are excluded, and so is the page's own connection. Sleeping connections are not requests, so a large connection pool does not inflate the number.
This capture has 212 samples, past the first gate, and still no answer. Total volume is not enough. The samples have to be spread across enough levels, deeply enough at each one. At one sample every 10 seconds, 200 of them is a little over half an hour of watching, and a very steady workload can take much longer to fill five levels.
Then the scatter plot, in this order
Requests in flight run along the bottom. Batches per second run up the side. Each point is the median throughput of every sample taken at that level, and the whisker through it spans the 10th to the 90th percentile.
Look at color first. Gray points have fewer than 30 samples and play no part in the fit. In the capture, the highest points sit out at 15 and 19 requests, well above 100 batches per second, and both are gray specks. Tempting, and nearly meaningless. The grid shows that the whole 15 to 19 band holds 2 samples.
Look at size second. Point area follows the sample count, so the large dots are where your server actually spends its time. Here those are the levels at 8, 9 and 10, each with a median in the mid 70s.
Whisker length comes third. A long whisker means the same concurrency produced very different throughput at different moments. The blue points in this capture reach far below their medians. Keep that in mind before you treat any single median as what the server does at that load.
Once there is enough data, two more marks appear. A green curve runs through the medians, and it is only allowed to rise, so one noisy level cannot draw a dip into it. An orange marker shows the knee: the lowest level whose fitted value comes within 5 percent of the best fitted value anywhere on the curve. Left of it, adding requests was still adding work. Right of it, you got more requests and about the same output.
The dashed vertical line is your scheduler count, 10 on this server. Use it as a ruler. A knee far to the left of that line says something other than the number of schedulers deserves a look, though the verdict and the wait class are what settle it.
Read the grid from left to right
Below the charts, the grid rolls levels into bands of five: 0 to 4, 5 to 9, 10 to 14 and so on. The columns are laid out in a useful reading order.
| Column | What to ask of it |
|---|---|
| Requests in Flight | Which band of load is this? |
| Samples | Is there enough here to trust the rest of the row? |
| Median Batches/sec | Did throughput climb from the band above, or stall? |
| Median CPU % | Was SQL Server actually using the processors? |
| Dominant Wait Class | What were the requests mostly doing? |
| Position | Where does this band sit against the knee? |
Apply that to the capture. The 5 to 9 band has 138 samples, a median of 76 batches per second and 13.5 percent CPU. The 10 to 14 band has 70 samples, a median of 52 and 17.2 percent CPU. Lower throughput with more requests looks like a knee, and you might be ready to call it one.
Do not. The report has not fitted a curve, and Position is still blank. CPU is low in both bands and the dominant class reads Other. What you have is a lead worth watching, and it needs more time before it becomes a finding.
What a healthy reading looks like
There are two comfortable answers, and neither points at a server that is full.
The first is no knee. If the curve is still climbing at the highest levels you have measured, the report will not invent a bend. It requires at least 2 fitted levels above the knee, and those must make up at least 15 percent of all fitted levels. A flat-looking last point is not enough. Your workload has not yet pushed far enough to show where throughput stops, which is different from proving that it never will.
The second is Not saturated: demand limited. There is a bend, but lock waits do not dominate above it and median CPU there is under 60 percent. The label says what it means: the instance is not saturated. Buying cores on the strength of this chart would be hard to defend.
When there is a knee, also read how much of the window was spent above it, and when. The verdict sentence is where to find that. A knee you brush past for a few minutes is a different conversation from one you live beyond all morning.
What a reading that needs action looks like
The verdict is decided from what happens above the knee, and the order of the tests matters:
- Lock waits dominate: Blocking limited, whatever the CPU is doing
- Otherwise, median CPU under 60 percent: Not saturated: demand limited
- Otherwise, CPU waits dominate: CPU limited
- Otherwise: Wait limited, followed by the name of the wait class
Notice the second step. An instance below 60 percent median CPU is never labeled CPU limited, even if CPU waits lead the list. And locks are tested before anything else, so a blocked server with idle processors is reported as blocked rather than as short of demand.
On the time chart, requests in flight are drawn in blue and throughput in green, and samples above the knee are marked red. Find the red. Is it one cluster at the same stretch of the morning, or scattered across the day? A cluster gives you a time to investigate. Match it against job schedules, application peaks and anything else you know started then.
Even without red marks, this chart is worth a pass. The capture shows stretches where the green line drops low while the blue line holds at around 9 requests. The same number of requests in flight, far less getting done. No single median tells you that.
Follow the verdict to the next report
The knee tells you where. The next screen helps you find out why.
- Blocking limited: open Blocking Culprits. Find the Head Blocker Behind a Month of Blocking covers tracing the trouble back to its source
- CPU limited: open SQL CPU Schedulers to see the runnable queue at one instant
- Wait limited: open Waits and What is Active to see what the requests are doing
- High request rate: open Chatty Queries to find the statements behind it
If your question is about one database rather than the whole instance, Throughput and Latency Headroom approaches it from Query Store intervals instead of live samples.
To reach the knee page itself, right-click the server, choose Instance Level Reports, then Concurrency Knee. It also sits in the Performance group of the instance reports navigator.
Collect samples that deserve a verdict
One thing will catch you out. Leaving the page stops the sampling. The samples already gathered stay for the session, up to 7 days, but nothing new arrives while you are elsewhere. This is not a history report, because requests in flight are not stored by the collectors. Open it before the busy period and leave it there. Do your drill downs afterward.
Window limits the page to the last hour, 24 hours or 7 days, counted back from the newest sample. Granularity can merge the samples of each minute into one, using the mean throughput and the rounded mean request count. That smooths a jumpy workload, at the cost of detail.
Pause sampling stops the collection and Resume sampling starts it again. Clear samples forgets everything gathered for this instance. Reach for it when you want the picture to describe only what happens from now on, such as after a configuration change or a new release. Mixing before and after in one fitted curve would blur the very difference you are trying to see.
Every 10 seconds the report reads Batch Requests/sec, scheduler CPU time and sys.dm_exec_requests on its own connection. The counter is cumulative, so the first read, including the first after a resume, is only a baseline. Samples that follow a long gap, a restart or a clock moving backward are left out of every figure.
Know the limits before you quote the number to anyone. A burst shorter than 10 seconds can go unseen. Nothing here raises an alert or predicts where the knee would land on new hardware. You need SQL Server 2012 or later, and the CPU percent needs 2016 or later; on 2012 and 2014 it shows as not measured. Right-click the grid to copy the summary, and see the Concurrency Knee documentation for the full set of rules.
What to check on your own server
- Count running, runnable and suspended user requests in sys.dm_exec_requests during a busy period, noting each wait type
- Read Batch Requests/sec from sys.dm_os_performance_counters twice and divide the difference by the seconds between reads
- Repeat both readings every 10 seconds through a real peak, keeping the timestamp with each pair
- Group the samples by requests in flight and compare median throughput only where a group has at least 30 samples
- Check whether lock waits dominate the busiest groups before treating the slowdown as a processor shortage
Try Database Health Monitor Today
Stop guessing whether a slow, busy SQL Server is out of capacity, stuck on locks or waiting on something else. 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 Concurrency Knee 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.