• Increase font size
  • Default font size
  • Decrease font size

How do i find out linux cpu utilization

 The top program provides a dynamic real-time view of a running system.  It can display system summary information as well as a list of

       tasks currently being managed by the Linux kernel.  The types of system summary information shown and the types,  order  and  size  of
       information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.
 
       The  program provides a limited interactive interface for process manipulation as well as a much more extensive interface for personal
       configuration  --  encompassing every aspect of its operation.  And while top is referred to throughout this document, you are free to
       name  the  program anything you wish.  That new name, possibly an alias, will then be reflected on top's display and used when reading
       and writing a configuration file.
 
usage:  top -hv | -bcisSHM -d delay -n iterations [-u user | -U user] -p pid [,pid ...]
 [root@www ~]# top
top - 21:04:32 up 20:32,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  70 total,   1 running,  69 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1033824k total,  1001380k used,    32444k free,    99592k buffers
Swap:   779144k total,       80k used,   779064k free,   760936k cached
 
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                         
    1 root      15   0  2060  624  532 S    0  0.1   0:00.75 init                                                                                            
    2 root      RT  -5     0    0    0 S    0  0.0   0:00.04 migration/0                                                                                     
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0                                                                                     
    4 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                                                      
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.04 migration/1                                                                                     
    6 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1                                                                                     
    7 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1                                                                                      
    8 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0                                                                                        
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1                                                                                        
   10 root      10  -5     0    0    0 S    0  0.0   0:00.03 khelper                                                                                         
   11 root      18  -5     0    0    0 S    0  0.0   0:00.00 kthread                                                                                         
   15 root      10  -5     0    0    0 S    0  0.0   0:00.41 kblockd/0                                                                                       
   16 root      16  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1                                                                                       
   17 root      14  -5     0    0    0 S    0  0.0   0:00.00 kacpid                                                                                          
  109 root      14  -5     0    0    0 S    0  0.0   0:00.00 cqueue/0                                                                                        
  110 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue/1                                                                                        
  113 root      10  -5     0    0    0 S    0  0.0   0:00.00 khubd                                                                                           
  115 root      10  -5     0    0    0 S    0  0.0   0:00.00 kseriod                                                                                         
  181 root      15   0     0    0    0 S    0  0.0   0:01.00 pdflush                                                                                         
  182 root      15   0     0    0    0 S    0  0.0   0:01.88 pdflush                                                                                         
  183 root      10  -5     0    0    0 S    0  0.0   0:01.98 kswapd0                                                                                         
  184 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0                                                                                           
  185 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1                                                                                           
  350 root      13  -5     0    0    0 S    0  0.0   0:00.00 kpsmoused                                                                                       
  380 root      14  -5     0    0    0 S    0  0.0   0:00.00 ata/0                                                                                           
  381 root      14  -5     0    0    0 S    0  0.0   0:00.00 ata/1                                                                                           
  382 root      14  -5     0    0    0 S    0  0.0   0:00.00 ata_aux                                                                                         
  386 root      10  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_0                                                                                       
  387 root      11  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_1                                                                                       
  388 root      10  -5     0    0    0 S    0  0.0   0:05.78 kjournald                                                                                       
  415 root      12  -5     0    0    0 S    0  0.0   0:00.00 kauditd                                                                                         
  449 root      21  -4  2244  636  388 S    0  0.1   0:00.08 udevd                                                                                           
  873 root      10  -5     0    0    0 S    0  0.0   0:00.00 kedac                                                                                           
 1341 root      20  -5     0    0    0 S    0  0.0   0:00.00 kmpathd/0                                                                                       
 1342 root      20  -5     0    0    0 S    0  0.0   0:00.00 kmpathd/1                                                                                       
 1372 root      11  -5     0    0    0 S    0  0.0   0:00.00 kjournald                                                                                       
 1766 root      15   0  1716  568  476 S    0  0.1   0:00.97 syslogd                                                                                         
 1769 root      15   0  1668  396  332 S    0  0.0   0:00.00 klogd                                                                                           
 1785 root      15   0 25928 4940 2932 S    0  0.5   0:00.14 snmpd                                                                                           
 1807 root      17   0  6992 1048  668 S    0  0.1   0:00.57 sshd                                                                                            
 1844 root      18   0  4500 1096  936 S    0  0.1   0:00.00 mysqld_safe    
 

Add comment


Security code
Refresh