PREEMPTIVE_OS_GENERICOPS

(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 a generic wait for when a thread is calling one of several Windows functions, not grouped in any specific functional area.

(Books Online description: N/A)

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 364 in 2008 and 2008 R2, 411 in 2012, and 427 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.

Note that when a thread calls out to Windows, the thread changes from non-preemptive (SQL Server controls the thread) to preemptive (Windows controls the thread) mode. The thread’s state will be listed as RUNNING, as SQL Server doesn’t know what Windows is doing with the thread.

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

  1. Calling out to a word breaker while running a full-text search
  2. Retrieving the max server memory while determining how many parallel threads to use for a full-text merge operation
  3. Restarting full-text crawls that were paused because of a backup running

And other similar call stacks.

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

  1. SOS_Task::PopWait+bc
    SOS_Task::AutoSwitchPreemptive::~AutoSwitchPreemptive+72
    CWBClientBufferManager::WaitForServer+65
    CWBClient::WordBreak+d5
    WordBreak+4a
    WordBreakQuery+7f
    CStopList::PopulateCache+1dd
    CStopListCacheManager::MapStopListToMemory+e6
    CStopListCacheManager::GenerateNewStopList+146
    CStopListCacheManager::GetStopList+cb
    CStopListBatch::GetStopList+69
    IFTSPipelineISMWrapper::GetNextLv0+160
    IFTSPipelineISMWrapper::GetNextKeyWord+16
    IFTSPipelineISMWrapper::Init+123
    FTEPersistIndex+619
    CSQLFTEPlugIn::ConsumePipelineData+10c
    CIFTSConsumerPluginBatchSink::ConsumePipelineData+21
    CIFTSConsumerPlugin::ConsumeISM+153
    CIFTSConsumeBatchWI::ISMUnit::DoUnitWork+66f
    CFTWorkItemUnit::Go+18
    IFTSWorkerTask+214
    SystemTaskEntryPoint+331
    SOS_Scheduler::SystemTimerEntryPoint+bc
    SOS_Task::Param::Execute+292
  2. SOS_Task::PopWait+bc
    SOS_Task::AutoSwitchPreemptive::~AutoSwitchPreemptive+72
    FulltextGetMaxServerMemoryInMB+ac
    FulltextComputeNumberOfMergeThreads+5
    IFTSWorkerTask+20b
    SystemTaskEntryPoint+331
    SOS_Scheduler::SystemTimerEntryPoint+bc
    SOS_Scheduler::SystemTimerInit+70
    SOS_Task::Param::Execute+292
    SOS_Scheduler::RunTask+a2
  3. SOS_Task::PopWait+ba
    AutoSwitchPreemptive::~AutoSwitchPreemptive+6e
    FulltextGetMaxServerMemoryInMB+a8
    FulltextGetDefaultISMSize+9
    CIFTSConfig::GetConfigLongLong+3e
    CFTWICrawl::CFTWICrawl+23e
    CFTTimeBasedCrawl::CFTTimeBasedCrawl+48
    CFTChangeTrackCrawl::CFTChangeTrackCrawl+4c
    QueueIFTSCrawlAndRemoveParent+9f0
    RegisterCrawlNew+aa
    ResumeCrawlForCatalog+365
    ResumeActiveCrawlsForDb+6f6
    BackupOperation::ResumeFullText+1f9
    BackupOperation::Close+68d