source: general/sysutils/sysstat.xml@ b1d3c72a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 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 nosym 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 b1d3c72a was b1d3c72a, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to libical-2.0.0.
  • Update to libpng-1.6.20.
  • Update to sysstat-11.2.0.
  • Update to goffice-0.10.26.
  • Update to gnumeric-1.12.26.

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

  • Property mode set to 100644
File size: 9.9 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 " ">
[b1d3c72a]9 <!ENTITY sysstat-md5sum "e8b615775ad98780e3f0675b91eddb19">
[e2e724a]10 <!ENTITY sysstat-size "316 KB">
[b1d3c72a]11 <!ENTITY sysstat-buildsize "8.0 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
[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
[e2e724a]38 &lfs78_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 \
[fb19ab2c]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
[eb2cf83a]92 </sect2>
93
94 <sect2 role="commands">
95 <title>Command Explanations</title>
96
[5a195f0f]97 <para><envar>sa_lib_dir</envar>: This environment variable specifies the
98 location of the package-specific library directory.</para>
99
100 <para><envar>sa_dir</envar>: This environment variable specifies the
101 location of the directory containing the data files.</para>
102
103 <para><envar>conf_dir</envar>: This environment variable specifies the
104 location of the system configuration directory.</para>
105
[fb19ab2c]106 <para><parameter>--disable-file-attr</parameter>: Do not set attributes on
107 files being installed. This parameter causes the installation to ignore the
108 man group variable resulting in the man files having
109 <systemitem class="username">root</systemitem>:
110 <systemitem class="groupname">root</systemitem> ownership.</para>
[5a195f0f]111
[f1b1c20]112 <note><para>Run <command>./configure --help</command> to see other influential
[5a195f0f]113 environment variables you can pass to <command>configure</command>. You may
114 want to use the <envar>history</envar> and <envar>compressafter</envar>
[f1b1c20]115 variables to customize the amount of data files kept on the system.</para></note>
[eb2cf83a]116
117 </sect2>
118
119 <sect2 role="configuration">
120 <title>Configuring Sysstat</title>
121
[f1b1c20]122 <sect3 id="sysstat-config">
123 <title>Config Files</title>
124
125 <para>
126 <filename>/etc/sysconfig/sysstat</filename> and
127 <filename>/etc/sysconfig/sysstat.ioconf</filename>
128 </para>
129
130 <indexterm zone="sysstat sysstat-config">
131 <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
132 </indexterm>
133 <indexterm zone="sysstat sysstat-config">
134 <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
135 </indexterm>
136
137 </sect3>
138
[eb2cf83a]139 <sect3>
140 <title>Cron Information</title>
141
[481b3e8]142 <para>To begin gathering <application>Sysstat</application> history
143 information, you must add to, or create a privileged user's crontab. The
[5a195f0f]144 history data location is
[481b3e8]145 <filename class="directory">/var/log/sa</filename>. The user running
146 <application>Sysstat</application> utilities via cron must have write
[eb2cf83a]147 access to this location.</para>
148
149 <para>Below is an example of what to install in the crontab. Adjust the
150 parameters to suit your needs. Use <command>man sa1</command> and
151 <command>man sa2</command> for information about the commands.</para>
152
153<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
[f384a9d]1540 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
[481b3e8]155
[f384a9d]156# 7pm-8am activity reports every hour during weekdays
1570 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
[481b3e8]158
[f384a9d]159# Activity reports every hour on Saturday and Sunday
1600 * * * 0,6 /usr/lib/sa/sa1 &amp;
[481b3e8]161
[f384a9d]162# Daily summary prepared at 19:05
[eb2cf83a]1635 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
164
165 <para>Ensure you submit the revised crontab to the cron daemon.</para>
166
167 </sect3>
168
169 <sect3 id="sysstat-init">
170 <title>System Startup Information</title>
171
172 <indexterm zone="sysstat sysstat-init">
173 <primary sortas="f-sysstat">sysstat</primary>
174 </indexterm>
175
[5ba48e8]176 <para>At system startup, a LINUX RESTART message must be inserted in the
177 daily data file to reinitialize the kernel counters. This can be
178 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
[5254d12]179 init script included in the <xref linkend="bootscripts"/>
[bccbdaea]180 package using the following command as the
[5ba48e8]181 <systemitem class="username">root</systemitem> user:</para>
[eb2cf83a]182
183<screen role="root"><userinput>make install-sysstat</userinput></screen>
184
185 </sect3>
186
187 </sect2>
188
189 <sect2 role="content">
190 <title>Contents</title>
191
192 <segmentedlist>
193 <segtitle>Installed Programs</segtitle>
194 <segtitle>Installed Libraries</segtitle>
195 <segtitle>Installed Directories</segtitle>
196
197 <seglistitem>
[b1d3c72a]198 <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
[eb2cf83a]199 <seg>None</seg>
[b9a81999]200 <seg>/usr/lib/sa,
[fb19ab2c]201 /usr/share/doc/sysstat-&sysstat-version; and
[59382ab]202 /var/log/sa
203 </seg>
[eb2cf83a]204 </seglistitem>
205 </segmentedlist>
206
207 <variablelist>
208 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
209 <?dbfo list-presentation="list"?>
210 <?dbhtml list-presentation="table"?>
211
[fdc00738]212 <varlistentry id="cifsiostat">
213 <term><command>cifsiostat</command></term>
214 <listitem>
[0d7900a]215 <para>displays statistics about read and write operations on CIFS
[fdc00738]216 filesystems.</para>
217 <indexterm zone="sysstat cifsiostat">
218 <primary sortas="b-cifsiostat">cifsiostat</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
[eb2cf83a]223 <varlistentry id="iostat">
224 <term><command>iostat</command></term>
225 <listitem>
[481b3e8]226 <para>reports CPU statistics and input/output
[eb2cf83a]227 statistics for devices and partitions.</para>
228 <indexterm zone="sysstat iostat">
229 <primary sortas="b-iostat">iostat</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
[fdc00738]234 <varlistentry id="mpstat">
235 <term><command>mpstat</command></term>
[b058cd3]236 <listitem>
[fdc00738]237 <para>writes activities for each available processor.</para>
238 <indexterm zone="sysstat mpstat">
239 <primary sortas="b-mpstat">mpstat</primary>
[b058cd3]240 </indexterm>
241 </listitem>
242 </varlistentry>
243
[5a195f0f]244 <varlistentry id="pidstat">
245 <term><command>pidstat</command></term>
246 <listitem>
247 <para>is used for monitoring individual tasks currently being managed
248 by the Linux kernel.</para>
249 <indexterm zone="sysstat pidstat">
250 <primary sortas="b-pidstat">pidstat</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
[5ba48e8]255 <varlistentry id="sadf">
256 <term><command>sadf</command></term>
257 <listitem>
258 <para>is used for displaying the contents of data files created by
259 the <command>sar</command> command. But unlike
260 <command>sar</command>, <command>sadf</command> can write its data
261 in many different formats.</para>
262 <indexterm zone="sysstat sadf">
263 <primary sortas="b-sadf">sadf</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
[fdc00738]268 <varlistentry id="sar">
269 <term><command>sar</command></term>
270 <listitem>
[0d7900a]271 <para>is used for displaying the contents of elected cumulative activity
[fdc00738]272 counters in the operating system.</para>
273 <indexterm zone="sysstat sar">
274 <primary sortas="b-sar">sar</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
[b9a81999]279 <varlistentry id="tapestat">
280 <term><command>tapestat</command></term>
281 <listitem>
282 <para>is used for monitoring the activity of tape drives connected to
283 a system.</para>
284 <indexterm zone="sysstat tapestat">
285 <primary sortas="b-tapestat">tapestat</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
[eb2cf83a]290 </variablelist>
291
292 </sect2>
[f384a9d]293
294</sect1>
Note: See TracBrowser for help on using the repository browser.