Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Command to View Processor Usage


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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:
# 2  
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:
# 4  
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  
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
Command to display the space usage (memory usage) of a specific directory.
abhisheksunkari
Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i...... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
how can I find cpu usage memory usage swap usage and logical volume usage
alert0919
how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to...... HP-UX
3
HP-UX
OBP command to enable/disable a processor
younus_syed
Hello experts.. How can i enable or disable a processor from OBP(OK prompt)? Thanks in advance...... Solaris
8
Solaris
LPAR processor/virtual processor settings
guttew
Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities. Environment is a 8-way p570 with 4 LPARs. lparVIO1 and lparVIO2: AIX 5300-04-01 Mode/Type= Shared-SMT/Capped Minimum Processors= 0.10 Desired Processors= 0.50 Maximum...... AIX
1
AIX
How can I see the processor usage in Unix??
Erik Rooijmans
Could anybody tell me which command I should use to see how many percentage or something from the processor is used by various programs? Thanx in Advance! Erik:D... UNIX for Dummies Questions & Answers
4
UNIX for Dummies Questions & Answers

Featured Tech Videos