PAGEIOLATCH_UP Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: PAGEIOLATCH_SH Wait TypeRelated pillar: Storage & Capacity
⚡PAGEIOLATCH_UP is a thread waiting for a page, usually an allocation page, to come in from disk so it can change it. Like the rest of the family, it is judged by its average wait, which follows storage latency. Run the check to compare its average with the other I/O latch waits and with per-file latency.

Microsoft describes it as a task waiting on a latch for a buffer that is in an I/O request, in update mode, and says long waits might indicate disk subsystem problems. It is usually a thread waiting for a non-table page, typically an allocation bitmap such as PFS, GAM or SGAM, to be read so it can be modified, and that it can also cover the synchronous write of certain special pages and mirroring redo.

The IO in the name is the difference from PAGELATCH_UP: there, the page is already in memory and threads are contending for it; here, there is a disk trip.


Is It a Problem?

Judge it by average wait time, like the rest of the family. An average in line with the storage’s normal latency just means allocation pages are sometimes read from disk, which is normal after a restart or under memory pressure. A rising average means storage is slowing, and the whole family will say the same. On our SQL Server 2025 lab it averaged about 0.3 ms against 0.5 ms for PAGEIOLATCH_SH; it is usually a small number beside the shared wait.

The baseline to monitor is its average wait per interval next to PAGEIOLATCH_SH‘s.


Common Causes

  • A cold buffer pool after a restart or failover, reading allocation pages back in.
  • Memory pressure evicting allocation pages that are not touched often.
  • Slow or overloaded storage stretching every read.
  • Allocation-heavy work, such as bulk loads and restores, touching bitmaps across many files.

The Check To Run

Rank it against everything else with Get Wait Statistics, then compare averages across the family:

SELECT
    wait_type,
    waiting_tasks_count,
    wait_time_ms,
    CAST(wait_time_ms * 1.0 / NULLIF(waiting_tasks_count, 0) AS DECIMAL(12, 2)) AS avg_wait_ms,
    max_wait_time_ms
FROM sys.dm_os_wait_stats
WHERE wait_type LIKE N'PAGEIOLATCH_%'
  AND waiting_tasks_count > 0
ORDER BY wait_time_ms DESC;

Then check storage latency per file with sys.dm_io_virtual_file_stats:

SELECT
    DB_NAME(vfs.database_id) AS database_name,
    mf.type_desc,
    mf.physical_name,
    vfs.num_of_reads,
    CAST(vfs.io_stall_read_ms * 1.0 / NULLIF(vfs.num_of_reads, 0) AS DECIMAL(12, 2)) AS avg_read_ms,
    vfs.num_of_writes,
    CAST(vfs.io_stall_write_ms * 1.0 / NULLIF(vfs.num_of_writes, 0) AS DECIMAL(12, 2)) AS avg_write_ms
FROM sys.dm_io_virtual_file_stats(NULL, NULL) AS vfs
JOIN sys.master_files AS mf
    ON mf.database_id = vfs.database_id AND mf.file_id = vfs.file_id
ORDER BY vfs.io_stall_read_ms + vfs.io_stall_write_ms DESC;

Both are cumulative since restart, so compare two readings. Both queries need VIEW SERVER STATE.


What To Do

  1. If per-file read latency is high, this is a storage problem, not an allocation one; take the per-file numbers to the storage team.
  2. Check memory: page life expectancy and max server memory, since eviction pressure sends more reads to disk.
  3. If it clusters in tempdb alongside PAGELATCH_UP, treat it as part of tempdb allocation contention and follow the tempdb file guidance on PAGELATCH_EX.

The PAGEIOLATCH Family

Each latch mode on a page that is in an I/O request has its own wait type, and the IO in the name means storage is involved. Judge them by the average wait, which tracks storage latency. The main page is PAGEIOLATCH_SH.

  • PAGEIOLATCH_SHShared. Waiting for a page to be read from disk so it can be read.The main page for this family
  • PAGEIOLATCH_EXExclusive. A page in an I/O request, latched in exclusive mode.A full page of its own
  • PAGEIOLATCH_UPUpdate. Usually an allocation page being read so it can be changed.Worth a look when it climbs. This page.
  • PAGEIOLATCH_KPKeep. Keep mode on a page in an I/O request; exists for completeness.Usually noise
  • PAGEIOLATCH_DTDestroy. Destroy mode on a page in an I/O request; exists for completeness.Usually noise
  • PAGEIOLATCH_NLNull. Documented for information only, not supported.Usually noise

Where To Go Next

If PAGEIOLATCH_UP is sitting near the top of your wait stats, these are the next places to look.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *