• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS Service ‘sysstat’

by admin

Service Name

sysstat

Description

The sysstat service (/etc/init.d/sysstat) is responsible for the regular collection of system performance information. Through the use of cron and sadc (System Activity data collector), sysstat gathers sar data (/var/log/sa/) at 10 minute intervals daily. The service has little impact on overall server performance. The default sysstat configuration (/etc/sysconfig/sysstat) overwrites collected performance information every 7 days. Sysstat is provided as part of the sysstat package – it also provides useful system performance gathering utilities including; mpstat, iostat and sar.

Configuration

Default sysstat configuration file is /etc/sysconfig/sysstat. Below is the sample configuration file.

# cat /etc/sysconfig/sysstat
# sysstat-9.0.4 configuration file.

# How long to keep log files (in days).
# If value is greater than 28, then log files are kept in
# multiple directories, one for each month.
HISTORY=28

# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=31

# Parameters for the system activity data collector (see sadc manual page)
# which are used for the generation of log files.
SADC_OPTIONS="-S DISK"

# Compression program to use.
ZIP="bzip2"

Deafult sysstat cron tab file is /etc/cron.d/sysstat. The sample cron file is shown below.

# cat /etc/cron.d/sysstat
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. ipcmk: command not found
  2. How to Configure Existing Lvm Volume Group to Use DM-Multipath
  3. e2image: command not found
  4. larasail Command Examples in Linux
  5. apache2ctl Command Examples in Linux
  6. tune2fs: command not found
  7. feedreader Command Examples in Linux
  8. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on LVM device
  9. nova Command Examples in Linux
  10. dd Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright