Solved

%CPU over 100 in top under linux

Posted on 2007-11-29
2
3,406 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
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now