Solved

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

Posted on 2008-10-27
4
646 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Expert Comment

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

Accepted Solution

by:
hfraser earned 500 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:hfraser
hfraser earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 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