Linux system performance and use of activity monitoring tool-Sysstat

Source: Internet
Author: User

Linux system performance and use of activity monitoring tool-Sysstat

Sysstat is indeed a convenient tool for monitoring system resources, system performance, and usage activities. The sysstat package is used more or less in our daily basic tools. It also provides a tool that can use cron for scheduled operation to collect system performance data and activity records.

The following is a list of tools in the sysstat software package:

  • Function list of Sysstat:
  • Iostat: Collects and reports the CPU status and I/O status of your device.
  • Mpstat: monitors and displays CPU details.
  • Pidstat: collects information about the CPU and memory of running processes/tasks.
  • Sar: stores and reports detailed information about different resources (such as CPU, memory, input/output, network, and kernel.
  • Sadc: the active data collector used to collect background data for sar.
  • Sa1: Read and store the binary data of the sadc data file.
  • Sa2: Collaborate with sar to summarize daily reports.
  • Sadf: displays data generated by sar in different formats (CSV or XML.
  • Sysstat: explains the functions of sysstat.
  • Nfsiostat-sysstat: Collects the I/O status data of the Network File System of the NFS protocol.
  • Cifsiostat: Collects the I/O status data of the Network File System of the CIFS protocol.

On April 9, June 17, 2014, SYSSTAT11.0.0 (stable version) was officially released. It brings some new interesting functions, as shown below.

The pidstat command has been enhanced and some command options have been added:

One is "-R", which provides related policies and task scheduling priorities. The second is "-G", which can be used to search for processes by name and obtain a list of all matched threads.

At the same time, the commands sar, sadc, and sadf are also upgraded in terms of data files. Now, you can use option-D to rename the data file to the "saYYYYMMDD" format instead of "saDD". You can also use different directories instead of just "/var/log/sa ". We can also define a new directory for sa1 and sa2 by setting the variables "SA_DIR.

Install Sysstat in Linux

Of course, this "Sysstat" package can be obtained and installed in the package repository of the main Linux release. However, the software package obtained from the software library is a small version and an old version. Therefore, this is why we need to download and install the latest version (11.0.0) on the official website of the software package.

First, use the following link to download the latest version of sysstat software package, or you can use the wget command to download it directly from the terminal.

Http://sebastien.godard.pagesperso-orange.fr/download.html

# Wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz

Next, extract the downloaded software package and enter the directory to start the compilation process.

# Tar-xvf sysstat-11.0.0.tar.gz

# Cd sysstat-11.0.0/

At this step, there are two options:

A) first, you can use the iconfig command (this will allow you to set custom values for each parameter ).

#./Iconfig

B) second, you can use the standard configure command to define the option for a single line. That is, run the./configure-help command to obtain the list of supported options.

#./Configure -- help

[Img] Quit

Here, we use the./configure command as the standard option to compile the sysstat package.

#./Configure

# Make

# Make install

After compilation, you will see the output result similar to the above. Run the following command to verify the version of sysstat.

# Mpstat-V

Sysstat version 11.0.0

(C) Sebastien Godard (sysstat orange. fr)

Update Sysstat in Linux

By default, the software package is stored in the/usr/local directory during compilation and installation. Therefore, all binary/public files are installed in the "/usr/local/bin" directory. If you have installed the sysstat package, you can find those files in "/usr/bin.

If you have installed the sysstat package and the $ PATH variable in your system is not added with "/usr/local/bin", you will not receive any version update notifications. Therefore, during the compilation or deletion of an existing version before the update, make sure that "/usr/local/bin" has been set in the "$ PATH" variable of the system or "/usr" has been configured for the-prefix option.

# Yum remove sysstat [On RedHat based System]

# Apt-get remove sysstat [On Debian based System]

#./Configure -- prefix =/usr

# Make

# Make install

Now, use the same "" mpstat command and "-V" option to confirm the updated version again.

# Mpstat-V

Sysstat version 11.0.0

(C) Sebastien Godard (sysstat orange. fr)

This is the case currently. Next, in the upcoming article, I will show you some practical operation cases and usage of the sysstat command. Coming soon. You are also welcome to leave your thoughts in the comments below.

Monitor Linux parameters through sysstat

Linux System Monitoring Tool sysstat

Linux system performance and use of the activity monitoring tool sysstat

Sysstat details: click here
Sysstat: click here

This article permanently updates the link address:

Related Article

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.