source: general/sysutils/sysstat.xml@ 3b3a3be

systemd-13485
Last change on this file since 3b3a3be was 3b3a3be, checked in by Douglas R. Reno <renodr@…>, 8 years ago

(both) Add a sed for the GnuTLS Compatibility Library
(both) GCC6 tags
(systemd) LFS79 tags

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

  • Property mode set to 100644
File size: 10.1 KB
RevLine 
[f384a9d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f384a9d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[f1b1c20]7 <!ENTITY sysstat-download-http "http://perso.wanadoo.fr/sebastien.godard/sysstat-&sysstat-version;.tar.xz">
[dc2b407]8 <!ENTITY sysstat-download-ftp " ">
[37191af]9 <!ENTITY sysstat-md5sum "046445d731deda7e4cae18b011629fd2">
10 <!ENTITY sysstat-size "328 KB">
11 <!ENTITY sysstat-buildsize "6.6 MB">
[f1b1c20]12 <!ENTITY sysstat-time "0.1 SBU">
[f384a9d]13]>
14
[880c568]15<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
[eb2cf83a]16 <?dbhtml filename="sysstat.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[880c568]23 <title>Sysstat-&sysstat-version;</title>
[eb2cf83a]24
25 <indexterm zone="sysstat">
[880c568]26 <primary sortas="a-Sysstat">Sysstat</primary>
[eb2cf83a]27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Sysstat</title>
31
[481b3e8]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
[eb2cf83a]36 cron to collect and historize performance and activity data.</para>
37
[3b3a3be]38 &lfs79_checked;&gcc6_checked;
[fdc00738]39
[eb2cf83a]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
[b058cd3]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
[1039de3]68 <para condition="html" role="usernotes">User Notes:
69 <ulink url="&blfs-wiki;/sysstat"/></para>
70
[eb2cf83a]71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of Sysstat</title>
75
[481b3e8]76 <para>Install <application>Sysstat</application> by running the
[eb2cf83a]77 following commands:</para>
78
[fdc00738]79<screen><userinput>sa_lib_dir=/usr/lib/sa \
80sa_dir=/var/log/sa \
81conf_dir=/etc/sysconfig \
82./configure --prefix=/usr \
[ac38e9dc]83 --disable-file-attr &amp;&amp;
[eb2cf83a]84make</userinput></screen>
85
[5ba48e8]86 <para>This package does not come with a test suite.</para>
87
[eb2cf83a]88 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
89
[58a8fab2]90<screen role="root"><userinput>make install</userinput></screen>
91
[47e9f6b0]92 <para>
93 Install the systemd unit by running the following command as the
94 <systemitem class="username">root</systemitem> user:
95 </para>
96
97<screen role="root"><userinput>install -v -m644 sysstat.service /lib/systemd/system/sysstat.service</userinput></screen>
98
[eb2cf83a]99 </sect2>
100
101 <sect2 role="commands">
102 <title>Command Explanations</title>
103
[5a195f0f]104 <para><envar>sa_lib_dir</envar>: This environment variable specifies the
105 location of the package-specific library directory.</para>
106
107 <para><envar>sa_dir</envar>: This environment variable specifies the
108 location of the directory containing the data files.</para>
109
110 <para><envar>conf_dir</envar>: This environment variable specifies the
111 location of the system configuration directory.</para>
112
[ac38e9dc]113 <para><parameter>--disable-file-attr</parameter>: Do not set attributes on
114 files being installed. This parameter causes the installation to ignore the
115 man group variable resulting in the man files having
116 <systemitem class="username">root</systemitem>:
117 <systemitem class="groupname">root</systemitem> ownership.</para>
[5a195f0f]118
[f1b1c20]119 <note><para>Run <command>./configure --help</command> to see other influential
[5a195f0f]120 environment variables you can pass to <command>configure</command>. You may
121 want to use the <envar>history</envar> and <envar>compressafter</envar>
[f1b1c20]122 variables to customize the amount of data files kept on the system.</para></note>
[eb2cf83a]123
124 </sect2>
125
126 <sect2 role="configuration">
127 <title>Configuring Sysstat</title>
128
[f1b1c20]129 <sect3 id="sysstat-config">
130 <title>Config Files</title>
131
132 <para>
133 <filename>/etc/sysconfig/sysstat</filename> and
134 <filename>/etc/sysconfig/sysstat.ioconf</filename>
135 </para>
136
137 <indexterm zone="sysstat sysstat-config">
138 <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
139 </indexterm>
140 <indexterm zone="sysstat sysstat-config">
141 <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
142 </indexterm>
143
144 </sect3>
145
[eb2cf83a]146 <sect3>
147 <title>Cron Information</title>
148
[481b3e8]149 <para>To begin gathering <application>Sysstat</application> history
150 information, you must add to, or create a privileged user's crontab. The
[5a195f0f]151 history data location is
[481b3e8]152 <filename class="directory">/var/log/sa</filename>. The user running
153 <application>Sysstat</application> utilities via cron must have write
[eb2cf83a]154 access to this location.</para>
155
156 <para>Below is an example of what to install in the crontab. Adjust the
157 parameters to suit your needs. Use <command>man sa1</command> and
158 <command>man sa2</command> for information about the commands.</para>
159
160<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
[f384a9d]1610 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
[481b3e8]162
[f384a9d]163# 7pm-8am activity reports every hour during weekdays
1640 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
[481b3e8]165
[f384a9d]166# Activity reports every hour on Saturday and Sunday
1670 * * * 0,6 /usr/lib/sa/sa1 &amp;
[481b3e8]168
[f384a9d]169# Daily summary prepared at 19:05
[eb2cf83a]1705 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
171
172 <para>Ensure you submit the revised crontab to the cron daemon.</para>
173
174 </sect3>
175
176 <sect3 id="sysstat-init">
177 <title>System Startup Information</title>
178
179 <indexterm zone="sysstat sysstat-init">
180 <primary sortas="f-sysstat">sysstat</primary>
181 </indexterm>
182
[5ba48e8]183 <para>At system startup, a LINUX RESTART message must be inserted in the
184 daily data file to reinitialize the kernel counters. This can be
[47e9f6b0]185 automated by enabling the previously installed systemd unit
[932240d]186 by running the following command as the
[5ba48e8]187 <systemitem class="username">root</systemitem> user:</para>
[eb2cf83a]188
[47e9f6b0]189<screen role="root"><userinput>systemctl enable sysstat</userinput></screen>
[eb2cf83a]190
191 </sect3>
192
193 </sect2>
194
195 <sect2 role="content">
196 <title>Contents</title>
197
198 <segmentedlist>
199 <segtitle>Installed Programs</segtitle>
200 <segtitle>Installed Libraries</segtitle>
201 <segtitle>Installed Directories</segtitle>
202
203 <seglistitem>
[14ba5f4]204 <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
[eb2cf83a]205 <seg>None</seg>
[14ba5f4]206 <seg>/usr/lib/sa,
[ac38e9dc]207 /usr/share/doc/sysstat-&sysstat-version; and
[59382ab]208 /var/log/sa
209 </seg>
[eb2cf83a]210 </seglistitem>
211 </segmentedlist>
212
213 <variablelist>
214 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
215 <?dbfo list-presentation="list"?>
216 <?dbhtml list-presentation="table"?>
217
[fdc00738]218 <varlistentry id="cifsiostat">
219 <term><command>cifsiostat</command></term>
220 <listitem>
[0d7900a]221 <para>displays statistics about read and write operations on CIFS
[fdc00738]222 filesystems.</para>
223 <indexterm zone="sysstat cifsiostat">
224 <primary sortas="b-cifsiostat">cifsiostat</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
[eb2cf83a]229 <varlistentry id="iostat">
230 <term><command>iostat</command></term>
231 <listitem>
[481b3e8]232 <para>reports CPU statistics and input/output
[eb2cf83a]233 statistics for devices and partitions.</para>
234 <indexterm zone="sysstat iostat">
235 <primary sortas="b-iostat">iostat</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
[fdc00738]240 <varlistentry id="mpstat">
241 <term><command>mpstat</command></term>
[b058cd3]242 <listitem>
[fdc00738]243 <para>writes activities for each available processor.</para>
244 <indexterm zone="sysstat mpstat">
245 <primary sortas="b-mpstat">mpstat</primary>
[b058cd3]246 </indexterm>
247 </listitem>
248 </varlistentry>
249
[5a195f0f]250 <varlistentry id="pidstat">
251 <term><command>pidstat</command></term>
252 <listitem>
253 <para>is used for monitoring individual tasks currently being managed
254 by the Linux kernel.</para>
255 <indexterm zone="sysstat pidstat">
256 <primary sortas="b-pidstat">pidstat</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
[5ba48e8]261 <varlistentry id="sadf">
262 <term><command>sadf</command></term>
263 <listitem>
264 <para>is used for displaying the contents of data files created by
265 the <command>sar</command> command. But unlike
266 <command>sar</command>, <command>sadf</command> can write its data
267 in many different formats.</para>
268 <indexterm zone="sysstat sadf">
269 <primary sortas="b-sadf">sadf</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
[fdc00738]274 <varlistentry id="sar">
275 <term><command>sar</command></term>
276 <listitem>
[0d7900a]277 <para>is used for displaying the contents of elected cumulative activity
[fdc00738]278 counters in the operating system.</para>
279 <indexterm zone="sysstat sar">
280 <primary sortas="b-sar">sar</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
[14ba5f4]285 <varlistentry id="tapestat">
286 <term><command>tapestat</command></term>
287 <listitem>
288 <para>is used for monitoring the activity of tape drives connected to
289 a system.</para>
290 <indexterm zone="sysstat tapestat">
291 <primary sortas="b-tapestat">tapestat</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
[eb2cf83a]296 </variablelist>
297
298 </sect2>
[f384a9d]299
300</sect1>
Note: See TracBrowser for help on using the repository browser.