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