[kanchilug] Re: [Tip ]How to view the performance details of individual CPUs in the top command

  • From: ashwin kesavan <ashwin.chn@xxxxxxxxx>
  • To: kanchilug@xxxxxxxxxxxxx
  • Date: Fri, 16 Jul 2010 16:57:19 +0530

On 16 July 2010 09:56, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:
> How to view the performance details of individual CPUs in the top command
>
> You can view the performance details of each CPUs of your machine in
> the top command by pressing 1 (number one) while the top command is
> running.one).
>
> $ top
>
> top - 09:50:17 up 16 min,  3 users,  load average: 0.11, 0.09, 0.08
> Tasks: 174 total,   1 running, 171 sleeping,   2 stopped,   0 zombie
> Cpu(s):  3.1%us,  2.8%sy,  0.0%ni, 94.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
> Mem:   2045828k total,  1117436k used,   928392k free,   118552k buffers
> Swap:  2000052k total,        0k used,  2000052k free,   418580k cached
>
> when i pressed '1' i got the details shown below.
>
> Tasks: 174 total,   1 running, 171 sleeping,   2 stopped,   0 zombie
> Cpu0  :  4.8%us,  4.0%sy,  0.0%ni, 91.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
> Cpu1  :  1.7%us,  2.7%sy,  0.0%ni, 95.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
> Mem:   2045828k total,  1120512k used,   925316k free,   118664k buffers
> Swap:  2000052k total,        0k used,  2000052k free,   422536k cached
>


This is old trick. I will add one more. You can kill a process inside
top by typing k then entering process id. For more read man top.

with regards,
aashwin

Other related posts: