TOP output Cpu(s) and %CPU don't fit on single core
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is the top output of a small embedded single core ARM machine. So independent of pressing "1" to show CPU0 in the summary line or not, it shows the same.
I can't understand the "Cpu(s)" line in the overview in relation to the "%CPU" column showing the processes. So it looks like the CPU is close to 90% utilized, but the processes consume less than 20%.
How to check what is right, the Cpu(s) line or the %CPU column?
How to find the process needing so much CPU (ps auxf is closer to %CPU)?
What the hell needs 30% system CPU, I think it's much too much??
top vs ps is apples vs oranges.
You need to know what is being measured to know what is being reported. Read the respective manpages - very carefully. How (exactly) did you get that top report ?.
As for the %sy, best bet would be a dodgy driver - or maybe interrupt handler. Which may indeed be the same thing of course. But I don't know ARM.
according the man entry of ps command, the %CPU is the allover percentage during lifetime of the processes, so it is not a snapshot like done with top.
But at the end, I'm talking about a server with more or less constant load over all processes. So the allover percentage should not so much away from the actual percentage. And basically it is similiar to top's column.
Still I don't know why the Cpu(s) load (sum of user & system) from top differs so much from the %CPU column from top. Any idea?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.