-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Sharing AuthorizationManager causes contention when opening Runspaces in parallel #7153
Copy link
Copy link
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWG-Engine-Performancecore PowerShell engine, interpreter, and runtime performancecore PowerShell engine, interpreter, and runtime performance
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWG-Engine-Performancecore PowerShell engine, interpreter, and runtime performancecore PowerShell engine, interpreter, and runtime performance
I'm not sure if this is something that should be fixed or not. I'm opening this issue for two main reasons:
Steps to reproduce
Invoke authorizationManagerContention.ps1.
Expected behavior
I expected the amount of time it takes to open runspaces in parallel to be similar whether
AuthorizationManageris shared or not.Actual behavior
Sharing
AuthorizationManagercauses an approximately 0.5x slow down on my 16-core test system.Environment data