Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to find out CPU utilization on multi-procesors Linux?

Posted on 2008-10-27
4
Medium Priority
?
650 Views
Last Modified: 2013-12-06
I am working on a Linux box which has 4 processors, I know using top can give the inoframtion about the load of a process uisng the CPU.

But is there any way I can find out which applicaiton/process is on which CPU with information on load (say %)?

I am trying to find out if there is any way I can put the heavy load application on once CPU, and then put all the others on the rest of CPUs. Is this a good idea? Any other good approaches other than this one?

Thanks for the help.
0
Comment
Question by:cw1592
  • 2
4 Comments
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 22815439
try htop
0
 
LVL 12

Accepted Solution

by:
Hugh Fraser earned 2000 total points
ID: 22815584
top will tell you this. Hit the "1" key to have it display CPU for each of the processors, then hit "f" to display a list of the available fields, and "j" to show the last used CPU.

Since applications are load-balanced across the CPUs, it's tough to load up only one.
0
 

Author Comment

by:cw1592
ID: 22815964
using the top command and see what the processor is used for my applicaiton/process;

but I got confused by the column %CPU, does the number 100 means the CPU is doing some computaiton 100% of time for the application/process, or it just means that % of time is assigned to that application/proceses?
0
 
LVL 12

Assisted Solution

by:Hugh Fraser
Hugh Fraser earned 2000 total points
ID: 22816140
The %CPU reflects the percentage of CPU used by the specific process during the last sample period. So 100% would indicate that the process consumed 100% of the available CPU. The total of CPU columns from all the processes should generally add up to about the same as the overall %us (user mode) value at the top of the display.

0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

877 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