source: general/sysutils/sysstat.xml@ 5254d12

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 5254d12 was 5254d12, checked in by Randy McMurchy <randy@…>, 18 years ago

Standardized the id tag name of the Bootscripts package

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

  • Property mode set to 100644
File size: 9.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "99ed143d7e753f0b2220baa115859b44">
10 <!ENTITY sysstat-size "120 KB">
11 <!ENTITY sysstat-buildsize "1.9 MB">
12 <!ENTITY sysstat-time "less than 0.1 SBU">
13]>
14
15<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
16 <?dbhtml filename="sysstat.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">sysstat-&sysstat-version;.tar</keyword>
23 <keyword role="ftpdir">sysstat</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Sysstat-&sysstat-version;</title>
28
29 <indexterm zone="sysstat">
30 <primary sortas="a-Sysstat">Sysstat</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Sysstat</title>
35
36 <para>The <application>Sysstat</application> package contains utilities
37 to monitor system performance and usage activity.
38 <application>Sysstat</application> contains the <command>sar</command>
39 utility, common to many commercial Unixes, and tools you can schedule via
40 cron to collect and historize performance and activity data.</para>
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &sysstat-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &sysstat-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &sysstat-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &sysstat-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Recommended</bridgehead>
67 <para role="recommended"><xref linkend="fcron"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of Sysstat</title>
73
74 <para>Install <application>Sysstat</application> by running the
75 following commands:</para>
76
77<screen><userinput>make config &amp;&amp;
78make</userinput></screen>
79
80 <para>This package does not come with a test suite.</para>
81
82 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
83
84<screen role="root"><userinput>make install</userinput></screen>
85
86 </sect2>
87
88 <sect2 role="commands">
89 <title>Command Explanations</title>
90
91 <para><command>make config</command>: Runs the interactive configuration
92 process. The first question prompts you for an
93 <quote><computeroutput>Installation directory</computeroutput></quote>.
94 Reply with <filename class="directory">/usr</filename>, as this is
95 equivalent to <application>Autoconf</application>'s
96 <option>--prefix=/usr</option> parameter to <command>configure</command>.
97 For all other prompts, you may press <keycap>Enter</keycap> to accept the
98 (very sane) defaults. When prompted for <quote><computeroutput>Number of
99 daily data files to keep: [7]</computeroutput></quote>, you may wish to
100 keep a larger number of files. However, don't exceed 25 because
101 <application>Sysstat</application> will resuse existing files the next
102 month, leading to erroneous daily reports.</para>
103
104 </sect2>
105
106 <sect2 role="configuration">
107 <title>Configuring Sysstat</title>
108
109 <sect3>
110 <title>Cron Information</title>
111
112 <para>To begin gathering <application>Sysstat</application> history
113 information, you must add to, or create a privileged user's crontab. The
114 default history data location is
115 <filename class="directory">/var/log/sa</filename>. The user running
116 <application>Sysstat</application> utilities via cron must have write
117 access to this location.</para>
118
119 <para>Below is an example of what to install in the crontab. Adjust the
120 parameters to suit your needs. Use <command>man sa1</command> and
121 <command>man sa2</command> for information about the commands.</para>
122
123<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1240 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
125
126# 7pm-8am activity reports every hour during weekdays
1270 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
128
129# Activity reports every hour on Saturday and Sunday
1300 * * * 0,6 /usr/lib/sa/sa1 &amp;
131
132# Daily summary prepared at 19:05
1335 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
134
135 <para>Ensure you submit the revised crontab to the cron daemon.</para>
136
137 </sect3>
138
139 <sect3 id="sysstat-init">
140 <title>System Startup Information</title>
141
142 <indexterm zone="sysstat sysstat-init">
143 <primary sortas="f-sysstat">sysstat</primary>
144 </indexterm>
145
146 <para>At system startup, a LINUX RESTART message must be inserted in the
147 daily data file to reinitialize the kernel counters. This can be
148 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
149 init script included in the <xref linkend="bootscripts"/>
150 package using the following command as the
151 <systemitem class="username">root</systemitem> user:</para>
152
153<screen role="root"><userinput>make install-sysstat</userinput></screen>
154
155 </sect3>
156
157 </sect2>
158
159 <sect2 role="content">
160 <title>Contents</title>
161
162 <segmentedlist>
163 <segtitle>Installed Programs</segtitle>
164 <segtitle>Installed Libraries</segtitle>
165 <segtitle>Installed Directories</segtitle>
166
167 <seglistitem>
168 <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
169 <seg>None</seg>
170 <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
171 /var/log/sa</seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="iostat">
181 <term><command>iostat</command></term>
182 <listitem>
183 <para>reports CPU statistics and input/output
184 statistics for devices and partitions.</para>
185 <indexterm zone="sysstat iostat">
186 <primary sortas="b-iostat">iostat</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="mpstat">
192 <term><command>mpstat</command></term>
193 <listitem>
194 <para>reports individual or combined processor related
195 statistics.</para>
196 <indexterm zone="sysstat mpstat">
197 <primary sortas="b-mpstat">mpstat</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="sar">
203 <term><command>sar</command></term>
204 <listitem>
205 <para> collects, reports and saves system activity
206 information.</para>
207 <indexterm zone="sysstat sar">
208 <primary sortas="b-sar">sar</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="sa1">
214 <term><command>sa1</command></term>
215 <listitem>
216 <para>collects and stores binary data in the system activity daily
217 data file. It is a front end to <filename>sadc</filename> designed
218 to be run from cron.</para>
219 <indexterm zone="sysstat sa1">
220 <primary sortas="b-sa1">sa1</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="sa2">
226 <term><command>sa2</command></term>
227 <listitem>
228 <para>writes a summarized daily activity report. It is a front end
229 to <command>sar</command> designed to be run from cron.</para>
230 <indexterm zone="sysstat sa2">
231 <primary sortas="b-sa2">sa2</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="sadc">
237 <term><command>sadc</command></term>
238 <listitem>
239 <para>is the system activity data collector, used as a backend for
240 <command>sar</command>.</para>
241 <indexterm zone="sysstat sadc">
242 <primary sortas="b-sadc">sadc</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="sadf">
248 <term><command>sadf</command></term>
249 <listitem>
250 <para>is used for displaying the contents of data files created by
251 the <command>sar</command> command. But unlike
252 <command>sar</command>, <command>sadf</command> can write its data
253 in many different formats.</para>
254 <indexterm zone="sysstat sadf">
255 <primary sortas="b-sadf">sadf</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 </variablelist>
261
262 </sect2>
263
264</sect1>
Note: See TracBrowser for help on using the repository browser.