WRITE_COMPLETION is a thread waiting for a synchronous write, and the most common cause is writing pages into a database snapshot, including the hidden one DBCC CHECKDB creates. Its timing usually gives the cause away. Run the check to line it up with integrity checks, snapshots and file growth.Microsoft’s definition is brief: it occurs when a write operation is in progress. It covers synchronous writes for allocation pages, log writes that are not log block writes, and database snapshots. Examples are writing any page to a database snapshot, often the most common cause because of DBCC CHECK*; writing VLF headers when creating or growing a log; writing a file’s header page; writing parts of the log during database startup; and writing allocation pages when creating or growing a data file.
Is It a Problem?
A small baseline is normal; our SQL Server 2025 lab had about 1,850 waits averaging half a millisecond in a day. Get Wait Statistics does not filter it out, so if it ranks, you will see it. It is worth attention when it rises into the top waits. Overlap with DBCC CHECKDB points at its internal snapshot on busy databases; constant presence on a server with user snapshots points at their copy-on-write cost; spikes with file growth point at the growth.
Judge it over an interval rather than the cumulative totals. The baseline to monitor is its average wait against the storage’s normal write latency.
Common Causes
DBCC CHECKDBon a database taking writes, through its hidden snapshot.- User database snapshots on write-heavy databases.
- Creating or growing data and log files.
- Slow storage under any of these.
The Check To Run
Rank it against everything else with Get Wait Statistics. List user snapshots:
SELECT
s.name AS snapshot_name,
DB_NAME(s.source_database_id) AS source_database,
s.create_date
FROM sys.databases AS s
WHERE s.source_database_id IS NOT NULL;
Then compare the wait’s timing with your integrity check schedule, which Get Last DBCC CHECKDB shows, and with growth events in Get Autogrowth History. For write latency per file, use Get Database IO Usage.
What To Do
- If integrity checks drive it, run them off-peak, or on a restored copy on another server, which also tests your backups.
- If user snapshots drive it, keep fewer of them for less time.
- If file growth drives it, pre-size files so growth is rare.
- If writes are slow across the board, take the per-file latency to the storage team.
The IO Family
These are I/O waits outside the page latch families: bulk file operations, file growth, backups and throttling. The main page is IO_COMPLETION; for reads and writes of data pages, see PAGEIOLATCH_SH.
- IO_COMPLETIONSynchronous I/O. Waiting for I/O to finish, generally I/O that is not for data pages.The main page for this family
- ASYNC_IO_COMPLETIONAsynchronous I/O. Bulk file work such as backups reading data files and checkpoints.Worth investigating
- WRITE_COMPLETIONWrites. A write operation in progress.Worth a look when it climbs. This page.
- FGCB_ADD_REMOVEFile growth. A latch class rather than a wait type, taken for file add, drop, grow and shrink.Worth investigating
- IO_QUEUE_LIMITI/O throttle. Documented as internal use only; an I/O governance limit.Worth investigating
- BAD_PAGE_PROCESSSuspect pages. The suspect page logger pacing itself; a corruption signal when present.Worth a look when it climbs
- DISKIO_SUSPENDSnapshot backup. Waiting to access a file while an external backup is active.Worth a look when it climbs
- REPLICA_WRITESSnapshot writes. Page writes to database snapshots or DBCC replicas.Worth a look when it climbs
- FCB_REPLICA_READ / WRITESnapshot file sync. Synchronised reads from, and page pushes into, a snapshot sparse file.Usually noise
- IMPPROV_IOWAITBulk load I/O. Waiting for a bulk load I/O to finish.Worth a look when it climbs
- ASYNC_DISKPOOL_LOCKFile creation. Synchronising parallel threads that create or initialise a file.Worth a look when it climbs
Where To Go Next
If WRITE_COMPLETION is sitting near the top of your wait stats, these are the next places to look.
- REPLICA_WRITES, the database snapshot write wait.
- Get Database IO Usage, read and write stalls per file.
- 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