Use of SAR commands under Linux

Source: Internet
Author: User
Tags cpu usage

If the command is not installed, then

Installation yum-y Install Sysstat

SAR [Options] [-A] [-o file] t [n]

T represents the time interval for sampling, n indicates the number of samples, and defaults to 1

File indicates that the output information is saved to a document

1. View CPU Usage

[Email protected] ~]# Sar-u 10 3

Linux 2.6.32-220.el6.x86_64 (SHJZDB4) 08/05/2016 _x86_64_(CPU)


10:12:41 AM CPU%user%nice%system%iowait%steal%idle

10:12:51 AM All 0.17 0.00 0.19 3.95 0.00 95.70

10:13:01 AM all 0.18 0.00 0.22 3.90 0.00 95.70

10:13:11 AM All 0.17 0.00 0.22 3.80 0.00 95.81

Average:all 0.17 0.00 0.21 3.88 0.00 95.74



Use of SAR commands under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.