source: general/sysutils/sysstat.xml@ fc0589b

gnome
Last change on this file since fc0589b was 201fca3d, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added systemd notes to fcron gpm sysstat and udev-extras pages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/gnome@13395 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.6 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.xz">
8 <!ENTITY sysstat-download-ftp " ">
9 <!ENTITY sysstat-md5sum "85635dedac6802104a5737195d4effee">
10 <!ENTITY sysstat-size "284 KB">
11 <!ENTITY sysstat-buildsize "6.4 MB">
12 <!ENTITY sysstat-time "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 &lfs75_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 <para condition="html" role="usernotes">User Notes:
69 <ulink url="&blfs-wiki;/sysstat"/></para>
70
71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of Sysstat</title>
75
76 <para>Install <application>Sysstat</application> by running the
77 following commands:</para>
78
79<screen><userinput>sa_lib_dir=/usr/lib/sa \
80sa_dir=/var/log/sa \
81conf_dir=/etc/sysconfig \
82./configure --prefix=/usr \
83 --disable-man-group &amp;&amp;
84make</userinput></screen>
85
86 <para>This package does not come with a test suite.</para>
87
88 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
89
90<screen role="root"><userinput>make install</userinput></screen>
91
92 </sect2>
93
94 <sect2 role="commands">
95 <title>Command Explanations</title>
96
97 <para><envar>sa_lib_dir</envar>: This environment variable specifies the
98 location of the package-specific library directory.</para>
99
100 <para><envar>sa_dir</envar>: This environment variable specifies the
101 location of the directory containing the data files.</para>
102
103 <para><envar>conf_dir</envar>: This environment variable specifies the
104 location of the system configuration directory.</para>
105
106 <para><parameter>--disable-man-group</parameter>: This parameter causes
107 the installation to ignore the man group variable resulting in the man
108 files having
109 <systemitem class="username">root</systemitem>:<systemitem class="groupname">root</systemitem>
110 ownership.</para>
111
112 <note><para>Run <command>./configure --help</command> to see other influential
113 environment variables you can pass to <command>configure</command>. You may
114 want to use the <envar>history</envar> and <envar>compressafter</envar>
115 variables to customize the amount of data files kept on the system.</para></note>
116
117 </sect2>
118
119 <sect2 role="configuration">
120 <title>Configuring Sysstat</title>
121
122 <sect3 id="sysstat-config">
123 <title>Config Files</title>
124
125 <para>
126 <filename>/etc/sysconfig/sysstat</filename> and
127 <filename>/etc/sysconfig/sysstat.ioconf</filename>
128 </para>
129
130 <indexterm zone="sysstat sysstat-config">
131 <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
132 </indexterm>
133 <indexterm zone="sysstat sysstat-config">
134 <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
135 </indexterm>
136
137 </sect3>
138
139 <sect3>
140 <title>Cron Information</title>
141
142 <para>To begin gathering <application>Sysstat</application> history
143 information, you must add to, or create a privileged user's crontab. The
144 history data location is
145 <filename class="directory">/var/log/sa</filename>. The user running
146 <application>Sysstat</application> utilities via cron must have write
147 access to this location.</para>
148
149 <para>Below is an example of what to install in the crontab. Adjust the
150 parameters to suit your needs. Use <command>man sa1</command> and
151 <command>man sa2</command> for information about the commands.</para>
152
153<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1540 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
155
156# 7pm-8am activity reports every hour during weekdays
1570 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
158
159# Activity reports every hour on Saturday and Sunday
1600 * * * 0,6 /usr/lib/sa/sa1 &amp;
161
162# Daily summary prepared at 19:05
1635 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
164
165 <para>Ensure you submit the revised crontab to the cron daemon.</para>
166
167 </sect3>
168
169 <sect3 id="sysstat-init">
170 <title>System Startup Information</title>
171
172 <indexterm zone="sysstat sysstat-init">
173 <primary sortas="f-sysstat">sysstat</primary>
174 </indexterm>
175
176 <para>At system startup, a LINUX RESTART message must be inserted in the
177 daily data file to reinitialize the kernel counters. This can be
178 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
179 init script included in the <xref linkend="bootscripts"/>
180 package using the following command as the
181 <systemitem class="username">root</systemitem> user:</para>
182
183<screen role="root"><userinput>make install-sysstat</userinput></screen>
184
185 </sect3>
186
187 <sect3 id="sysstat-init-systemd">
188 <title>Systemd Unit File</title>
189
190 <indexterm zone="sysstat sysstat-init-systemd">
191 <primary sortas="f-sysstat">sysstat</primary>
192 </indexterm>
193
194 <para>
195 This package provides systemd unit in the source tarball. To install it,
196 run the following commands as the
197 <systemitem class="username">root</systemitem> user:
198 </para>
199
200 <para>Install the service</para>
201<screen role="root">
202<userinput>
203install -v -m644 sysstat.service /lib/systemd/system/sysstat.service
204</userinput></screen>
205
206 <para>Enable the service</para>
207<screen role="root">
208<userinput>
209systemctl enable sysstat
210</userinput></screen>
211
212 </sect3>
213
214 </sect2>
215
216 <sect2 role="content">
217 <title>Contents</title>
218
219 <segmentedlist>
220 <segtitle>Installed Programs</segtitle>
221 <segtitle>Installed Libraries</segtitle>
222 <segtitle>Installed Directories</segtitle>
223
224 <seglistitem>
225 <seg>cifsiostat, iostat, mpstat, nfsiostat-sysstat, pidstat, sadf,
226 and sar</seg>
227 <seg>None</seg>
228 <seg>/usr/lib/sa,
229 /usr/share/doc/sysstat-&sysstat-version; and,
230 /var/log/sa
231 </seg>
232 </seglistitem>
233 </segmentedlist>
234
235 <variablelist>
236 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
237 <?dbfo list-presentation="list"?>
238 <?dbhtml list-presentation="table"?>
239
240 <varlistentry id="cifsiostat">
241 <term><command>cifsiostat</command></term>
242 <listitem>
243 <para>displays statistics about read and write operations on CIFS
244 filesystems.</para>
245 <indexterm zone="sysstat cifsiostat">
246 <primary sortas="b-cifsiostat">cifsiostat</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="iostat">
252 <term><command>iostat</command></term>
253 <listitem>
254 <para>reports CPU statistics and input/output
255 statistics for devices and partitions.</para>
256 <indexterm zone="sysstat iostat">
257 <primary sortas="b-iostat">iostat</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="mpstat">
263 <term><command>mpstat</command></term>
264 <listitem>
265 <para>writes activities for each available processor.</para>
266 <indexterm zone="sysstat mpstat">
267 <primary sortas="b-mpstat">mpstat</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="nfsiostat">
273 <term><command>nfsiostat-sysstat</command></term>
274 <listitem>
275 <para>displays statistics about read and write operations on NFS
276 filesystems.</para>
277 <indexterm zone="sysstat nfsiostat">
278 <primary sortas="b-nfsiostat">nfsiostat</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="pidstat">
284 <term><command>pidstat</command></term>
285 <listitem>
286 <para>is used for monitoring individual tasks currently being managed
287 by the Linux kernel.</para>
288 <indexterm zone="sysstat pidstat">
289 <primary sortas="b-pidstat">pidstat</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="sadf">
295 <term><command>sadf</command></term>
296 <listitem>
297 <para>is used for displaying the contents of data files created by
298 the <command>sar</command> command. But unlike
299 <command>sar</command>, <command>sadf</command> can write its data
300 in many different formats.</para>
301 <indexterm zone="sysstat sadf">
302 <primary sortas="b-sadf">sadf</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="sar">
308 <term><command>sar</command></term>
309 <listitem>
310 <para>is used for displaying the contents of elected cumulative activity
311 counters in the operating system.</para>
312 <indexterm zone="sysstat sar">
313 <primary sortas="b-sar">sar</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 </variablelist>
319
320 </sect2>
321
322</sect1>
Note: See TracBrowser for help on using the repository browser.