source: general/sysutils/sysstat.xml@ 7263a049

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/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 7263a049 was 7263a049, checked in by Bruce Dubbs <bdubbs@…>, 20 months ago

Tags

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