source: general/sysutils/sysstat.xml@ 155d664f

10.0 10.1 11.0 11.1 11.2 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 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 155d664f was 155d664f, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to Sysstat-5.1.5

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

  • Property mode set to 100644
File size: 7.2 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-&sysstat-version;.tar.bz2">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.bz2">
9 <!ENTITY sysstat-md5sum "075488cbb5979deec0ab05f3ca0c8d12">
10 <!ENTITY sysstat-size "118 KB">
11 <!ENTITY sysstat-buildsize "1.88 MB">
12 <!ENTITY sysstat-time "0.04 SBU">
13]>
14
15<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="sysstat.html"?>
21<title>Sysstat-&sysstat-version;</title>
22<indexterm zone="sysstat">
23<primary sortas="a-Sysstat">Sysstat</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Sysstat</application></title>
27
28<para>The <application>Sysstat</application> package contains utilities to
29monitor system performance and usage activity.
30<application>Sysstat</application> contains the <command>sar</command> utility,
31common to many commercial Unixes, and tools you can schedule via cron to
32collect and historize performance and activity data.</para>
33
34<sect3><title>Package information</title>
35<itemizedlist spacing='compact'>
36<listitem><para>Download (HTTP):
37<ulink url="&sysstat-download-http;"/></para></listitem>
38<listitem><para>Download (FTP):
39<ulink url="&sysstat-download-ftp;"/></para></listitem>
40<listitem><para>Download MD5 sum:
41&sysstat-md5sum;</para></listitem>
42<listitem><para>Download size:
43&sysstat-size;</para></listitem>
44<listitem><para>Estimated disk space required:
45&sysstat-buildsize;</para></listitem>
46<listitem><para>Estimated build time:
47&sysstat-time;</para></listitem></itemizedlist>
48</sect3>
49
50<sect3><title><application>Sysstat</application> dependencies</title>
51<sect4><title>Recommended</title>
52<para><xref linkend="fcron"/></para></sect4>
53</sect3>
54
55</sect2>
56
57<sect2>
58<title>Installation of <application>Sysstat</application></title>
59
60<para>Install <application>Sysstat</application> by running the
61following commands:</para>
62
63<screen><userinput><command>make config &amp;&amp;
64make</command></userinput></screen>
65
66<para>Now, as the root user:</para>
67
68<screen><userinput role='root'><command>make install</command></userinput></screen>
69
70</sect2>
71
72<sect2>
73<title>Command explanations</title>
74
75<para><command>make config</command>: Runs the interactive configuration
76process. The first question prompts you for an
77<quote><computeroutput>Installation directory</computeroutput></quote>. Reply
78with <filename class="directory">/usr</filename>, as
79this is equivalent to <application>Autoconf</application>'s
80<parameter>--prefix=/usr</parameter> parameter to
81<command>configure</command>. For all other prompts, you may
82press <command>Enter</command> to accept the (very sane) defaults. When
83prompted for <quote><computeroutput>Number of daily data files to keep:
84[7]</computeroutput></quote>, you may wish to keep a larger number of files.
85However, don't exceed 25 because <application>Sysstat</application> will
86resuse existing files the next month, leading to erroneous daily
87reports.</para>
88
89</sect2>
90
91<sect2>
92<title>Configuring <application>Sysstat</application></title>
93
94<sect3><title>Cron information</title>
95
96<para>To begin gathering <application>Sysstat</application> history
97information, you must add to, or create a privileged user's crontab. The
98default history data location is
99<filename class="directory">/var/log/sa</filename>. The user running
100<application>Sysstat</application> utilities via cron must have write
101access to this location.</para>
102
103<para>Below is an example of what to install in the crontab. Adjust the
104parameters to suit your needs. Use <command>man sa1</command> and
105<command>man sa2</command> for information about the commands.</para>
106
107<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
1080 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
109
110# 7pm-8am activity reports every hour during weekdays
1110 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
112
113# Activity reports every hour on Saturday and Sunday
1140 * * * 0,6 /usr/lib/sa/sa1 &amp;
115
116# Daily summary prepared at 19:05
1175 19 * * * /usr/lib/sa/sa2 -A &amp;</userinput></screen>
118
119<para>Ensure you submit the revised crontab to the cron daemon.</para>
120</sect3>
121
122<sect3 id="sysstat-init"><title>System startup information</title>
123<indexterm zone="sysstat sysstat-init">
124<primary sortas="f-sysstat">sysstat</primary></indexterm>
125
126<para>At system startup, a LINUX RESTART message must be inserted in the daily
127data file to reinitialize the kernel counters. This can be automated by
128installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
129included in the <xref linkend="intro-important-bootscripts"/> package using
130the following command:</para>
131
132<screen><userinput role='root'><command>make install-sysstat</command></userinput></screen>
133</sect3>
134
135</sect2>
136
137<sect2>
138<title>Contents</title>
139
140<segmentedlist>
141<segtitle>Installed Programs</segtitle>
142<segtitle>Installed Libraries</segtitle>
143<segtitle>Installed Directories</segtitle>
144
145<seglistitem>
146<seg>iostat, mpstat, sar, sa1, sa2 and sadc</seg>
147<seg>None</seg>
148<seg>/usr/lib/sa and /var/log/sa</seg>
149</seglistitem>
150</segmentedlist>
151
152<variablelist>
153<bridgehead renderas="sect3">Short Descriptions</bridgehead>
154<?dbfo list-presentation="list"?>
155
156<varlistentry id="iostat">
157<term><command>iostat</command></term>
158<listitem><para>reports <acronym>CPU</acronym> statistics and input/output
159statistics for devices and partitions.</para>
160<indexterm zone="sysstat iostat">
161<primary sortas="b-iostat">iostat</primary>
162</indexterm></listitem>
163</varlistentry>
164
165<varlistentry id="mpstat">
166<term><command>mpstat</command></term>
167<listitem><para>reports individual or combined processor related
168statistics.</para>
169<indexterm zone="sysstat mpstat">
170<primary sortas="b-mpstat">mpstat</primary>
171</indexterm></listitem>
172</varlistentry>
173
174<varlistentry id="sar">
175<term><command>sar</command></term>
176<listitem><para> collects, reports and saves system activity
177information.</para>
178<indexterm zone="sysstat sar">
179<primary sortas="b-sar">sar</primary>
180</indexterm></listitem>
181</varlistentry>
182
183<varlistentry id="sa1">
184<term><command>sa1</command></term>
185<listitem><para>collects and stores binary data in the system activity daily
186data file. It is a front end to <filename>sadc</filename> designed to be run
187from cron.</para>
188<indexterm zone="sysstat sa1">
189<primary sortas="b-sa1">sa1</primary>
190</indexterm></listitem>
191</varlistentry>
192
193<varlistentry id="sa2">
194<term><command>sa2</command></term>
195<listitem><para>writes a summarized daily activity report. It is a front end
196to <command>sar</command> designed to be run from cron.</para>
197<indexterm zone="sysstat sa2">
198<primary sortas="b-sa2">sa2</primary>
199</indexterm></listitem>
200</varlistentry>
201
202<varlistentry id="sadc">
203<term><command>sadc</command></term>
204<listitem><para>is the system activity data collector, used as a backend for
205<command>sar</command>.</para>
206<indexterm zone="sysstat sadc">
207<primary sortas="b-sadc">sadc</primary>
208</indexterm></listitem>
209</varlistentry>
210</variablelist>
211
212</sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.