Solved

%CPU over 100 in top under linux

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 63
LINUX, CPANEL & WHM 5 44
Trying to make SNMP connection work 7 65
Changing passwords in Linux Systems 3 40
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

911 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

17 Experts available now in Live!

Get 1:1 Help Now