LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2011, 02:41 PM   #1
trhodgkinson
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
top showing up to 160% CPU usage


I'm trying to quantify the performance of a new s/w release and have been running "top -d1 -n600 -p920 > filename" to log CPU usage every second over a 10 minute period. A 3Ghz Pentium P4 gave a 10 minute average of ~68%. I then enabled hyper threading and get values peaking at 160 (% ??). Can this be regarded as 160 out of 200, or is it not as simplistic as that? If I average the hyper threading values I get 98, whereas dividing by 2 to get 49% would seem more appropriate
 
Old 08-23-2011, 03:14 PM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Hyperthreading involves taking a single processor and exposing it as two virtual processors, so yeah, it's pretty much 160/200 at that point.
 
Old 08-23-2011, 07:57 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,732

Rep: Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125
Being a non-normalised number you can neither (safely) "average" the number nor "divide by 2".
You need to know the history of the usage - is one thread 100% busy on one "core", and the other 60% ?. 80/80 ? ...

But this is basically statistics I suppose, so use the numbers to prove whatever you want, just like everyone else does ...
 
Old 08-23-2011, 08:17 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
In interactive mode you can toggle the CPU summary by hitting the '1' key to show individual cpus; see Section 3b http://linux.die.net/man/1/top
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU usage from top jr8rdt Linux - Newbie 10 08-17-2011 06:46 AM
Top showing 9999% CPU usage on Ubuntu Lucid 10.04 ajayan Linux - Newbie 3 06-19-2011 08:27 PM
Load is very high but CPU usage is almost zero in top! mam2 Linux - Server 3 12-18-2009 03:53 PM
Top CPU usage explanation penguinco Fedora 3 11-30-2004 01:01 PM
Individual CPU usage not showing in ps/top hulli Linux - General 2 08-24-2004 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration