The LOGPOOL_* waits belong to one structure, and this page covers them together: LOGPOOL_CACHESIZE, LOGPOOL_CONSUMER, LOGPOOL_CONSUMERSET, LOGPOOL_FREEPOOLS and LOGPOOL_REPLACEMENTSET. Microsoft lists all five as internal use only, from SQL Server 2012.
The log pool is an in-memory cache of recently flushed log blocks, so components that read the log after it is written can avoid physical reads of the log file; one example is sending log blocks to asynchronous Availability Group replicas. Its LOGPOOL_CACHESIZE examples are changes to the pool’s size during checkpoints. The individual names point at different parts of the pool, but the details are not documented.
Are They a Problem?
No. They are not known contention points, and they stay small next to the real log waits. Get Wait Statistics does not filter them out.
When They Do Matter
They do not on their own. If a log reader is falling behind, it shows in its own measures: for Availability Groups, log_send_queue_size in sys.dm_hadr_database_replica_states. The baseline to monitor is that send queue draining after each burst.
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
- 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. This page.
Where To Go Next
The LOGPOOL waits are background noise. If you are chasing a real problem, start with the waits that cost you time.
- The waits that usually matter, ranked, with what each one is telling you.
- WRITELOG, the log wait that costs users time.
- Performance & Troubleshooting, the scripts and guides for this part of the stack.
Leave a Reply