dataiotech Labs
dbaguidedbaguideDBAdataxtoolsdataopsphere
Home/Glossary/CXPACKET & CXCONSUMER
CXPACKET & CXCONSUMERPerformance & Memory

CXPACKET & CXCONSUMER (Paralel Sorgu Senkronizasyon Beklemesi)

Parallel query execution wait events where worker threads synchronize row buffers or wait for peer threads to finish their chunk.

Internal Architecture Breakdown

CXPACKET waits occur when parallel worker threads exchange packets via the Exchange iterator. In SQL Server 2016 SP2+ and 2017+, harmless coordinator idle time is segregated into CXCONSUMER.

Persistent high CXPACKET accompanied by high CPU indicates thread imbalance, stale statistics causing skewed cardinality estimates, or default unoptimized MAXDOP and Cost Threshold for Parallelism settings.

Production Inspection Queries

SQL Server
SELECT wait_type, waiting_tasks_count, wait_time_ms, max_wait_time_ms FROM sys.dm_os_wait_stats WHERE wait_type IN ('CXPACKET', 'CXCONSUMER') ORDER BY wait_time_ms DESC;