Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8. Schedule a Connect

Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8.

Discuss MSP growth, DevOps excellence, and Cloud Transformation. Available for 1:1 meetings, Schedule a Connect

  • DevOps
    Case Study

    How we helped a development company rebuild DevOps for efficiency and scale.

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How a US hosting leader scaled with us!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    Enabling financial grade platforms through strategic cloud modernisation.

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Managed Services Overview
  • Kubernetes Consulting
  • DevOps as a Service
  • Infrastructure Monitoring
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Services
  • Managed Services

aws partneraws advanced partner
LinkedInFacebookXInstagramYouTube
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

SysAdmin Series – Explaining mpstat Command Output

Author Profile
Vinayan C V
  • 4 min read
SysAdmin Series – Explaining mpstat Command Output

Generating audio, please wait...

Sometimes, you might have noticed high load on the CPU even though there is no unusual process running. mpstat is a useful command to monitor the CPU, it would tell you the CPU statistics. How the workload is balanced across the processors, whether a process is single threaded or not etc.

The first processors will signed as CPU 0. The second one will be signed CPU 1 and so on.

[root@server ~]# mpstat
Linux 3.10.0-514.21.2.el7.x86_64 (server.hosting.com) 01/18/2018 _x86_64_ (8 CPU)
12T49T28 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice
%idle 12T49T28 AM all 9.23 0.85 2.71 1.54 0.00 0.03 0.00 0.00 0.00 85.63

all : means All CPUs %usr : show the percentage of CPU utilization that occurred while executing at the user level (application)

%nice : show the percentage of CPU utilization that occurred while executing at the user level with nice priority

%sys : show the percentage of CPU utilization that occurred while executing at the system level (kernel)

%iowait : show the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request

%irq : show the percentage of time spent by the CPU or CPUs to service hardware interrupts

%soft : show the percentage of time spent by the CPU or CPUs to service software interrupts

%steal : show the percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervisor was servicing another virtual processor

%guest : show the percentage of time spent by the CPU or CPUs to run a virtual processor

%idle : show the percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request

The important fields to look at are %user, %sys, %iowait and %idle. Below output lists the CPU usage per core/virtual processor.

Here is some real life examples of the mpstat command.

To view all CPU utilization of processors, use -P ALL parameter.

[root@server ~]# mpstat -P ALL

Linux 3.10.0-514.21.2.el7.x86_64 (server.hosting.com) 01/18/2018 _x86_64_(8 CPU)

12T51T53 AM CPU %usr %nice %sys %iowait %irq %soft %ste%l %guest %gnice
%idle 12T51T53 AM all 9.23 0.85 2.71 1.54 0.00 0.03 0.00 0.00 0.00 85.63
12T51T53 AM 0 5.87 0.66 1.95 0.53 0.00 0.04 0.00 0.00 0.00 90.95
12T51T53 AM 1 10.72 1.26 3.27 0.96 0.00 0.01 0.00 0.00 0.00 83.78
12T51T53 AM 2 7.80 0.97 1.96 0.92 0.00 0.00 0.00 0.00 0.00 88.35
12T51T53 AM 3 9.95 0.85 3.20 0.68 0.00 0.00 0.00 0.00 0.00 85.32
12T51T53 AM 4 14.28 1.84 3.46 5.21 0.00 0.03 0.00 0.00 0.00 75.19
12T51T53 AM 5 10.73 0.58 3.16 1.74 0.00 0.01 0.00 0.00 0.00 83.80
12T51T53 AM 6 7.49 0.42 1.96 1.83 0.00 0.14 0.00 0.00 0.00 88.16
12T51T53 AM 7 7.01 0.24 2.75 0.48 0.00 0.01 0.00 0.00 0.00 89.52

To print CPU utilization by processor, use -P parameter followed by CPU number to see specific CPU utilization.

[root@server ~]# mpstat -P 0
Linux 3.10.0-514.21.2.el7.x86_64 (server.hosting.com) 01/18/2018 _x86_64_ (8 CPU)
12T49T28 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice
%idle 12T49T28 AM 0 9.23 0.85 2.71 1.54 0.00 0.03 0.00 0.00 0.00 85.63

To view CPU utilization per intervals:

[root@server ~]# mpstat 4 3
Linux 3.2.0-57-generic (USERNB01) 12/12/2013 _x86_64_ (2 CPU)
04:27:11 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
04:27:15 PM all 0.67 0.00 0.34 0.00 0.00 0.00 0.00 0.00 98.99
04:27:19 PM all 1.17 0.00 0.33 1.33 0.00 0.00 0.00 0.00 97.17
04:27:23 PM all 0.84 0.00 0.17 0.00 0.00 0.00 0.00 0.00 98.99
Average: all 0.92 0.00 0.25 0.71 0.00 0.00 0.00 0.00 98.12

The above command is to show you 3 reports about CPU utilization with 4 seconds intervals.

Hope this will help you when next time the CPU load goes high.

  • Linux

Amazon ECS Exec to access your containers on AWS Fargate Skip to end of metadata

Amazon ECS Exec to access your containers on AWS Fargate Skip to end of metadata
  • AWS
logo

Amazon SES Suppression List

Amazon SES Suppression List
  • AWS
logo

Azure VmScaleset Alert Configuration

Azure VmScaleset Alert Configuration
  • Linux
logo

EC2 Status check and restart using SSM runbook

EC2 Status check and restart using SSM runbook
  • Linux
logo
SysAdmin Series – Explaining mpstat Command Output

Posts by Vinayan C V

Vinayan C V