Command to View Processor Usage


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 06-04-2018
Command to View Processor Usage

Hi everyone, i used to know the command to show current CPU usage but i cannot remember it. It was not "Top". Openserver 6.
This User Gave Thanks to Paulbas For This Post:
dodona (06-05-2018)
# 2  
Old 06-04-2018
Code:
sar -u 1 10

parameter 1 is interval in seconds, parameter 2 is number to times to report.

or
Code:
ps -A -o "pid=" -o "pcpu=" |awk '$2 > 5 {print $1 " " $2}' | sort -r +1

to list processes in descending order of cpu usage.
This User Gave Thanks to jgt For This Post:
dodona (06-05-2018)
# 4  
Old 06-05-2018
Quote:
Originally Posted by dodona
cat /proc/loadavg
That‘s Linux? Portable is
Code:
uptime

System load is the length of certain queues in the kernel. One of them is the run queue which is CPU related.
# 5  
Old 06-05-2018
Quote:
Originally Posted by jgt
Code:
sar -u 1 10

parameter 1 is interval in seconds, parameter 2 is number to times to report.

or
Code:
ps -A -o "pid=" -o "pcpu=" |awk '$2 > 5 {print $1 " " $2}' | sort -r +1

to list processes in descending order of cpu usage.
Quote:
Originally Posted by MadeInGermany
That‘s Linux? Portable is
Code:
uptime

System load is the length of certain queues in the kernel. One of them is the run queue which is CPU related.
Thank you both! "Uptime" was it, that's what i used to use a while back. But ... sar -u 1 10 is VERY useful as well. I will use this more regularly.

Last edited by Paulbas; 06-05-2018 at 08:47 AM..
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Need to view command in history for specific date scriptor Shell Programming and Scripting 1 10-07-2013 09:26 AM
Can I view an 'at' command? Grueben UNIX for Dummies Questions & Answers 4 12-02-2011 10:36 AM
Command to display the space usage (memory usage) of a specific directory. abhisheksunkari UNIX for Dummies Questions & Answers 2 11-12-2010 04:26 AM
Command to view files in Directory VamsiVasili Shell Programming and Scripting 4 09-23-2009 06:34 PM
Command to view files in Directory VamsiVasili Shell Programming and Scripting 1 09-23-2009 06:08 PM
How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..? laknar AIX 3 07-16-2009 06:35 AM
Command to view folder subfolder and its capacity shivu Shell Programming and Scripting 1 02-02-2009 08:36 AM
command to view the haware detail pchangba1 Solaris 3 01-02-2009 06:04 PM
how can I find cpu usage memory usage swap usage and logical volume usage alert0919 HP-UX 3 12-02-2008 02:38 PM
View command was typed hoavn HP-UX 4 10-11-2008 10:11 PM
OBP command to enable/disable a processor younus_syed Solaris 8 07-07-2008 05:54 PM
LPAR processor/virtual processor settings guttew AIX 1 02-01-2007 01:52 PM
command to view ports being used lawadm1 UNIX for Dummies Questions & Answers 2 09-28-2004 10:51 AM
view page command? JaredsNew UNIX for Dummies Questions & Answers 3 07-17-2003 12:48 AM
How can I see the processor usage in Unix?? Erik Rooijmans UNIX for Dummies Questions & Answers 4 01-29-2002 10:58 AM