source: general/sysutils/sysstat.xml@ fb89293

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 fb89293 was b058cd3, checked in by Randy McMurchy <randy@…>, 14 years ago

Updated to Sysstat-9.0.6

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

  • Property mode set to 100644
File size: 11.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 "e069daf192d259de905d7f8cdd85dc4e">
10 <!ENTITY sysstat-size "244 KB">
11 <!ENTITY sysstat-buildsize "4 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 </sect1info>
22
23 <title>Sysstat-&sysstat-version;</title>
24
25 <indexterm zone="sysstat">
26 <primary sortas="a-Sysstat">Sysstat</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Sysstat</title>
31
32 <para>The <application>Sysstat</application> package contains utilities
33 to monitor system performance and usage activity.
34 <application>Sysstat</application> contains the <command>sar</command>
35 utility, common to many commercial Unixes, and tools you can schedule via
36 cron to collect and historize performance and activity data.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &sysstat-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &sysstat-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &sysstat-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &sysstat-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
61
62 <para>There are no build-time requirements for this package; however,
63 it is designed to be controlled by a cron daemon such as
64 <xref linkend="fcron"/>.</para>
65
66 <!-- <bridgehead renderas="sect4">Recommended</bridgehead>
67 <para role="recommended"><xref linkend="fcron"/></para> -->
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/sysstat"/></para>
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of Sysstat</title>
76
77 <para>Install <application>Sysstat</application> by running the
78 following commands:</para>
79
80<!-- <screen><userinput>make config &amp;&amp;
81make</userinput></screen> -->
82
83<screen><userinput>sa_lib_dir=/usr/lib/sa sa_dir=/var/log/sa conf_dir=/etc/sysconfig \
84 ./configure --prefix=/usr \
85 --disable-man-group &amp;&amp;
86make</userinput></screen>
87
88 <para>This package does not come with a test suite.</para>
89
90 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
91
92<screen role="root"><userinput>make install</userinput></screen>
93
94<!-- install -v -m644 sysstat.sysconfig /etc/sysconfig/sysstat</userinput></screen> -->
95
96 </sect2>
97
98 <sect2 role="commands">
99 <title>Command Explanations</title>
100
101 <!-- <para><command>make config</command>: Runs the interactive configuration
102 process. The first question prompts you for an
103 <quote><computeroutput>Installation directory</computeroutput></quote>.
104 Reply with <filename class="directory">/usr</filename>, as this is
105 equivalent to <application>Autoconf</application>'s
106 <option>-prefix=/usr</option> parameter to <command>configure</command>.
107 For all other prompts, you may press <keycap>Enter</keycap> to accept the
108 (very sane) defaults. When prompted for <quote><computeroutput>Number of
109 daily data files to keep: [7]</computeroutput></quote>, you may wish to
110 keep a larger number of files.</para> -->
111
112 <para><envar>sa_lib_dir</envar>: This environment variable specifies the
113 location of the package-specific library directory.</para>
114
115 <para><envar>sa_dir</envar>: This environment variable specifies the
116 location of the directory containing the data files.</para>
117
118 <para><envar>conf_dir</envar>: This environment variable specifies the
119 location of the system configuration directory.</para>
120
121 <para><parameter>--disable-man-group</parameter>: This parameter causes
122 the installation to ignore the man group variable resulting in the man
123 files having
124 <systemitem class="username">root</systemitem>:<systemitem class="groupname">root</systemitem>
125 ownership.</para>
126
127 <para>Run <command>./configure --help</command> to see other influential
128 environment variables you can pass to <command>configure</command>. You may
129 want to use the <envar>history</envar> and <envar>compressafter</envar>
130 variables to customize the amount of data files kept on the system.</para>
131
132 </sect2>
133
134 <sect2 role="configuration">
135 <title>Configuring Sysstat</title>
136
137 <sect3>
138 <title>Cron Information</title>
139
140 <para>To begin gathering <application>Sysstat</application> history
141 information, you must add to, or create a privileged user's crontab. The
142 history data location is
143 <filename class="directory">/var/log/sa</filename>. The user running
144 <application>Sysstat</application> utilities via cron must have write
145 access to this location.</para>
146
147 <para>Below is an example of what to install in the crontab. Adjust the
148 parameters to suit your needs. Use <command>man sa1</command> and
149 <command>man sa2</command> for information about the commands.</para>
150
151<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1520 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
153
154# 7pm-8am activity reports every hour during weekdays
1550 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
156
157# Activity reports every hour on Saturday and Sunday
1580 * * * 0,6 /usr/lib/sa/sa1 &amp;
159
160# Daily summary prepared at 19:05
1615 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
162
163 <para>Ensure you submit the revised crontab to the cron daemon.</para>
164
165 </sect3>
166
167 <sect3 id="sysstat-init">
168 <title>System Startup Information</title>
169
170 <indexterm zone="sysstat sysstat-init">
171 <primary sortas="f-sysstat">sysstat</primary>
172 </indexterm>
173
174 <para>At system startup, a LINUX RESTART message must be inserted in the
175 daily data file to reinitialize the kernel counters. This can be
176 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
177 init script included in the <xref linkend="bootscripts"/>
178 package using the following command as the
179 <systemitem class="username">root</systemitem> user:</para>
180
181<screen role="root"><userinput>make install-sysstat</userinput></screen>
182
183 </sect3>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Programs</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Directories</segtitle>
194
195 <seglistitem>
196 <seg>iostat, isag, mpstat, pidstat, sa1, sa2, sadc, sadf and sar</seg>
197 <seg>None</seg>
198 <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
199 /var/log/sa</seg>
200 </seglistitem>
201 </segmentedlist>
202
203 <variablelist>
204 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
205 <?dbfo list-presentation="list"?>
206 <?dbhtml list-presentation="table"?>
207
208 <varlistentry id="iostat">
209 <term><command>iostat</command></term>
210 <listitem>
211 <para>reports CPU statistics and input/output
212 statistics for devices and partitions.</para>
213 <indexterm zone="sysstat iostat">
214 <primary sortas="b-iostat">iostat</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="isag">
220 <term><command>isag</command></term>
221 <listitem>
222 <para>is an Interactive System Activity Grapher.</para>
223 <indexterm zone="sysstat isag">
224 <primary sortas="b-isag">isag</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="mpstat">
230 <term><command>mpstat</command></term>
231 <listitem>
232 <para>reports individual or combined processor related
233 statistics.</para>
234 <indexterm zone="sysstat mpstat">
235 <primary sortas="b-mpstat">mpstat</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="pidstat">
241 <term><command>pidstat</command></term>
242 <listitem>
243 <para>is used for monitoring individual tasks currently being managed
244 by the Linux kernel.</para>
245 <indexterm zone="sysstat pidstat">
246 <primary sortas="b-pidstat">pidstat</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="sar">
252 <term><command>sar</command></term>
253 <listitem>
254 <para> collects, reports and saves system activity
255 information.</para>
256 <indexterm zone="sysstat sar">
257 <primary sortas="b-sar">sar</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="sa1">
263 <term><command>sa1</command></term>
264 <listitem>
265 <para>collects and stores binary data in the system activity daily
266 data file. It is a front end to <filename>sadc</filename> designed
267 to be run from cron.</para>
268 <indexterm zone="sysstat sa1">
269 <primary sortas="b-sa1">sa1</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="sa2">
275 <term><command>sa2</command></term>
276 <listitem>
277 <para>writes a summarized daily activity report. It is a front end
278 to <command>sar</command> designed to be run from cron.</para>
279 <indexterm zone="sysstat sa2">
280 <primary sortas="b-sa2">sa2</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="sadc">
286 <term><command>sadc</command></term>
287 <listitem>
288 <para>is the system activity data collector, used as a backend for
289 <command>sar</command>.</para>
290 <indexterm zone="sysstat sadc">
291 <primary sortas="b-sadc">sadc</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="sadf">
297 <term><command>sadf</command></term>
298 <listitem>
299 <para>is used for displaying the contents of data files created by
300 the <command>sar</command> command. But unlike
301 <command>sar</command>, <command>sadf</command> can write its data
302 in many different formats.</para>
303 <indexterm zone="sysstat sadf">
304 <primary sortas="b-sadf">sadf</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
312
313</sect1>
Note: See TracBrowser for help on using the repository browser.