Category: Wait Types

  • ASYNC_DISKPOOL_LOCK Wait Type in SQL Server

    ASYNC_DISKPOOL_LOCK waits are threads coordinating long file operations like creating, zeroing, or encrypting files. Watch it during TDE scans.

  • PAGEIOLATCH_EX Wait Type in SQL Server

    PAGEIOLATCH_EX means a session is waiting for a data page to be read from disk into memory so that it can change it. It is a read wait that belongs to UPDATE, DELETE, INSERT and MERGE statements, not SQL Server writing dirty pages out. When it climbs, your write statements are touching data that is…

  • LCK_M_X, LCK_M_S, and LCK_M_U Wait Types in SQL Server

    ⚡An LCK_M_* wait is a session stuck behind a lock another session holds, and one open transaction is usually behind the whole pile-up. Find the head of the blocking chain before you kill anything: Step 1 shows how. The suffix names the lock the waiting session asked for. LCK_M_X is exclusive, taken to write a…

  • IO_COMPLETION Wait Type in SQL Server

    IO_COMPLETION covers I/O waits that happen outside the normal buffer pool page path. Where PAGEIOLATCH_SH and PAGEIOLATCH_EX track data page reads and writes through the buffer pool, IO_COMPLETION covers most of the I/O that is not a data page: sort spills to tempdb, reads of the transaction log during rollback and recovery, pages read from…

  • HADR_SYNC_COMMIT Wait Type in SQL Server

    HADR_SYNC_COMMIT appears exclusively on Always On Availability Group primary replicas configured with at least one synchronous commit secondary. With synchronous commit, the primary cannot acknowledge a transaction commit to the application until the log records for that transaction have been written and hardened on all synchronous secondaries. HADR_SYNC_COMMIT is the time spent waiting for that…

  • CXPACKET and CXCONSUMER Wait Types in SQL Server

    CXPACKET and CXCONSUMER appear whenever SQL Server runs a query in parallel. They are coordination overhead between worker threads, not waits on a resource. CXPACKET: a producer thread waiting for a consumer to take rows, or the coordinator waiting for all workers to finish. CXCONSUMER: a consumer thread waiting for rows from a producer. Before…