PAGEIOLATCH_SH appears when a query needs a data page that is not in the buffer pool, so SQL Server must read it from disk. SH is the shared latch mode, which Microsoft describes as the one used while the page is being read from disk. The query waits until the I/O completes and the page is loaded into memory.
This is one of the most common waits on servers where the working data set does not fit in RAM.
Is This Wait Expected?
Some PAGEIOLATCH_SH is normal. Any server doing real work reads pages from disk occasionally. It becomes a signal worth investigating when:
- It is consistently in the top 3 wait types by
pct_total_wait pct_total_waitis well above its usual share on this server and trending upwardavg_wait_msis consistently above its normal-week baseline (not just during batch jobs)- You are getting performance complaints and this is the top wait
Treat the numbers above as starting points, not limits. Baseline this wait on your own hardware during a normal week; the thresholds worth acting on are the ones your workload proves. The avg_wait_ms here is from sys.dm_os_wait_stats, how long tasks waited for a page; the 15 ms used further down is avg_read_ms from sys.dm_io_virtual_file_stats, how long each read took at the file. They are different clocks: one read can hold several tasks waiting, and a task can queue behind other reads before its own starts, so judge each against its own threshold rather than against the other.
When To Ignore It
After a restart. The buffer pool starts empty, so the first read of each page comes from disk until the working set is cached again. Expect PAGEIOLATCH_SH to run high for a while and then settle; how long depends on the workload and the size of the data.
Nightly index rebuilds. A rebuild reads every page of the index it replaces, and each page not already in memory is a read from disk. Expect a spike during the maintenance window.
Reporting and ETL queries. A query doing a full table scan on a large table will generate PAGEIOLATCH_SH whenever the pages it scans are not already in memory. This may be expected for that workload. Compare: is PAGEIOLATCH_SH high only during batch windows, or all the time?
The first run of a query. A possible pattern to verify, not a rule: the first run may read its pages from disk, and a later run can find them cached and wait less, or not at all, if nothing has evicted them in between. Compare the two runs with sys.dm_exec_session_wait_stats before calling it a cold cache.
Root Causes
Four causes, and the order matters: the free one is third on the list, so rule it out before anyone signs off on hardware. The first two look identical in the wait statistics and are told apart by one column.
The data the server actually uses is bigger than the memory it is allowed to cache, so pages are read from disk over and over. More RAM is the obvious answer and often the right one, but read the diagnosis first: a missing index can make a correctly sized buffer pool look too small.
Read counts are high while avg_read_ms stays low. Fast reads happening constantly is churn, not a storage problem, and it points at memory or at the query that keeps evicting pages.
A read that does reach disk takes as long as the disk takes. A spinning disk, an overloaded SAN or a shared iSCSI path will make even a well-sized buffer pool feel broken, because the misses that remain are expensive.
avg_read_ms consistently above about 15 ms, per file, in sys.dm_io_virtual_file_stats. Per file matters: one slow volume among several is the common shape, and an instance-wide average hides it.
Without the right index a query reads thousands of pages instead of a handful. That is more I/O than the work needs, and it cycles the buffer pool faster than well-indexed reads do, so it creates both of the causes above at once.
High logical reads on the top queries, and a plan showing a scan where a seek was possible. This is the cause to rule out before buying either RAM or storage, because it is the only one that is free to fix.
Plenty of RAM and still not enough, because columnstore scans, ETL, OLTP traffic and reporting each want a different set of pages cached. Every workload is reasonable on its own and they evict each other.
Churn that moves with the schedule rather than with a query: the wait climbs when the ETL or the reporting window starts and settles afterwards. One query is never the culprit for long.
How To Diagnose It
First, confirm the wait is real and not a temporary spike:
Run the wait statistics script twice, 15 to 30 minutes apart, and compare the delta (interval versus cumulative explains why the running total misleads). If PAGEIOLATCH_SH is consistently in the top few positions in both snapshots, it is real.
Find which databases and files are driving the reads:
SELECT
DB_NAME(vfs.database_id) AS database_name,
mf.physical_name,
mf.type_desc,
vfs.io_stall_read_ms AS read_stall_ms,
vfs.num_of_reads,
CASE WHEN vfs.num_of_reads > 0
THEN CAST(vfs.io_stall_read_ms * 1.0 / vfs.num_of_reads AS decimal(10,1))
ELSE 0
END AS avg_read_ms,
vfs.io_stall AS total_io_stall_ms
FROM sys.dm_io_virtual_file_stats(NULL, NULL) vfs
JOIN sys.master_files mf
ON mf.database_id = vfs.database_id
AND mf.file_id = vfs.file_id
ORDER BY vfs.io_stall_read_ms DESC;

