[f384a9d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[f384a9d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[155d664f] | 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">
|
---|
[6d5b743] | 9 | <!ENTITY sysstat-md5sum "42670b66b01b830f82e86117659cd43d">
|
---|
| 10 | <!ENTITY sysstat-size "119 KB">
|
---|
| 11 | <!ENTITY sysstat-buildsize "1.9 MB">
|
---|
[5ba48e8] | 12 | <!ENTITY sysstat-time "less than 0.1 SBU">
|
---|
[f384a9d] | 13 | ]>
|
---|
| 14 |
|
---|
| 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 |
|
---|
| 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 |
|
---|
[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 |
|
---|
| 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 |
|
---|
[481b3e8] | 70 | <para>Install <application>Sysstat</application> by running the
|
---|
[eb2cf83a] | 71 | following commands:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>make config &&
|
---|
| 74 | make</userinput></screen>
|
---|
| 75 |
|
---|
[5ba48e8] | 76 | <para>This package does not come with a test suite.</para>
|
---|
| 77 |
|
---|
[eb2cf83a] | 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 |
|
---|
[481b3e8] | 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>.
|
---|
[5ba48e8] | 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>
|
---|
[eb2cf83a] | 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="configuration">
|
---|
| 103 | <title>Configuring Sysstat</title>
|
---|
| 104 |
|
---|
| 105 | <sect3>
|
---|
| 106 | <title>Cron Information</title>
|
---|
| 107 |
|
---|
[481b3e8] | 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
|
---|
[eb2cf83a] | 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
|
---|
[f384a9d] | 120 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
[481b3e8] | 121 |
|
---|
[f384a9d] | 122 | # 7pm-8am activity reports every hour during weekdays
|
---|
| 123 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 124 |
|
---|
[f384a9d] | 125 | # Activity reports every hour on Saturday and Sunday
|
---|
| 126 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 127 |
|
---|
[f384a9d] | 128 | # Daily summary prepared at 19:05
|
---|
[eb2cf83a] | 129 | 5 19 * * * /usr/lib/sa/sa2 -A &</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 |
|
---|
[5ba48e8] | 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>
|
---|
[eb2cf83a] | 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>
|
---|
[5ba48e8] | 164 | <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
|
---|
[eb2cf83a] | 165 | <seg>None</seg>
|
---|
[5ba48e8] | 166 | <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
|
---|
| 167 | /var/log/sa</seg>
|
---|
[eb2cf83a] | 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>
|
---|
[481b3e8] | 179 | <para>reports CPU statistics and input/output
|
---|
[eb2cf83a] | 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>
|
---|
[5ba48e8] | 190 | <para>reports individual or combined processor related
|
---|
| 191 | statistics.</para>
|
---|
[eb2cf83a] | 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>
|
---|
[5ba48e8] | 201 | <para> collects, reports and saves system activity
|
---|
| 202 | information.</para>
|
---|
[eb2cf83a] | 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>
|
---|
[481b3e8] | 212 | <para>collects and stores binary data in the system activity daily
|
---|
[5ba48e8] | 213 | data file. It is a front end to <filename>sadc</filename> designed
|
---|
| 214 | to be run from cron.</para>
|
---|
[eb2cf83a] | 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>
|
---|
[481b3e8] | 224 | <para>writes a summarized daily activity report. It is a front end
|
---|
[eb2cf83a] | 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>
|
---|
[481b3e8] | 235 | <para>is the system activity data collector, used as a backend for
|
---|
[eb2cf83a] | 236 | <command>sar</command>.</para>
|
---|
| 237 | <indexterm zone="sysstat sadc">
|
---|
| 238 | <primary sortas="b-sadc">sadc</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
[5ba48e8] | 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 |
|
---|
[eb2cf83a] | 256 | </variablelist>
|
---|
| 257 |
|
---|
| 258 | </sect2>
|
---|
[f384a9d] | 259 |
|
---|
| 260 | </sect1>
|
---|