source: general/sysutils/sysstat.xml@ 427b46a

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 427b46a was 66d551c, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tag a lot of utilities and libraries

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

  • Property mode set to 100644
File size: 11.6 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
[7afe5ac4]7 <!ENTITY sysstat-download-http "http://sebastien.godard.pagesperso-orange.fr/sysstat-&sysstat-version;.tar.xz">
[dc2b407]8 <!ENTITY sysstat-download-ftp " ">
[00637e1]9 <!ENTITY sysstat-md5sum "aef5464af848afe2f425d3cd9afce8eb">
10 <!ENTITY sysstat-size "840 KB">
11 <!ENTITY sysstat-buildsize "30 MB">
[fb19ab2c]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
[b1532549]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>
[eb2cf83a]39
[66d551c]40 &lfs101_checked;
[fdc00738]41
[eb2cf83a]42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
[b1532549]45 <para>
46 Download (HTTP): <ulink url="&sysstat-download-http;"/>
47 </para>
[eb2cf83a]48 </listitem>
49 <listitem>
[b1532549]50 <para>
51 Download (FTP): <ulink url="&sysstat-download-ftp;"/>
52 </para>
[eb2cf83a]53 </listitem>
54 <listitem>
[b1532549]55 <para>
56 Download MD5 sum: &sysstat-md5sum;
57 </para>
[eb2cf83a]58 </listitem>
59 <listitem>
[b1532549]60 <para>
61 Download size: &sysstat-size;
62 </para>
[eb2cf83a]63 </listitem>
64 <listitem>
[b1532549]65 <para>
66 Estimated disk space required: &sysstat-buildsize;
67 </para>
[eb2cf83a]68 </listitem>
69 <listitem>
[b1532549]70 <para>
71 Estimated build time: &sysstat-time;
72 </para>
[eb2cf83a]73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
77
[b1532549]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>
[b058cd3]83
[1039de3]84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/sysstat"/></para>
86
[eb2cf83a]87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Sysstat</title>
91
[b1532549]92 <para>
93 Install <application>Sysstat</application> by running the
94 following commands:
95 </para>
[eb2cf83a]96
[fdc00738]97<screen><userinput>sa_lib_dir=/usr/lib/sa \
98sa_dir=/var/log/sa \
99conf_dir=/etc/sysconfig \
100./configure --prefix=/usr \
[fb19ab2c]101 --disable-file-attr &amp;&amp;
[eb2cf83a]102make</userinput></screen>
103
[b1532549]104 <para>
105 This package does not come with a test suite.
106 </para>
[5ba48e8]107
[b1532549]108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
[eb2cf83a]111
[58a8fab2]112<screen role="root"><userinput>make install</userinput></screen>
113
[1552ac8]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
[d4b0dc1]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
[eb2cf83a]128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
[b1532549]133 <para>
134 <envar>sa_lib_dir</envar>: This environment variable specifies the
135 location of the package-specific library directory.
136 </para>
[5a195f0f]137
[b1532549]138 <para>
139 <envar>sa_dir</envar>: This environment variable specifies the
140 location of the directory containing the data files.
141 </para>
[5a195f0f]142
[b1532549]143 <para>
144 <envar>conf_dir</envar>: This environment variable specifies the
145 location of the system configuration directory.
146 </para>
[5a195f0f]147
[b1532549]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>
[5a195f0f]155
[b1532549]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>
[eb2cf83a]165
166 </sect2>
167
168 <sect2 role="configuration">
169 <title>Configuring Sysstat</title>
170
[f1b1c20]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
[eb2cf83a]188 <sect3>
189 <title>Cron Information</title>
190
[b1532549]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>
[eb2cf83a]199
[b1532549]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>
[eb2cf83a]205
206<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
[f384a9d]2070 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
[481b3e8]208
[f384a9d]209# 7pm-8am activity reports every hour during weekdays
2100 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
[481b3e8]211
[f384a9d]212# Activity reports every hour on Saturday and Sunday
2130 * * * 0,6 /usr/lib/sa/sa1 &amp;
[481b3e8]214
[f384a9d]215# Daily summary prepared at 19:05
[eb2cf83a]2165 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
217
[b1532549]218 <para>
219 Ensure you submit the revised crontab to the cron daemon.
220 </para>
[eb2cf83a]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
[b1532549]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>
[1552ac8]239
240<screen role="root" revision="sysv"><userinput>make install-sysstat</userinput></screen>
241
[b1532549]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>
[eb2cf83a]249
[1552ac8]250<screen role="root" revision="systemd"><userinput>systemctl enable sysstat</userinput></screen>
[eb2cf83a]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>
[b1d3c72a]265 <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
[eb2cf83a]266 <seg>None</seg>
[b9a81999]267 <seg>/usr/lib/sa,
[fb19ab2c]268 /usr/share/doc/sysstat-&sysstat-version; and
[59382ab]269 /var/log/sa
270 </seg>
[eb2cf83a]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
[fdc00738]279 <varlistentry id="cifsiostat">
280 <term><command>cifsiostat</command></term>
281 <listitem>
[b1532549]282 <para>
283 displays statistics about read and write operations on CIFS
[4c24eb0a]284 filesystems
[b1532549]285 </para>
[fdc00738]286 <indexterm zone="sysstat cifsiostat">
287 <primary sortas="b-cifsiostat">cifsiostat</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
[eb2cf83a]292 <varlistentry id="iostat">
293 <term><command>iostat</command></term>
294 <listitem>
[b1532549]295 <para>
296 reports CPU statistics and input/output
[4c24eb0a]297 statistics for devices and partitions
[b1532549]298 </para>
[eb2cf83a]299 <indexterm zone="sysstat iostat">
300 <primary sortas="b-iostat">iostat</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
[fdc00738]305 <varlistentry id="mpstat">
306 <term><command>mpstat</command></term>
[b058cd3]307 <listitem>
[b1532549]308 <para>
[4c24eb0a]309 writes activities for each available processor
[b1532549]310 </para>
[fdc00738]311 <indexterm zone="sysstat mpstat">
312 <primary sortas="b-mpstat">mpstat</primary>
[b058cd3]313 </indexterm>
314 </listitem>
315 </varlistentry>
316
[5a195f0f]317 <varlistentry id="pidstat">
318 <term><command>pidstat</command></term>
319 <listitem>
[b1532549]320 <para>
321 is used for monitoring individual tasks currently being managed
[4c24eb0a]322 by the Linux kernel
[b1532549]323 </para>
[5a195f0f]324 <indexterm zone="sysstat pidstat">
325 <primary sortas="b-pidstat">pidstat</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
[5ba48e8]330 <varlistentry id="sadf">
331 <term><command>sadf</command></term>
332 <listitem>
[b1532549]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
[4c24eb0a]337 in many different formats
[b1532549]338 </para>
[5ba48e8]339 <indexterm zone="sysstat sadf">
340 <primary sortas="b-sadf">sadf</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
[fdc00738]345 <varlistentry id="sar">
346 <term><command>sar</command></term>
347 <listitem>
[b1532549]348 <para>
349 is used for displaying the contents of elected cumulative activity
[4c24eb0a]350 counters in the operating system
[b1532549]351 </para>
[fdc00738]352 <indexterm zone="sysstat sar">
353 <primary sortas="b-sar">sar</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[b9a81999]358 <varlistentry id="tapestat">
359 <term><command>tapestat</command></term>
360 <listitem>
[b1532549]361 <para>
362 is used for monitoring the activity of tape drives connected to
[4c24eb0a]363 a system
[b1532549]364 </para>
[b9a81999]365 <indexterm zone="sysstat tapestat">
366 <primary sortas="b-tapestat">tapestat</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
[eb2cf83a]371 </variablelist>
372
373 </sect2>
[f384a9d]374
375</sect1>
Note: See TracBrowser for help on using the repository browser.