source: general/sysutils/sysstat.xml@ 9824250

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 9824250 was 0015654c, checked in by Randy McMurchy <randy@…>, 19 years ago

Added indexing tags to Sysstat

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

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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.gz">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.gz">
9 <!ENTITY sysstat-size "124 KB">
10 <!ENTITY sysstat-buildsize "1.2 MB">
11 <!ENTITY sysstat-time "0.12 SBU">
12]>
13
14<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="sysstat.html"?>
20<title>Sysstat-&sysstat-version;</title>
21<indexterm zone="sysstat">
22<primary sortas="a-Sysstat">Sysstat</primary></indexterm>
23
24<sect2>
25<title>Introduction to <application>Sysstat</application></title>
26
27<para>The <application>Sysstat</application> package contains utilities to
28monitor system performance and usage activity.
29<application>Sysstat</application> contains the <command>sar</command> utility,
30common to many commercial Unixes, and tools you can schedule via cron to
31collect and historize performance and activity data.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
35<listitem><para>Download (HTTP):
36<ulink url="&sysstat-download-http;"/></para></listitem>
37<listitem><para>Download (FTP):
38<ulink url="&sysstat-download-ftp;"/></para></listitem>
39<listitem><para>Download size:
40&sysstat-size;</para></listitem>
41<listitem><para>Estimated disk space required:
42&sysstat-buildsize;</para></listitem>
43<listitem><para>Estimated build time:
44&sysstat-time;</para></listitem></itemizedlist>
45</sect3>
46
47<sect3><title><application>Sysstat</application> dependencies</title>
48<sect4><title>Recommended</title>
49<para><xref linkend="fcron"/></para></sect4>
50</sect3>
51
52</sect2>
53
54<sect2>
55<title>Installation of <application>Sysstat</application></title>
56
57<para>Install <application>Sysstat</application> by running the
58following commands:</para>
59
60<screen><userinput><command>make config &amp;&amp;
61make</command></userinput></screen>
62
63<para>Now, as the root user:</para>
64
65<screen><userinput role='root'><command>make install</command></userinput></screen>
66
67</sect2>
68
69<sect2>
70<title>Command explanations</title>
71
72<para><command>make config</command>: Runs the interactive configuration
73process. The first question prompts you for an "Installation directory".
74Reply with <filename class="directory">/usr</filename>, as this is equivalent
75to <application>Autoconf</application>'s <parameter>--prefix=/usr</parameter>
76parameter to <command>configure</command>. For all other prompts, you may
77press <command>Enter</command> to accept the (very sane) defaults.</para>
78
79</sect2>
80
81<sect2>
82<title>Configuring <application>Sysstat</application></title>
83
84<sect3><title>Cron information</title>
85
86<para>To begin gathering <application>Sysstat</application> history
87information, you must add to, or create a privileged user's crontab. The
88default history data location is
89<filename class="directory">/var/log/sa</filename>. The user running
90<application>Sysstat</application> utilities via cron must have write
91access to this location.</para>
92
93<para>Below is an example of what to install in the crontab. Adjust the
94parameters to suit your needs. Use <command>man sa1</command> and
95<command>man sa2</command> for information about the commands.</para>
96
97<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
980 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
99
100# 7pm-8am activity reports every hour during weekdays
1010 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
102
103# Activity reports every hour on Saturday and Sunday
1040 * * * 0,6 /usr/lib/sa/sa1 &amp;
105
106# Daily summary prepared at 19:05
1075 19 * * * /usr/lib/sa/sa2 -A &amp;</userinput></screen>
108
109<para>Ensure you submit the revised crontab to the cron daemon.</para>
110</sect3>
111
112<sect3 id="sysstat-init"><title>System startup information</title>
113<indexterm zone="sysstat sysstat-init">
114<primary sortas="f-sysstat">sysstat</primary></indexterm>
115
116<para>At system startup, a LINUX RESTART message must be inserted in the daily
117data file to reinitialize the kernel counters. This can be automated by
118installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
119included in the <xref linkend="intro-important-bootscripts"/> package using
120the following command:</para>
121
122<screen><userinput role='root'><command>make install-sysstat</command></userinput></screen>
123</sect3>
124
125</sect2>
126
127<sect2>
128<title>Contents</title>
129
130<segmentedlist>
131<segtitle>Installed Programs</segtitle>
132<segtitle>Installed Libraries</segtitle>
133<segtitle>Installed Directories</segtitle>
134
135<seglistitem>
136<seg>iostat, mpstat, sar, sa1, sa2 and sadc</seg>
137<seg>None</seg>
138<seg>/usr/lib/sa and /var/log/sa</seg>
139</seglistitem>
140</segmentedlist>
141
142<variablelist>
143<bridgehead renderas="sect3">Short Descriptions</bridgehead>
144<?dbfo list-presentation="list"?>
145
146<varlistentry id="iostat">
147<term><command>iostat</command></term>
148<listitem><para>reports <acronym>CPU</acronym> statistics and input/output
149statistics for devices and partitions.</para>
150<indexterm zone="sysstat iostat">
151<primary sortas="b-iostat">iostat</primary>
152</indexterm></listitem>
153</varlistentry>
154
155<varlistentry id="mpstat">
156<term><command>mpstat</command></term>
157<listitem><para>reports individual or combined processor related
158statistics.</para>
159<indexterm zone="sysstat mpstat">
160<primary sortas="b-mpstat">mpstat</primary>
161</indexterm></listitem>
162</varlistentry>
163
164<varlistentry id="sar">
165<term><command>sar</command></term>
166<listitem><para> collects, reports and saves system activity
167information.</para>
168<indexterm zone="sysstat sar">
169<primary sortas="b-sar">sar</primary>
170</indexterm></listitem>
171</varlistentry>
172
173<varlistentry id="sa1">
174<term><command>sa1</command></term>
175<listitem><para>collects and stores binary data in the system activity daily
176data file. It is a front end to <filename>sadc</filename> designed to be run
177from cron.</para>
178<indexterm zone="sysstat sa1">
179<primary sortas="b-sa1">sa1</primary>
180</indexterm></listitem>
181</varlistentry>
182
183<varlistentry id="sa2">
184<term><command>sa2</command></term>
185<listitem><para>writes a summarized daily activity report. It is a front end
186to <command>sar</command> designed to be run from cron.</para>
187<indexterm zone="sysstat sa2">
188<primary sortas="b-sa2">sa2</primary>
189</indexterm></listitem>
190</varlistentry>
191
192<varlistentry id="sadc">
193<term><command>sadc</command></term>
194<listitem><para>is the system activity data collector, used as a backend for
195<command>sar</command>.</para>
196<indexterm zone="sysstat sadc">
197<primary sortas="b-sadc">sadc</primary>
198</indexterm></listitem>
199</varlistentry>
200</variablelist>
201
202</sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.