source: general/sysutils/sysstat.xml@ 108e563

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 108e563 was 108e563, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Package updates.
Update to glib-2.70.2.
Update to pangomm-1.46.2.
Update to pango-1.50.0.
Update to mypaint-brushes-1.3.1.
Update to sysstat-12.5.5.

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