[CentOS] How to know which process is eating the cpu

Thu Feb 15 10:13:18 UTC 2007
ankush grover <ankushcentos at gmail.com>

Hi friends,

 We are using centos4.0 on Dell Machines. Everytime we use top command
on one of the systems, we see system usage is b/w 75.-80% and we are
not able to trace who is eating this much system cpu.

 02:00:06  up 13 days,  5:39,  3 users,  load average: 7.12, 7.25, 7.34
76 processes: 68 sleeping, 6 running, 0 zombie, 2 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total   24.4%    0.0%   75.5%   0.0%     0.0%    0.0%    0.0%
           cpu00   26.4%    0.0%   73.6%   0.0%     0.0%    0.0%    0.0%
           cpu01   22.4%    0.0%   77.5%   0.0%     0.0%    0.0%    0.0%
Mem:  6161704k av, 4758088k used, 1403616k free,       0k shrd,  103108k buff
                   2184012k actv, 1792248k in_d,  100068k in_c
Swap: 2530196k av,       8k used, 2530188k free                 3143184k cached


Is there any command or utility through which we can know who is using
how much cpu resources?


Thanks & Regards

Ankush Grover