LOGMGR_QUEUE Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: WRITELOG Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

No. It is one of the best-known benign waits, commonly filtered, and Get Wait Statistics filters it out by default. It sits near the top of raw output on almost every instance.


What It Means

Microsoft’s definition: it occurs while the log writer task waits for work requests. From SQL Server 2016 there can be several log writer threads, each waiting for log to flush or a write to complete. Whenever the workload is not committing, they park here.

Its name makes people think of WRITELOG, but they mean opposite things. LOGMGR_QUEUE is the log writer with nothing to do. WRITELOG is your transactions waiting for the log writer. A large LOGMGR_QUEUE total means there was little log pressure.


When It Does Matter

It does not. If a report ranks it as a top wait, treat that as a gap in the report’s filter. For log pressure, look at WRITELOG and LOGBUFFER, and at log file write latency; the baseline to monitor is the average WRITELOG wait per interval.


The LOG Family

These are the transaction log waits: sessions waiting for log to be written, for room in the log buffer or the log file, and the log writer itself idling. The one that usually costs users time is the main page, WRITELOG.

  • WRITELOGLog flush. A session waiting for its log records to be written to disk.The main page for this family
  • LOGBUFFERLog buffer. Waiting for space in the log buffer to store a log record.Worth a look when it climbs
  • LOGMGR_RESERVE_APPENDLog space. Waiting to see whether truncation frees space in a full log.Worth a look when it climbs
  • LOGMGR_FLUSHFlush in progress. Documented for information only; reported as waiting for the current log flush.Usually noise
  • LOGMGR_QUEUELog writer idle. The log writer waiting for work requests.Usually noise. This page.
  • LOGMGRClosing the log. Waiting for outstanding log I/O before the log shuts down as a database closes.Usually noise
  • LOGPOOL waitsLog pool. The in-memory cache of recently flushed log blocks.Usually noise

Where To Go Next

LOGMGR_QUEUE is background noise on a healthy instance. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

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