Solved

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

Posted on 2008-10-27
4
642 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
Comment Utility
try htop
0
 
LVL 12

Accepted Solution

by:
hfraser earned 500 total points
Comment Utility
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
Comment Utility
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:hfraser
hfraser earned 500 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

9 Experts available now in Live!

Get 1:1 Help Now