SECURITY_PRIMARY_LOOKUP

(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 latch class is when a thread is waiting for access to the cache of Windows security information (called WSPI entries – Windows Security Primary Info) that is used for login tokens.

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

Added in SQL Server version:

pre-2005/2005

Removed in SQL Server version:

N/A

Extended Events latch_class value:

Maps to the SECURITY_WSPI_LOOKUP map_value in sys.dm_xe_map_values.

The map_key value in sys.dm_xe_map_values is 137 in 2008 and 2008 R2, and 134 in 2012 and 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’ve heard of several cases where contention happens on this latch if lots of users/threads need to use the same token at the same time. This can occur with concurrent multiple threads calling a stored proc that implicitly changes execution context using EXECUTE AS.

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

  1. TBD

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

  1. TBD