source: general/sysutils/sysstat.xml@ 37d3725f

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 37d3725f was 37d3725f, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to libgpg-error-1.41.
Update to gnupg-2.2.26.
Update to sysstat-12.5.2.
Update to wireshark-3.4.2.
Update to php-8.0.0.

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

  • Property mode set to 100644
File size: 11.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://sebastien.godard.pagesperso-orange.fr/sysstat-&sysstat-version;.tar.xz">
8 <!ENTITY sysstat-download-ftp " ">
9 <!ENTITY sysstat-md5sum "0ffc53f703d950748d459032749721f4">
10 <!ENTITY sysstat-size "800 KB">
11 <!ENTITY sysstat-buildsize "26 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>
33 The <application>Sysstat</application> package contains utilities
34 to monitor system performance and usage activity.
35 <application>Sysstat</application> contains the <command>sar</command>
36 utility, common to many commercial Unixes, and tools you can schedule via
37 cron to collect and historize performance and activity data.
38 </para>
39
40 &lfs10_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&sysstat-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&sysstat-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &sysstat-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &sysstat-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &sysstat-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &sysstat-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
77
78 <para role="recommended">
79 There are no build-time requirements for this package; however,
80 it is designed to be controlled by a cron daemon such as
81 <xref linkend="fcron" role="runtime"/>.
82 </para>
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/sysstat"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Sysstat</title>
91
92 <para>
93 Install <application>Sysstat</application> by running the
94 following commands:
95 </para>
96
97<screen><userinput>sa_lib_dir=/usr/lib/sa \
98sa_dir=/var/log/sa \
99conf_dir=/etc/sysconfig \
100./configure --prefix=/usr \
101 --disable-file-attr &amp;&amp;
102make</userinput></screen>
103
104 <para>
105 This package does not come with a test suite.
106 </para>
107
108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
111
112<screen role="root"><userinput>make install</userinput></screen>
113
114 <para revision="systemd">
115 Install the systemd unit by running the following command as the
116 <systemitem class="username">root</systemitem> user:
117 </para>
118
119<screen role="root" revision="systemd"><userinput>install -v -m644 sysstat.service /lib/systemd/system/sysstat.service</userinput></screen>
120
121 <para revision="systemd">
122 Fix the systemd unit by running the following command as the
123 <systemitem class="username">root</systemitem> user:
124 </para>
125
126<screen role="root" revision="systemd"><userinput>sed -i "/^Also=/d" /lib/systemd/system/sysstat.service</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133 <para>
134 <envar>sa_lib_dir</envar>: This environment variable specifies the
135 location of the package-specific library directory.
136 </para>
137
138 <para>
139 <envar>sa_dir</envar>: This environment variable specifies the
140 location of the directory containing the data files.
141 </para>
142
143 <para>
144 <envar>conf_dir</envar>: This environment variable specifies the
145 location of the system configuration directory.
146 </para>
147
148 <para>
149 <parameter>--disable-file-attr</parameter>: Do not set attributes on
150 files being installed. This parameter causes the installation to ignore
151 the man group variable resulting in the man files having
152 <systemitem class="username">root</systemitem>:
153 <systemitem class="groupname">root</systemitem> ownership.
154 </para>
155
156 <note>
157 <para>
158 Run <command>./configure --help</command> to see other influential
159 environment variables you can pass to <command>configure</command>.
160 You may want to use the <envar>history</envar> and
161 <envar>compressafter</envar> variables to customize the amount of data
162 files kept on the system.
163 </para>
164 </note>
165
166 </sect2>
167
168 <sect2 role="configuration">
169 <title>Configuring Sysstat</title>
170
171 <sect3 id="sysstat-config">
172 <title>Config Files</title>
173
174 <para>
175 <filename>/etc/sysconfig/sysstat</filename> and
176 <filename>/etc/sysconfig/sysstat.ioconf</filename>
177 </para>
178
179 <indexterm zone="sysstat sysstat-config">
180 <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
181 </indexterm>
182 <indexterm zone="sysstat sysstat-config">
183 <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
184 </indexterm>
185
186 </sect3>
187
188 <sect3>
189 <title>Cron Information</title>
190
191 <para>
192 To begin gathering <application>Sysstat</application> history
193 information, you must add to, or create a privileged user's crontab.
194 The history data location is
195 <filename class="directory">/var/log/sa</filename>. The user running
196 <application>Sysstat</application> utilities via cron must have write
197 access to this location.
198 </para>
199
200 <para>
201 Below is an example of what to install in the crontab. Adjust the
202 parameters to suit your needs. Use <command>man sa1</command> and
203 <command>man sa2</command> for information about the commands.
204 </para>
205
206<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
2070 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
208
209# 7pm-8am activity reports every hour during weekdays
2100 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
211
212# Activity reports every hour on Saturday and Sunday
2130 * * * 0,6 /usr/lib/sa/sa1 &amp;
214
215# Daily summary prepared at 19:05
2165 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
217
218 <para>
219 Ensure you submit the revised crontab to the cron daemon.
220 </para>
221
222 </sect3>
223
224 <sect3 id="sysstat-init">
225 <title>System Startup Information</title>
226
227 <indexterm zone="sysstat sysstat-init">
228 <primary sortas="f-sysstat">sysstat</primary>
229 </indexterm>
230
231 <para revision="sysv">
232 At system startup, a LINUX RESTART message must be
233 inserted in the daily data file to reinitialize the kernel counters.
234 This can be automated by installing the
235 <filename>/etc/rc.d/init.d/sysstat</filename> init script included in
236 the <xref linkend="bootscripts"/> package using the following command
237 as the <systemitem class="username">root</systemitem> user:
238 </para>
239
240<screen role="root" revision="sysv"><userinput>make install-sysstat</userinput></screen>
241
242 <para revision="systemd">
243 At system startup, a LINUX RESTART message must
244 be inserted in the daily data file to reinitialize the kernel counters.
245 This can be automated by enabling the previously installed systemd unit
246 by running the following command as the
247 <systemitem class="username">root</systemitem> user:
248 </para>
249
250<screen role="root" revision="systemd"><userinput>systemctl enable sysstat</userinput></screen>
251
252 </sect3>
253
254 </sect2>
255
256 <sect2 role="content">
257 <title>Contents</title>
258
259 <segmentedlist>
260 <segtitle>Installed Programs</segtitle>
261 <segtitle>Installed Libraries</segtitle>
262 <segtitle>Installed Directories</segtitle>
263
264 <seglistitem>
265 <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
266 <seg>None</seg>
267 <seg>/usr/lib/sa,
268 /usr/share/doc/sysstat-&sysstat-version; and
269 /var/log/sa
270 </seg>
271 </seglistitem>
272 </segmentedlist>
273
274 <variablelist>
275 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
276 <?dbfo list-presentation="list"?>
277 <?dbhtml list-presentation="table"?>
278
279 <varlistentry id="cifsiostat">
280 <term><command>cifsiostat</command></term>
281 <listitem>
282 <para>
283 displays statistics about read and write operations on CIFS
284 filesystems.
285 </para>
286 <indexterm zone="sysstat cifsiostat">
287 <primary sortas="b-cifsiostat">cifsiostat</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="iostat">
293 <term><command>iostat</command></term>
294 <listitem>
295 <para>
296 reports CPU statistics and input/output
297 statistics for devices and partitions.
298 </para>
299 <indexterm zone="sysstat iostat">
300 <primary sortas="b-iostat">iostat</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="mpstat">
306 <term><command>mpstat</command></term>
307 <listitem>
308 <para>
309 writes activities for each available processor.
310 </para>
311 <indexterm zone="sysstat mpstat">
312 <primary sortas="b-mpstat">mpstat</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="pidstat">
318 <term><command>pidstat</command></term>
319 <listitem>
320 <para>
321 is used for monitoring individual tasks currently being managed
322 by the Linux kernel.
323 </para>
324 <indexterm zone="sysstat pidstat">
325 <primary sortas="b-pidstat">pidstat</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="sadf">
331 <term><command>sadf</command></term>
332 <listitem>
333 <para>
334 is used for displaying the contents of data files created by
335 the <command>sar</command> command. But unlike
336 <command>sar</command>, <command>sadf</command> can write its data
337 in many different formats.
338 </para>
339 <indexterm zone="sysstat sadf">
340 <primary sortas="b-sadf">sadf</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="sar">
346 <term><command>sar</command></term>
347 <listitem>
348 <para>
349 is used for displaying the contents of elected cumulative activity
350 counters in the operating system.
351 </para>
352 <indexterm zone="sysstat sar">
353 <primary sortas="b-sar">sar</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="tapestat">
359 <term><command>tapestat</command></term>
360 <listitem>
361 <para>
362 is used for monitoring the activity of tape drives connected to
363 a system.
364 </para>
365 <indexterm zone="sysstat tapestat">
366 <primary sortas="b-tapestat">tapestat</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 </variablelist>
372
373 </sect2>
374
375</sect1>
Note: See TracBrowser for help on using the repository browser.