系統處理器佇列長度

Microsoft.Windows.Client.XP.OperatingSystem.SystemProcessorQueueLength.Collection (Rule)

收集效能計數器 System\Processor Queue Length。

Knowledge Base article:

摘要

此規則收集 System\ Processor Queue Length 效能計數器的效能資料。此資訊會收集並公開在一或多個檢視及/或報表中。

System\Processor Queue Length 效能計數器會顯示處理器佇列中的執行緒數量。不同於磁碟計數器,此計數器僅顯示準備就緒的執行緒,而不包括執行中的執行緒。處理器時間僅有單一佇列,即使是具有多處理器的電腦也是一樣。因此,如果電腦具有多個處理器,便需要將此值除以處理工作負載的處理器個數。每個處理器佇列持續少於 10 個執行緒通常可以接受,視工作負載而定。

Element properties:

TargetMicrosoft.Windows.Client.XP.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Instance NameSystem
Counter NameProcessor Queue Length
Frequency900
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.Client.XP.OperatingSystem.SystemProcessorQueueLength.Collection" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.Client.XP.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>Processor Queue Length</CounterName>
<ObjectName>System</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>900</Frequency>
<Tolerance>2</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>