CXROWSET_SYNC

(Republishing, or using this info in a commercial product/website, is prohibited without permission. All other uses are permitted. If in doubt, please ask.)

(Back to main page…)

Description:

This wait type is when a thread is waiting for exclusive access to the parent rowset of a parallel scan, for coordination between the various child threads.

(Books Online description: “Occurs during a parallel range scan.”)

Questions/comments on this wait type? Click here to send Paul an email, especially if you have any information to add to this topic.

Added in SQL Server version:

2008

Removed in SQL Server version:

N/A

Extended Events wait_type value:

The map_key value in sys.dm_xe_map_values is 363 in 2008 and 2008 R2, 410 in 2012, and 426 in 2014 RTM. After 2014 RTM, you must check the DMV to get the latest value as some map_key values have changed in later builds.

Other information:

I have not seen this wait type be a noticeable contention point. If you do not want parallelism, see the CXPACKET wait for more information.

Known occurrences in SQL Server (list number matches call stack list):

  1. Setting up a new scan
  2. Setting the range for a scan (in this case, as part of a nested-loops join)

Abbreviated call stacks (list number matches known occurrences list):

  1. SOS_Task::PostWait+90
    EventInternal<SuspendQueueSLock>::Wait+1f9
    CSyncInfo::AcquireExclusiveAccess+97
    CQScanRangeNew::Open+9e
    CQScanNew::OpenHelper+41
    CQScanXProducerNew::Open+c8
    FnProducerOpen+44
    FnProducerThread+851
    SubprocEntrypoint+a59
    SOS_Task::Param::Execute+21e
    SOS_Scheduler::RunTask+a8
  2. SOS_Task::PostWait+90
    EventInternal<SuspendQueueSLock>::Wait+1f9
    CSyncInfo::AcquireExclusiveAccess+97
    CQScanRangeNew::SetRange+60
    CQScanRangeNew::GetRow+d4
    CQScanBatchSortNew::GetRowHelper+363
    CQScanRangePrefetchDelayNew::GetRow+d6
    CQScanNLJoinTrivialNew::GetRow+e5
    CQScanXProducerNew::GetRowHelper+53
    CQScanXProducerNew::GetRow+15
    FnProducerOpen+57
    FnProducerThread+851
    SubprocEntrypoint+a59
    SOS_Task::Param::Execute+21e
    SOS_Scheduler::RunTask+a8