DebugQ - De:Bug:Q

Go Back   DebugQ - De:Bug:Q > DebugQ > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Thread Tools Display Modes
  #1  
Unread 09-15-2015, 05:46 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default Linux CPU

Q:

How do I Find Out Linux CPU Utilization?


   

Reply With Quote
  #2  
Unread 09-15-2015, 05:49 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

$> top



Cpu(s): 0.1%us, 0.1%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st


   

Reply With Quote
  #3  
Unread 09-15-2015, 05:52 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

#> mpstat


mpstat command to display the utilization of each CPU individually on SMP (Multiple CPU) system


   

Reply With Quote
  #4  
Unread 09-15-2015, 05:52 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

mpstat -P ALL


The mpstat command can be used both on SMP and UP machines,
but in the latter, only global average activities will be printed.


   

Reply With Quote
  #5  
Unread 09-15-2015, 05:53 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

#> sar


display today’s CPU activity


   

Reply With Quote
  #6  
Unread 09-15-2015, 05:55 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

Displays the top 10 CPU users on the Linux system:

ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10

or

ps -eo pcpu,pid,user,args | sort -r -k1 | less
(showing all)


   

Reply With Quote
  #7  
Unread 09-15-2015, 05:56 AM
Lila Lila is offline
Administrator
 
Join Date: Nov 2007
Posts: 320
Default

Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions:

iostat


   

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT. The time now is 02:57 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
DebugQ - Debug Quote - De:Bug:Q