Forrest logo
tool overview
On this page you find all important commands for the CLI tool mpstat. If the command you are looking for is missing please ask our AI.

mpstat

MPSTAT is a command-line tool in Linux used to monitor CPU usage and statistics. It stands for "Multiple Processor Statistics." By default, mpstat displays the average CPU usage since the system booted, but it can also provide real-time statistics when provided with the interval. The tool provides information about CPU utilization, individual processor usage, and other relevant data, assisting administrators in analyzing system performance. It displays metrics such as user, system, idle, and wait time for each processor. Additionally, it includes details about context switching, interrupt statistics, and CPU frequency. Mpstat is particularly useful for monitoring CPU performance in multi-processor systems or virtualized environments where CPU utilization is crucial to maintain optimal performance.

List of commands for mpstat:

  • mpstat:tldr:96dcc mpstat: Display CPU statistics every 2 seconds.
    $ mpstat ${2}
    try on your machine
    explain this command
  • mpstat:tldr:9e249 mpstat: Display 5 reports, one by one, from a given processor, at 2 second intervals.
    $ mpstat -P ${0} ${2} ${5}
    try on your machine
    explain this command
  • mpstat:tldr:d3b3b mpstat: Display 5 reports, one by one, at 2 second intervals.
    $ mpstat ${2} ${5}
    try on your machine
    explain this command
tool overview