Introduction to using Sar under Linux
SubmitMy message
Load in
have left a message
Introduction
The Sar was first implemented in the Salaris UNIX system and later migrated to most of the other UNIX systems (such as AIX,HP-UX, etc.). Linux also has a French-written sysstat that implements the functionality of this tool.
Its principle is to use cron to schedule a program regularly, collect the current system performance indicators, stored in the binary file.
Installation
You can download the source code, compile your own installation, or install a binary package. RHEL system is installed by default.
Key Features
Support Features:
- Almost all of the system performance data can be collected.
- You can configure the retention time for historical data.
- Collection performance data can be exported from binary files into different format files (CSV, XML, JSON, etc.).
- Performance data can be plotted, and there are a number of third-party tools that bring their own isag.
Configuration
Modify historical Data Retention time:
vi /etc/sysconfig/sysstat # redhatvi /etc/default/sysstat # debianHISTORY=90 # 表示保留90天的历史数据
Modify the performance data collection frequency (that is, modify cron schedule frequency), the default is 10 minutes once:
vi /etc/cron.d/sysstat
Export
Supports performance data export in various formats:
sdaf -d # CSVsadf -x # XMLsadf -j # JSON
Drawing
The drawing can use ISAG. It has a graphical interface and is very easy to use. Although the drawing is rather ugly, it is enough.
Other drawing programs that use SYSSTAT data:
- Sysstatgraph uses PHP and HTML5 Canvas technology.
Read
ComplaintsFeatured Message
Follow the public number to participate in the message
Write a message
Follow the public number to participate in the message
Write a message
Load inThe above message is screened by the public number and displayed
Learn more about message features
Sweep
Follow the public number
From for notes (Wiz)
Introduction to using Sar under Linux