Solved

Linux CPU

Posted on 2012-03-26
6
255 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 11

Accepted Solution

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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 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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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