source: general/sysutils/sysstat.xml@ f384a9d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f384a9d was f384a9d, checked in by Randy McMurchy <randy@…>, 20 years ago

Added new package Sysstat-5.0.5, updated Glossary

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2386 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sysstat-download-http "http://perso.wanadoo.fr/sebastien.godard/sysstat-5.0.5.tar.gz">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-5.0.5.tar.gz">
9 <!ENTITY sysstat-size "123 KB">
10 <!ENTITY sysstat-buildsize "1.2 MB">
11 <!ENTITY sysstat-time ".12 SBU">
12]>
13
14<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
15<?dbhtml filename="sysstat.html"?>
16<title>Sysstat-&sysstat-version;</title>
17
18<sect2>
19<title>Introduction to <application>Sysstat</application></title>
20
21<para>The <application>Sysstat</application> package contains utilities to
22monitor system performance and usage activity.
23<application>Sysstat</application> contains the <command>sar</command> utility,
24common to many commercial Unixes, and tools you can schedule via cron to collect
25and historize performance and activity data.</para>
26
27<sect3><title>Package information</title>
28<itemizedlist spacing='compact'>
29<listitem><para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para></listitem>
30<listitem><para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para></listitem>
31<listitem><para>Download size: &sysstat-size;</para></listitem>
32<listitem><para>Estimated Disk space required: &sysstat-buildsize;</para></listitem>
33<listitem><para>Estimated build time: &sysstat-time;</para></listitem></itemizedlist>
34</sect3>
35
36<sect3><title><application>Sysstat</application> dependencies</title>
37<sect4><title>Recommended</title>
38<para><xref linkend="fcron"/></para></sect4>
39</sect3>
40
41</sect2>
42
43<sect2>
44<title>Installation of <application>Sysstat</application></title>
45
46<para>Install <application>Sysstat</application> by running the
47following commands:</para>
48
49<screen><userinput><command>make config &amp;&amp;
50make &amp;&amp;
51make install</command></userinput></screen>
52
53</sect2>
54
55<sect2>
56<title>Command explanations</title>
57
58<para><command>make config</command>: Runs the interactive configuration
59process. The first question prompts you for an "Installation directory".
60Reply with <filename class="directory">/usr</filename>, as this is equivalent
61to <application>Autoconf</application>'s <parameter>--prefix=/usr</parameter>
62parameter to <command>configure</command>. For all other prompts, you may
63press <command>Enter</command> to accept the (very sane) defaults.</para>
64
65</sect2>
66
67<sect2>
68<title>Configuring <application>Sysstat</application></title>
69
70<sect3><title>Cron information</title>
71
72<para>To begin gathering <application>Sysstat</application> history information,
73you must add to, or create a privileged user's crontab. The default history
74data location is <filename class="directory">/var/log/sa</filename>. The user
75running <application>Sysstat</application> utilities via cron must have write
76access to this location.</para>
77
78<para>Below is an example of what to install in the crontab. Adjust the
79parameters to suit your needs. Use <command>man sa1</command> and
80<command>man sa2</command> for information about the commands.</para>
81
82<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
830 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
84
85# 7pm-8am activity reports every hour during weekdays
860 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
87
88# Activity reports every hour on Saturday and Sunday
890 * * * 0,6 /usr/lib/sa/sa1 &amp;
90
91# Daily summary prepared at 19:05
925 19 * * * /usr/lib/sa/sa2 -A &amp;</userinput></screen>
93
94<para>Ensure you submit the revised crontab to the cron daemon.</para>
95</sect3>
96
97<sect3><title>Startup script information</title>
98
99<para>At system startup, a LINUX RESTART message must be inserted in the daily
100data file to reinitialize the kernel counters. Create a
101<filename>sysstat</filename> bootscript to accomplish this using the following
102commands:</para>
103
104<screen><userinput><command>cat &gt; /etc/rc.d/init.d/sysstat &lt;&lt; "EOF"</command>
105#!/bin/sh
106# Begin $rc_base/init.d/sysstat
107
108# Based on sysklogd script from LFS-3.1 and earlier.
109# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
110
111. /etc/sysconfig/rc
112. $rc_functions
113
114case "$1" in
115 start)
116 echo "Calling the system activity data collector (sadc)..."
117 /usr/lib/sa/sadc -F -L -
118 evaluate_retval
119 ;;
120
121 restart)
122 echo "Calling the system activity data collector (sadc)..."
123 /usr/lib/sa/sadc -F -L -
124 evaluate_retval
125 ;;
126 *)
127 echo "Usage: $0 {start|restart}"
128 exit 1
129 ;;
130esac
131
132# End $rc_base/init.d/sysstat
133<command>EOF
134chmod 754 /etc/rc.d/init.d/sysstat</command></userinput></screen>
135
136<para>The <filename>sysstat</filename> bootscript only needs to run at
137system startup, therefore only one symlink is required. Create this symlink in
138<filename class="directory">/etc/rc.d/rcsysinit.d</filename> using the following
139command:</para>
140
141<screen><userinput><command>ln -sf ../init.d/sysstat /etc/rc.d/rcsysinit.d/S85sysstat</command></userinput></screen>
142</sect3>
143
144</sect2>
145
146<sect2>
147<title>Contents</title>
148
149<para>The <application>Sysstat</application> package contains
150<command>iostat</command>,
151<command>mpstat</command>,
152<command>sar</command>,
153<filename>sa1</filename>,
154<filename>sa2</filename> and
155<filename>sadc</filename>.</para>
156
157</sect2>
158
159<sect2><title>Description</title>
160
161<sect3><title>iostat</title>
162<para><command>iostat</command> reports <acronym>CPU</acronym> statistics and
163input/output statistics for devices and partitions.</para></sect3>
164
165<sect3><title>mpstat</title>
166<para><command>mpstat</command> reports individual or combined processor
167related statistics.</para></sect3>
168
169<sect3><title>sar</title>
170<para><command>sar</command> collects, reports and saves system activity
171information.</para></sect3>
172
173<sect3><title>sa1</title>
174<para><filename>sa1</filename> collects and stores binary data in the system
175activity daily data file. It is a front end to <filename>sadc</filename>
176designed to be run from cron.</para></sect3>
177
178<sect3><title>sa2</title>
179<para><filename>sa2</filename> writes a summarized daily activity report. It
180is a front end to <command>sar</command> designed to be run from
181cron.</para></sect3>
182
183<sect3><title>sadc</title>
184<para><filename>sadc</filename> is the system activity data collector, used as
185a backend for <command>sar</command>.</para></sect3>
186
187</sect2>
188
189</sect1>
Note: See TracBrowser for help on using the repository browser.