source: general/sysutils/sysstat.xml@ f6de4477

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f6de4477 was f6de4477, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to Sysstat-6.0.2

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

  • Property mode set to 100644
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sysstat-download-http "http://perso.wanadoo.fr/sebastien.godard/sysstat-&sysstat-version;.tar.bz2">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.bz2">
9 <!ENTITY sysstat-md5sum "99ed143d7e753f0b2220baa115859b44">
10 <!ENTITY sysstat-size "120 KB">
11 <!ENTITY sysstat-buildsize "1.9 MB">
12 <!ENTITY sysstat-time "less than 0.1 SBU">
13]>
14
15<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
16 <?dbhtml filename="sysstat.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Sysstat-&sysstat-version;</title>
24
25 <indexterm zone="sysstat">
26 <primary sortas="a-Sysstat">Sysstat</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Sysstat</title>
31
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
36 cron to collect and historize performance and activity data.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &sysstat-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &sysstat-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &sysstat-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &sysstat-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Recommended</bridgehead>
63 <para><xref linkend="fcron"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of Sysstat</title>
69
70 <para>Install <application>Sysstat</application> by running the
71 following commands:</para>
72
73<screen><userinput>make config &amp;&amp;
74make</userinput></screen>
75
76 <para>This package does not come with a test suite.</para>
77
78 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
79
80<screen role="root"><userinput>make install</userinput></screen>
81
82 </sect2>
83
84 <sect2 role="commands">
85 <title>Command Explanations</title>
86
87 <para><command>make config</command>: Runs the interactive configuration
88 process. The first question prompts you for an
89 <quote><computeroutput>Installation directory</computeroutput></quote>.
90 Reply with <filename class="directory">/usr</filename>, as this is
91 equivalent to <application>Autoconf</application>'s
92 <option>--prefix=/usr</option> parameter to <command>configure</command>.
93 For all other prompts, you may press <keycap>Enter</keycap> to accept the
94 (very sane) defaults. When prompted for <quote><computeroutput>Number of
95 daily data files to keep: [7]</computeroutput></quote>, you may wish to
96 keep a larger number of files. However, don't exceed 25 because
97 <application>Sysstat</application> will resuse existing files the next
98 month, leading to erroneous daily reports.</para>
99
100 </sect2>
101
102 <sect2 role="configuration">
103 <title>Configuring Sysstat</title>
104
105 <sect3>
106 <title>Cron Information</title>
107
108 <para>To begin gathering <application>Sysstat</application> history
109 information, you must add to, or create a privileged user's crontab. The
110 default history data location is
111 <filename class="directory">/var/log/sa</filename>. The user running
112 <application>Sysstat</application> utilities via cron must have write
113 access to this location.</para>
114
115 <para>Below is an example of what to install in the crontab. Adjust the
116 parameters to suit your needs. Use <command>man sa1</command> and
117 <command>man sa2</command> for information about the commands.</para>
118
119<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1200 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
121
122# 7pm-8am activity reports every hour during weekdays
1230 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
124
125# Activity reports every hour on Saturday and Sunday
1260 * * * 0,6 /usr/lib/sa/sa1 &amp;
127
128# Daily summary prepared at 19:05
1295 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
130
131 <para>Ensure you submit the revised crontab to the cron daemon.</para>
132
133 </sect3>
134
135 <sect3 id="sysstat-init">
136 <title>System Startup Information</title>
137
138 <indexterm zone="sysstat sysstat-init">
139 <primary sortas="f-sysstat">sysstat</primary>
140 </indexterm>
141
142 <para>At system startup, a LINUX RESTART message must be inserted in the
143 daily data file to reinitialize the kernel counters. This can be
144 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
145 init script included in the <xref linkend="intro-important-bootscripts"/>
146 package using the following command as the
147 <systemitem class="username">root</systemitem> user:</para>
148
149<screen role="root"><userinput>make install-sysstat</userinput></screen>
150
151 </sect3>
152
153 </sect2>
154
155 <sect2 role="content">
156 <title>Contents</title>
157
158 <segmentedlist>
159 <segtitle>Installed Programs</segtitle>
160 <segtitle>Installed Libraries</segtitle>
161 <segtitle>Installed Directories</segtitle>
162
163 <seglistitem>
164 <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
165 <seg>None</seg>
166 <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
167 /var/log/sa</seg>
168 </seglistitem>
169 </segmentedlist>
170
171 <variablelist>
172 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
173 <?dbfo list-presentation="list"?>
174 <?dbhtml list-presentation="table"?>
175
176 <varlistentry id="iostat">
177 <term><command>iostat</command></term>
178 <listitem>
179 <para>reports CPU statistics and input/output
180 statistics for devices and partitions.</para>
181 <indexterm zone="sysstat iostat">
182 <primary sortas="b-iostat">iostat</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="mpstat">
188 <term><command>mpstat</command></term>
189 <listitem>
190 <para>reports individual or combined processor related
191 statistics.</para>
192 <indexterm zone="sysstat mpstat">
193 <primary sortas="b-mpstat">mpstat</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="sar">
199 <term><command>sar</command></term>
200 <listitem>
201 <para> collects, reports and saves system activity
202 information.</para>
203 <indexterm zone="sysstat sar">
204 <primary sortas="b-sar">sar</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="sa1">
210 <term><command>sa1</command></term>
211 <listitem>
212 <para>collects and stores binary data in the system activity daily
213 data file. It is a front end to <filename>sadc</filename> designed
214 to be run from cron.</para>
215 <indexterm zone="sysstat sa1">
216 <primary sortas="b-sa1">sa1</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="sa2">
222 <term><command>sa2</command></term>
223 <listitem>
224 <para>writes a summarized daily activity report. It is a front end
225 to <command>sar</command> designed to be run from cron.</para>
226 <indexterm zone="sysstat sa2">
227 <primary sortas="b-sa2">sa2</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="sadc">
233 <term><command>sadc</command></term>
234 <listitem>
235 <para>is the system activity data collector, used as a backend for
236 <command>sar</command>.</para>
237 <indexterm zone="sysstat sadc">
238 <primary sortas="b-sadc">sadc</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="sadf">
244 <term><command>sadf</command></term>
245 <listitem>
246 <para>is used for displaying the contents of data files created by
247 the <command>sar</command> command. But unlike
248 <command>sar</command>, <command>sadf</command> can write its data
249 in many different formats.</para>
250 <indexterm zone="sysstat sadf">
251 <primary sortas="b-sadf">sadf</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 </variablelist>
257
258 </sect2>
259
260</sect1>
Note: See TracBrowser for help on using the repository browser.