System\Context Switches/sec パフォーマンス カウンターの収集ルール
このルールは、System\Context Switches/sec パフォーマンス カウンターのパフォーマンス データを収集します。
System\Context Switches/sec パフォーマンス カウンターは、任意のスレッドからほかのスレッドに切り替わるすべてのプロセッサを含めた率を表示します。 コンテキストの切り替えは、実行スレッドが任意にプロセッサを解放する、優先順位が高いスレッドによって割り込まれる、または Executive またはサブシステム サービスを使用するためにユーザー モードと特権 (カーネル) モードの間で切り替わるときに起こります。 これは、すべてのプロセッサで実行しているすべてのスレッドの Thread\\Context Switches/sec の合計値で、切り替えの回数で計測されます。 システムとスレッド オブジェクトにはコンテキスト スイッチ カウンターがあります。このカウンターは、最後の 2 つのサンプルの値の差を、サンプリング間隔の長さで割った値を示します。
Target | Microsoft.Windows.Server.10.0.OperatingSystem |
Category | PerformanceCollection |
Enabled | False |
Instance Name | System |
Counter Name | Context Switches/sec |
Frequency | 300 |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
PerformanceDS | DataSource | System.Performance.OptimizedDataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<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>