PAGELATCH_EX

Description

Page Latches are used to guarantee consistency of index and data pages for user and system objects in-memory. Pages that manage allocations are protected by internal allocation pages (PFS, GAM, SGAM and IAM). This wait type accumulates while page latches are in exclusive mode. If this wait type is high then the common problem of PFS contention may be present

Resolved by

DBAs

Suggested solutions

  1. Monitor page latches over time (see link below), confirm which database the problem is coming from. It is most likely tempdb
  2. Ensure tempdb has the correct number of data files. A rule of thumb is one file for every 4 CPU cores
  3. Enable trace flag 1118
Additional research

Analyzing Tempdb Contention
How to Tell if You Need More Tempdb Files
Tempdb Contention

See more

Consider using ApexSQL Monitor, a Windows and SQL Server monitoring tool able to track SQL Server wait types, including the individual query wait statistics

⇐ Back to index