The remaining single-call preemptive waits do not warrant a page each, so this page covers them together. Microsoft lists them as internal use only, so the names are the guide: each is the Windows function, or group of functions, SQL Server was calling. While a call runs, the thread is in preemptive mode, outside SQL Server’s scheduler, and it shows as RUNNING.
PREEMPTIVE_OS_DEVICEIOCONTROLandDEVICEOPS: device control calls.PREEMPTIVE_OS_RSFXDEVICEOPS: the generic wait for calls to RsFx, the component that provides FILESTREAM storage.PREEMPTIVE_OS_VSSOPS: the library calls it the generic wait for Volume Shadow Copy Service calls, which happen around VSS snapshot backups.PREEMPTIVE_OS_PROCESSOPSandSERVICEOPS: process and Windows service calls.PREEMPTIVE_OS_COMOPSandGENERICOPS: catch-all groups for COM and other Windows calls.PREEMPTIVE_OS_FORMATMESSAGE: the WindowsFormatMessagefunction, which turns error codes into text.PREEMPTIVE_OS_WSASETLASTERROR: setting the Winsock error state.PREEMPTIVE_OS_SQMLAUNCH: it initialises SQM error reporting. It is documented for SQL Server 2008 R2 through 2016 only, and it does not exist on our SQL Server 2025 lab.PREEMPTIVE_OS_PDH_WMI_INIT: performance data and WMI initialisation, from SQL Server 2012.PREEMPTIVE_FSRECOVER_UNCONDITIONALUNDO: from the name, undoing a FILESTREAM file system operation during recovery.
Are They a Problem?
No. None of them is a known contention point. They exist so that time outside SQL Server is counted somewhere, and their totals stay small on healthy systems. Get Wait Statistics does not filter them out.
When They Do Matter
When one grows unusually, find the feature behind it and look at that feature’s health: FILESTREAM for RSFXDEVICEOPS, VSS snapshot backups for VSSOPS, a run of errors for FORMATMESSAGE. Catch the caller while it happens:
SELECT
r.session_id,
r.wait_type,
r.wait_time AS wait_ms,
s.login_name,
s.program_name,
t.text AS running_sql
FROM sys.dm_exec_requests AS r
JOIN sys.dm_exec_sessions AS s ON s.session_id = r.session_id
OUTER APPLY sys.dm_exec_sql_text(r.sql_handle) AS t
WHERE r.wait_type LIKE N'PREEMPTIVE_OS_%'
ORDER BY r.wait_time DESC;
The baseline to monitor is each one staying small next to your real waits. The query needs VIEW SERVER STATE.
The PREEMPTIVE_OS Call Waits
Each of these is SQL Server calling a Windows function outside the file and security groups: networking, pipes, the registry, the event log, DLLs and the cluster. The time is spent in Windows. If one is near the top of your waits, read it next to the waits that usually matter.
- Network waitsDNS and sockets. GETADDRINFO name lookups and Winsock calls; slow DNS shows here.Worth a look when it climbs
- PREEMPTIVE_OS_PIPEOPSPipes. Windows pipe functions, such as xp_cmdshell reading its command output.Worth a look when it climbs
- PREEMPTIVE_OS_WAITFORSINGLEOBJECTClient sync. Synchronising with an external client process; often seen with ASYNC_NETWORK_IO.Worth a look when it climbs
- PREEMPTIVE_OS_QUERYREGISTRYRegistry. Windows registry functions.Worth a look when it climbs
- PREEMPTIVE_OS_REPORTEVENTEvent log. The Windows ReportEvent function, writing to the event log.Worth a look when it climbs
- PREEMPTIVE_OS_GETPROCADDRESSXP entry points. Finding an extended stored procedure’s address in its DLL.Worth a look when it climbs
- Library waitsDLL loading. Loading and unloading DLLs in the SQL Server process.Usually noise
- Cluster waitsFailover cluster. Windows failover cluster API calls.Usually noise
- Miscellaneous waitsEverything else. The remaining single-call waits, such as VSS, FILESTREAM device and service calls.Worth a look when it climbs. This page.
Where To Go Next
These OS call waits are usually tiny. 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.
- Performance & Troubleshooting, the scripts and guides for this part of the stack.
Leave a Reply