Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Microsoft Platform difference in cpu load

Solved1.60K views14th July 2023CPU Microsoft Platform
5
Jeroen Geldhof [SLC] [DevOps Enabler]5.04K 20th May 2022 1 Comment

There's a noticable differen in the cpu load reported in the Microsoft Platform connector and the load reported in Microsoft Task Manager.

What can cause this discrepancy?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 14th July 2023
Jeroen Geldhof [SLC] [DevOps Enabler] commented 23rd May 2022

I compared some of the wmi commands I found online.

The command being executed by the connector is:
SELECT PercentProcessorPerformance FROM Win32_PerfFormattedData_Counters_ProcessorInformation WHERE NAME = “_TOTAL”
This results in a a value 112 or 113, which doesn’t match the real value at all.

I tried some other commands, and all of them provide correct values.
I don’t know if there is technically a difference between these commands and which one should be the preferred command.

select percentprocessortime from win32_perfformatteddata_perfos_processor where name = “_total”

select loadpercentage from win32_processor

select loadpercentage from CIM_Processor

What was the reason to go for that first command instead of the other 3?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Avatar photo
Jan Staelens [SLC] [DevOps Advocate]889 Posted 23rd May 2022 1 Comment

The original reason for choosing that specific call might be lost to time, as this was one of the first connectors ever developed. But I make a couple of guesses from some quick research:

From: https://social.technet.microsoft.com/Forums/en-US/0435e7c5-3cda-41a0-953e-7fa462fde03b/perfmon-process-processor-time-vs-task-manager8217s-cpu-usage-for-monitoring-a-specific?forum=perfmon

The 3rd response is from Microsoft

Looks like TaskManager uses the NtQuerySystemInformation call internally.

Something I'm not sure we cannot duplicate because it's a pinvoke call to your local OS. Not over a network I believe.

There's actually a number of ways the CPU utilization gets calculated even within windows itself. WMI has it's own Performance Counter Classes that get created at system initialization. You could compare it to the Performance Monitor instead of the TaskManager. It's possible the WMI grabs data from there.

Maybe one of those other calls matches closer with the taskmanager. But we should also be careful in trusting the taskmanager CPU usage.

A quick google found a few people did deeper research: https://aaron-margosis.medium.com/task-managers-cpu-numbers-are-all-but-meaningless-2d165b421e43

As a result, because dynamically-adjustable processors automatically enter an enhanced mode when under load, Task Manager’s CPU % for a process that is actively executing code will generally be significantly larger than its processor time. But because that number is placed on a scale that is capped at 100%, Task Manager makes it appear that the process is taking up more of the system’s computing capacity than it actually is. For a while, Task Manager itself would report overall CPU usage greater than 100%. Because that’s counterintuitive even to people who understand the concept of “utility,” Task Manager now caps the numbers it reports at 100%. That ends up further distorting what it reports.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 14th July 2023
Jeroen Geldhof [SLC] [DevOps Enabler] commented 23rd May 2022

Thanks for the explanation.
I’m using the Resource Manager indeed.
Still I’m surprised that the Task Manager behaves the way the article explains.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Multiple Set on Table parameters for DVE’s 0 Answers | 0 Votes
DOM Definition relations returned in Definition query 0 Answers | 0 Votes
Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin