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

x
?
Solved

Linux CPU

Posted on 2012-03-26
6
Medium Priority
?
261 Views
Last Modified: 2012-06-27
I am running RHEL 6.2

My machine usually shows about 100 percent idle

It is now running at 96 percent idle, and it is doing this somewhat persistently

How do I find out what is taking the 4 percent ?  What commands should I run
0
Comment
Question by:Los Angeles1
6 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37766166
Try
top
0
 
LVL 11

Expert Comment

by:gmbaxter
ID: 37766169
"top" will show the current proceses, their PIDs, CPU load etc
0
 
LVL 11

Expert Comment

by:jgiordano
ID: 37766188
just curious how you are getting the idle information?
0
Independent Software Vendors: 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!

 
LVL 11

Accepted Solution

by:
legolasthehansy earned 2000 total points
ID: 37766254
Run this command,

ps -eo pcpu,pid,user,args | sort -r -k1 | less

It gives you which process takes the highest CPU cycles in descending order.
0
 
LVL 3

Expert Comment

by:rickygm
ID: 37766343
Hi , top -d2 and later Shift+M , press 1 a show cpu core

regardss
0
 

Author Closing Comment

by:Los Angeles1
ID: 37766351
I was using top to get idle, but I was looking for the ps command, sorry I did not post more clearly
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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
Course of the Month12 days, 5 hours left to enroll

916 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