source: general/sysutils/sysstat.xml@ 69d725d4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 69d725d4 was 69d725d4, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to clutter-1.26.2.
Update to freetype-2.8.
Update to sysstat-11.5.6.
Update to xfce4-terminal-0.8.5.1.
Update to ffmpeg-3.3.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18731 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.xz">
8 <!ENTITY sysstat-download-ftp " ">
9 <!ENTITY sysstat-md5sum "92735f1be44c676960b53ee28e3a4984">
10 <!ENTITY sysstat-size "456 KB">
11 <!ENTITY sysstat-buildsize "7.0 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 &lfs80_checked;
39 &gcc7_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &sysstat-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &sysstat-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &sysstat-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &sysstat-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
64
65 <para>There are no build-time requirements for this package; however,
66 it is designed to be controlled by a cron daemon such as
67 <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>sa_lib_dir=/usr/lib/sa \
81sa_dir=/var/log/sa \
82conf_dir=/etc/sysconfig \
83./configure --prefix=/usr \
84 --disable-file-attr &amp;&amp;
85make</userinput></screen>
86
87 <para>This package does not come with a test suite.</para>
88
89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
90
91<screen role="root"><userinput>make install</userinput></screen>
92
93 <para revision="systemd">
94 Install the systemd unit by running the following command as the
95 <systemitem class="username">root</systemitem> user:
96 </para>
97
98<screen role="root" revision="systemd"><userinput>install -v -m644 sysstat.service /lib/systemd/system/sysstat.service</userinput></screen>
99
100 <para revision="systemd">
101 Fix the systemd unit by running the following command as the
102 <systemitem class="username">root</systemitem> user:
103 </para>
104
105<screen role="root" revision="systemd"><userinput>sed -i "/^Also=/d" /lib/systemd/system/sysstat.service</userinput></screen>
106
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
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-file-attr</parameter>: Do not set attributes on
122 files being installed. This parameter causes the installation to ignore the
123 man group variable resulting in the man files having
124 <systemitem class="username">root</systemitem>:
125 <systemitem class="groupname">root</systemitem> ownership.</para>
126
127 <note><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></note>
131
132 </sect2>
133
134 <sect2 role="configuration">
135 <title>Configuring Sysstat</title>
136
137 <sect3 id="sysstat-config">
138 <title>Config Files</title>
139
140 <para>
141 <filename>/etc/sysconfig/sysstat</filename> and
142 <filename>/etc/sysconfig/sysstat.ioconf</filename>
143 </para>
144
145 <indexterm zone="sysstat sysstat-config">
146 <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
147 </indexterm>
148 <indexterm zone="sysstat sysstat-config">
149 <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
150 </indexterm>
151
152 </sect3>
153
154 <sect3>
155 <title>Cron Information</title>
156
157 <para>To begin gathering <application>Sysstat</application> history
158 information, you must add to, or create a privileged user's crontab. The
159 history data location is
160 <filename class="directory">/var/log/sa</filename>. The user running
161 <application>Sysstat</application> utilities via cron must have write
162 access to this location.</para>
163
164 <para>Below is an example of what to install in the crontab. Adjust the
165 parameters to suit your needs. Use <command>man sa1</command> and
166 <command>man sa2</command> for information about the commands.</para>
167
168<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1690 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
170
171# 7pm-8am activity reports every hour during weekdays
1720 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
173
174# Activity reports every hour on Saturday and Sunday
1750 * * * 0,6 /usr/lib/sa/sa1 &amp;
176
177# Daily summary prepared at 19:05
1785 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
179
180 <para>Ensure you submit the revised crontab to the cron daemon.</para>
181
182 </sect3>
183
184 <sect3 id="sysstat-init">
185 <title>System Startup Information</title>
186
187 <indexterm zone="sysstat sysstat-init">
188 <primary sortas="f-sysstat">sysstat</primary>
189 </indexterm>
190
191 <para revision="sysv">At system startup, a LINUX RESTART message must be
192 inserted in the daily data file to reinitialize the kernel counters. This
193 can be automated by installing the
194 <filename>/etc/rc.d/init.d/sysstat</filename> init script included in the
195 <xref linkend="bootscripts"/> package using the following command as the
196 <systemitem class="username">root</systemitem> user:</para>
197
198<screen role="root" revision="sysv"><userinput>make install-sysstat</userinput></screen>
199
200 <para revision="systemd">At system startup, a LINUX RESTART message must
201 be inserted in the daily data file to reinitialize the kernel counters.
202 This can be automated by enabling the previously installed systemd unit
203 by running the following command as the
204 <systemitem class="username">root</systemitem> user:</para>
205
206<screen role="root" revision="systemd"><userinput>systemctl enable sysstat</userinput></screen>
207
208 </sect3>
209
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
217 <segtitle>Installed Libraries</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
222 <seg>None</seg>
223 <seg>/usr/lib/sa,
224 /usr/share/doc/sysstat-&sysstat-version; and
225 /var/log/sa
226 </seg>
227 </seglistitem>
228 </segmentedlist>
229
230 <variablelist>
231 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
232 <?dbfo list-presentation="list"?>
233 <?dbhtml list-presentation="table"?>
234
235 <varlistentry id="cifsiostat">
236 <term><command>cifsiostat</command></term>
237 <listitem>
238 <para>displays statistics about read and write operations on CIFS
239 filesystems.</para>
240 <indexterm zone="sysstat cifsiostat">
241 <primary sortas="b-cifsiostat">cifsiostat</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="iostat">
247 <term><command>iostat</command></term>
248 <listitem>
249 <para>reports CPU statistics and input/output
250 statistics for devices and partitions.</para>
251 <indexterm zone="sysstat iostat">
252 <primary sortas="b-iostat">iostat</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="mpstat">
258 <term><command>mpstat</command></term>
259 <listitem>
260 <para>writes activities for each available processor.</para>
261 <indexterm zone="sysstat mpstat">
262 <primary sortas="b-mpstat">mpstat</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="pidstat">
268 <term><command>pidstat</command></term>
269 <listitem>
270 <para>is used for monitoring individual tasks currently being managed
271 by the Linux kernel.</para>
272 <indexterm zone="sysstat pidstat">
273 <primary sortas="b-pidstat">pidstat</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="sadf">
279 <term><command>sadf</command></term>
280 <listitem>
281 <para>is used for displaying the contents of data files created by
282 the <command>sar</command> command. But unlike
283 <command>sar</command>, <command>sadf</command> can write its data
284 in many different formats.</para>
285 <indexterm zone="sysstat sadf">
286 <primary sortas="b-sadf">sadf</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="sar">
292 <term><command>sar</command></term>
293 <listitem>
294 <para>is used for displaying the contents of elected cumulative activity
295 counters in the operating system.</para>
296 <indexterm zone="sysstat sar">
297 <primary sortas="b-sar">sar</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="tapestat">
303 <term><command>tapestat</command></term>
304 <listitem>
305 <para>is used for monitoring the activity of tape drives connected to
306 a system.</para>
307 <indexterm zone="sysstat tapestat">
308 <primary sortas="b-tapestat">tapestat</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 </variablelist>
314
315 </sect2>
316
317</sect1>
Note: See TracBrowser for help on using the repository browser.