Files with high avg_read_ms (consistently above about 15 ms) indicate genuine storage latency. High read counts with low latency indicate buffer pool churn instead. Read the figures per file, not as an instance average. Leave total_io_stall_ms out of this judgement: it adds write stalls to read stalls, and this wait is about reads.
These counters are cumulative since the instance last started, so a bad hour last month is still in the total. If the numbers look worse than the server feels, capture the view twice a few minutes apart and compare the difference rather than trusting the running total.
Find which queries are doing the most reads:
SELECT TOP 20
qs.total_logical_reads / qs.execution_count AS avg_logical_reads,
qs.total_logical_reads,
qs.execution_count,
SUBSTRING(qt.text, (qs.statement_start_offset / 2) + 1,
((CASE qs.statement_end_offset WHEN -1 THEN DATALENGTH(qt.text)
ELSE qs.statement_end_offset END - qs.statement_start_offset) / 2) + 1) AS statement_text
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
ORDER BY qs.total_logical_reads DESC;

That second capture is from a mostly idle instance, which is worth saying rather than hiding: four rows, and the top one is Query Store housekeeping. sys.dm_exec_query_stats only knows what is still in the plan cache, so on a quiet server, or one under memory pressure that evicts plans quickly, it will under-report. Run it while the workload you care about is actually running.
Check missing indexes. If logical reads are high on a table, look for a missing index that would turn a scan into a seek. The Get Missing Indexes script reads SQL Server’s missing index DMVs and ranks the suggestions by impact, with a ready-made CREATE INDEX for each. Copy the T-SQL from that page and run it in SSMS. Treat the list as candidates to review, not indexes to create, because adding every suggestion slows down writes.
What To Do
Which fix applies depends entirely on what the diagnosis above returned. These are not steps to work through in order; pick the row that matches your evidence.
| What the diagnosis says | What to do |
|---|---|
Storage latency is highavg_read_ms consistently above about 15 ms | Move the data files to faster storage. Check whether the array is shared and already busy, and confirm the latency outside SQL Server with Performance Monitor’s PhysicalDisk\Avg. Disk sec/Read for that volume. Fix the volume before touching the instance. |
| Latency is fine but reads are constant low avg_read_ms, high read counts | This is buffer pool churn. Check whether max server memory has been set too low, look for other processes eating RAM on the box, and add indexes to cut the logical reads of the worst queries. Add RAM only once the working set genuinely does not fit. |
| One query is responsible | Add the missing index, validating it against an execution plan first. Consider partitioning if the query only needs a slice of the table, and check whether it needs every row it asks for or can filter earlier. |
Where To Go Next
If PAGEIOLATCH_SH is sitting near the top of your wait stats, these are the next places to look.
- Get-WaitStatistics, the overview script that surfaces this wait type
- Get-MissingIndexes, find indexes that would reduce scan reads
- Get-DatabaseIoUsage, per-database read latency, which is where this wait is confirmed or ruled out; write latency there is a separate question
- Get-DatabaseFileDetails, the files behind those numbers, with their growth and max size
- PAGEIOLATCH_EX, the same disk read when the page is about to be modified, usually a write workload rather than reports
- ASYNC_IO_COMPLETION, the other side of the storage story, where the wait is a background operation rather than a query
Leave a Reply