Solved

%CPU over 100 in top under linux

Posted on 2007-11-29
2
3,418 Views
Last Modified: 2013-12-16
Hi,

I'm working on a multithreaded application, in C++, using the ACE framework for TCP and threads.

When used in certain conditions, the application can have up to 400 threads running. All those threads are running a loop with several operations and a sleep of 100 milliseconds.

When used in the worst conditions, top sometimes shows %CPU > 100 (up to 533).
I don't understand this result. Can someone explain how this is possible (how the %CPU is computed to get over 100%) ? Is related to the number of threads ?

Thanks
0
Comment
Question by:KCTeam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
from_exp earned 125 total points
ID: 20377214
please show me top output and
cat /proc/cpuinfo

I think you have multi processor (or multicore) system
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 125 total points
ID: 20377255
If You have 4 cores(cpus) You can reada 400% CPU time usage. And so on.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question