Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:09:14+00:00 2026-06-09T20:09:14+00:00

Whenever I try to add up the CPU utilization percentages from commands like top

  • 0

Whenever I try to add up the CPU utilization percentages from commands like top or mpstat and in particular the collectd service, I can’t get to the exact 100% CPU utilization.

For example top results from a test server on Amazon EC2:

Cpu(s): 13.6%us, 31.6%sy,  0.0%ni, 53.2%id,  0.0%wa,  0.0%hi,  0.0%si,  1.7%st

No matter how I add up the percentages, I never quite get 100% CPU, certainly not in any logical way. Mostly it seems like rounding errors; 100.1% or 99.9%, but sometimes I end up with over 110%. This usually happens when steal is relatively high, e.g. one situation from collectd reported ~21.44% steal and ~88% idle, just those two are well over 100% already. I understand the ni (nice) is also counted in us (user), so I shouldn’t add it, but that still doesn’t work out.

Does anybody know how to add these up to 100% or how to interpret the exceptional cases that collectd sometimes reports?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:09:15+00:00Added an answer on June 9, 2026 at 8:09 pm

    collectd (and top, htop, vmstat or any other such utility) reports an average over an interval, and by nature of the kernel (from which these utilities query their statistics) not generally using floating point math and not necessarily trying to exhaustively account for everything, can’t be 100% accurate. Sometimes it’ll all add up to something less than 100%, sometimes more. It’s not intended to be used for an audit, just a general indication of where time is being spent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever i try to add an article from frontend i get the error as
Whenever I try to add the numbers in string like: String s=new String(); for(int
whenever I try to call my ejb from a client, I get this error
I'm using md5 to ecnrypt the user password. But whenever I try to add
I am using hibernate and whenever I try to add a record it drops
I have a website and whenever I try to add a form with an
I am using PhpMyAdmin to add indexes on the tables but whenever i try
When I try to add a DatePicker to my layout, whenever the activity is
Whenever I try to add a new ribbon into my Excel 2010 addin project,
Rails throws a NoMethodError on a page whenever I try to add a form_tag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.