source: general/sysutils/sysstat.xml@ 08c3c25

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 08c3c25 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 11 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

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