Hello and welcome to this video on Oracle Linux 8.
In this video, I will cover Oracle Linux 8's mpstat utility
For our objectives today and after viewing this video, you should be able to:
Describe the mpstat utility
Explain running mpstat and reviewing processor statistics
Describe running processor reports in intervals
And finally, you should be able to explain monitoring a system continuously for a number
of times.
The mpstat command is used for collecting and displaying performance statistics for
all logical CPUs in the system.
When a CPU is occupied by a process, it is unavailable for processing other requests.
These other processes must wait until the CPU is free.
The mpstat command provides CPU usage to help you identify CPU-related performance problems.
First, as root run the mpstat command.
As you can see, the first line displays the Linux kernel version, host name, current date,
architecture, and number of
CPUs on your system.
The first column is a time stamp.
The remaining columns are defined as follows:
CPU is the processor designated by the number starting at 0.
The keyword all indicates that statistics are calculated as averages among all processors.
%user is the percentage of CPU used while executing applications at the user level.
%nice is the percentage of CPU used while executing at the user level with nice priority.
%sys is the percentage of CPU used while executing at the system (kernel) level.
This does not include time spent servicing hardware and software interrupts.
%iowait is the percentage of time the CPU(s) were idle while the system had an outstanding
disk I/O request
&irq is the percentage of time spent by the CPUs to service hardware interrupts
%soft is the percentage of time spent by the CPUs to service software interrupts
%steal is the percentage of time spent in involuntary wait by the virtual CPU or CPUs
while the hypervisor was
servicing another virtual processor.
%guest is the percentage of time spent by the CPUs to run a virtual processor.
%gnice is the percentage of time spend by the CPUs to run a niced guest.
And %idle is the percentage of time that the CPU was (or the CPUs were) idle and the system
did not have an outstanding disk I/O request.
mpstat allows multiple reports to run at different intervals using the form: mpstat interval
count.
If no arguments are included, the report displays a single report for at that moment.
If you omit the count argument, the report runs at intervals continuously.
The following example displays a report every 3 seconds until terminated by pressing control
+ c
To report all processors include the option -P and the keyword ALL as follows
This command displays 5 separate reports at 2 second intervals of all processors and includes
an average line.
After watching this video, you should now be able to:
Describe the mpstat utility
Explain running mpstat and reviewing processor statistics
Describe running processor reports in intervals
And finally, you should now be able to explain monitoring a system continuously for a number
of times.
Oracle provides an extensive number of resources which you can use to learn more about this
subject and others.
Look for additional videos on Oracle Linux 8 ond other topics using the links shown.
This concludes the video.
Thank you for watching.