パフォーマンス カウンタ System\Context Switches/sec の収集ルール
このルールは、System\Context Switches/sec パフォーマンス カウンタのパフォーマンス データを収集します。この情報は、1 つ以上の表示およびレポートで収集され、表示されます。
System\Context Switches/sec パフォーマンス カウンタは、任意のスレッドから他のスレッドに切り替わるすべてのプロセッサを含めた率を表示します。コンテキストの切り替えは、実行スレッドが任意にプロセッサを解放する、優先順位が高いスレッドによって割り込まれる、または Executive またはサブシステム サービスを使用するためにユーザー モードと特権 (カーネル) モードの間で切り替わるときに起こります。これは、すべてのプロセッサで実行しているすべてのスレッドの Thread\\Context Switches/sec の合計値で、切り替えの回数で計測されます。システムとスレッド オブジェクトにはコンテキスト スイッチ カウンタがあります。このカウンタは、最新の 2 つのサンプリングで監視した値の差をサンプリング間隔の時間で割った値を表示します。
Target | Microsoft.Windows.Client.Vista.OperatingSystem |
Category | PerformanceCollection |
Enabled | False |
Instance Name | System |
Counter Name | Context Switches/sec |
Frequency | 900 |
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.Client.Vista.OperatingSystem.SystemContextSwitchesPerSec.Collection" Enabled="false" Target="Vista!Microsoft.Windows.Client.Vista.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>900</Frequency>
<Tolerance>50</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>4</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>