CPU usage computation using PCP framework

Solution Verified - Updated -

Issue

How do I compute the total cpu load in percentage for the period of 10 seconds using pmFetch? I am trying to do the computation as below

(kernel.all.cpu.sys + kernel.all.cpu.user) / (1000 * 10secs) * 100

and it always give me value above 100 which is not as per my expectation.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • PCP

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.