Solved

Linux CPU

Posted on 2012-03-26
6
254 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CentOS/RHEL 7 Linux maillog worldwide readable 2 89
ifconfig 4 69
ftp to port 21 4 53
How to change the nameserver on Ubuntu Server 6 48
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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 …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

839 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