Windows Server 2016 이상 초당 시스템 컨텍스트 전환

Microsoft.Windows.Server.10.0.OperatingSystem.SystemContextSwitchesPerSec.Collection (Rule)

System\Context Switches/sec 성능 카운터의 수집 규칙입니다.

Knowledge Base article:

요약

이 규칙은 System\Context Switches/sec 성능 카운터의 성능 데이터를 수집합니다.

System\Context Switches/sec 성능 카운터는 컴퓨터의 모든 프로세서가 한 스레드에서 다른 스레드로 전환한 전체 횟수를 제공합니다. 컨텍스트 스위치는 실행 중인 스레드가 자발적으로 프로세스를 포기하거나, 더 높은 우선 순위를 가진 준비된 스레드에 의해 미리 비워졌거나, 실행부 또는 그 하위 시스템 서비스를 사용하기 위해 사용자 모드와 특권(커널) 모드 사이에 전환된 것입니다. 이 카운터의 값은 컴퓨터의 모든 프로세서에서 실행 중인 모든 스레드의 Thread\\Context Switches/sec 합계이며 스위치 수로 계산됩니다. 시스템 및 스레드 개체에 대한 컨텍스트 전환 카운터가 있습니다. 이 카운터는 최근 두 샘플에서 관찰된 값을 각 샘플 간격 기간으로 나눈 값의 차이를 표시합니다.

Element properties:

TargetMicrosoft.Windows.Server.10.0.OperatingSystem
CategoryPerformanceCollection
EnabledFalse
Instance NameSystem
Counter NameContext Switches/sec
Frequency300
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
PerformanceDS DataSource System.Performance.OptimizedDataProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.Server.10.0.OperatingSystem.SystemContextSwitchesPerSec.Collection" Enabled="false" Target="ServervNext!Microsoft.Windows.Server.10.0.OperatingSystem">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Context Switches/sec</CounterName>
<ObjectName>System</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<Tolerance>50</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>12</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>