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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content