[f384a9d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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">
|
---|
[58a8fab2] | 9 | <!ENTITY sysstat-md5sum "46a6af9c5486809c4f1fb4f8fcdf2684">
|
---|
| 10 | <!ENTITY sysstat-size "124 KB">
|
---|
| 11 | <!ENTITY sysstat-buildsize "2 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>
|
---|
[56762b82] | 63 | <para role="recommended"><xref linkend="fcron"/></para>
|
---|
[eb2cf83a] | 64 |
|
---|
[1039de3] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/sysstat"/></para>
|
---|
| 67 |
|
---|
[eb2cf83a] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of Sysstat</title>
|
---|
| 72 |
|
---|
[481b3e8] | 73 | <para>Install <application>Sysstat</application> by running the
|
---|
[eb2cf83a] | 74 | following commands:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput>make config &&
|
---|
| 77 | make</userinput></screen>
|
---|
| 78 |
|
---|
[5ba48e8] | 79 | <para>This package does not come with a test suite.</para>
|
---|
| 80 |
|
---|
[eb2cf83a] | 81 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 82 |
|
---|
[58a8fab2] | 83 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <!-- install -v -m644 sysstat.sysconfig /etc/sysconfig/sysstat</userinput></screen> -->
|
---|
[eb2cf83a] | 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="commands">
|
---|
| 90 | <title>Command Explanations</title>
|
---|
| 91 |
|
---|
[481b3e8] | 92 | <para><command>make config</command>: Runs the interactive configuration
|
---|
| 93 | process. The first question prompts you for an
|
---|
| 94 | <quote><computeroutput>Installation directory</computeroutput></quote>.
|
---|
[5ba48e8] | 95 | Reply with <filename class="directory">/usr</filename>, as this is
|
---|
| 96 | equivalent to <application>Autoconf</application>'s
|
---|
| 97 | <option>--prefix=/usr</option> parameter to <command>configure</command>.
|
---|
| 98 | For all other prompts, you may press <keycap>Enter</keycap> to accept the
|
---|
| 99 | (very sane) defaults. When prompted for <quote><computeroutput>Number of
|
---|
| 100 | daily data files to keep: [7]</computeroutput></quote>, you may wish to
|
---|
[58a8fab2] | 101 | keep a larger number of files.</para>
|
---|
[eb2cf83a] | 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="configuration">
|
---|
| 106 | <title>Configuring Sysstat</title>
|
---|
| 107 |
|
---|
| 108 | <sect3>
|
---|
| 109 | <title>Cron Information</title>
|
---|
| 110 |
|
---|
[481b3e8] | 111 | <para>To begin gathering <application>Sysstat</application> history
|
---|
| 112 | information, you must add to, or create a privileged user's crontab. The
|
---|
| 113 | default history data location is
|
---|
| 114 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
| 115 | <application>Sysstat</application> utilities via cron must have write
|
---|
[eb2cf83a] | 116 | access to this location.</para>
|
---|
| 117 |
|
---|
| 118 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
| 119 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
| 120 | <command>man sa2</command> for information about the commands.</para>
|
---|
| 121 |
|
---|
| 122 | <screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
[f384a9d] | 123 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
[481b3e8] | 124 |
|
---|
[f384a9d] | 125 | # 7pm-8am activity reports every hour during weekdays
|
---|
| 126 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 127 |
|
---|
[f384a9d] | 128 | # Activity reports every hour on Saturday and Sunday
|
---|
| 129 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 130 |
|
---|
[f384a9d] | 131 | # Daily summary prepared at 19:05
|
---|
[eb2cf83a] | 132 | 5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen>
|
---|
| 133 |
|
---|
| 134 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
| 135 |
|
---|
| 136 | </sect3>
|
---|
| 137 |
|
---|
| 138 | <sect3 id="sysstat-init">
|
---|
| 139 | <title>System Startup Information</title>
|
---|
| 140 |
|
---|
| 141 | <indexterm zone="sysstat sysstat-init">
|
---|
| 142 | <primary sortas="f-sysstat">sysstat</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 |
|
---|
[5ba48e8] | 145 | <para>At system startup, a LINUX RESTART message must be inserted in the
|
---|
| 146 | daily data file to reinitialize the kernel counters. This can be
|
---|
| 147 | automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
|
---|
[5254d12] | 148 | init script included in the <xref linkend="bootscripts"/>
|
---|
[bccbdaea] | 149 | package using the following command as the
|
---|
[5ba48e8] | 150 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[eb2cf83a] | 151 |
|
---|
| 152 | <screen role="root"><userinput>make install-sysstat</userinput></screen>
|
---|
| 153 |
|
---|
| 154 | </sect3>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="content">
|
---|
| 159 | <title>Contents</title>
|
---|
| 160 |
|
---|
| 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Libraries</segtitle>
|
---|
| 164 | <segtitle>Installed Directories</segtitle>
|
---|
| 165 |
|
---|
| 166 | <seglistitem>
|
---|
[5ba48e8] | 167 | <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
|
---|
[eb2cf83a] | 168 | <seg>None</seg>
|
---|
[bccbdaea] | 169 | <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
|
---|
[5ba48e8] | 170 | /var/log/sa</seg>
|
---|
[eb2cf83a] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
| 173 |
|
---|
| 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="iostat">
|
---|
| 180 | <term><command>iostat</command></term>
|
---|
| 181 | <listitem>
|
---|
[481b3e8] | 182 | <para>reports CPU statistics and input/output
|
---|
[eb2cf83a] | 183 | statistics for devices and partitions.</para>
|
---|
| 184 | <indexterm zone="sysstat iostat">
|
---|
| 185 | <primary sortas="b-iostat">iostat</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="mpstat">
|
---|
| 191 | <term><command>mpstat</command></term>
|
---|
| 192 | <listitem>
|
---|
[bccbdaea] | 193 | <para>reports individual or combined processor related
|
---|
[5ba48e8] | 194 | statistics.</para>
|
---|
[eb2cf83a] | 195 | <indexterm zone="sysstat mpstat">
|
---|
| 196 | <primary sortas="b-mpstat">mpstat</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="sar">
|
---|
| 202 | <term><command>sar</command></term>
|
---|
| 203 | <listitem>
|
---|
[bccbdaea] | 204 | <para> collects, reports and saves system activity
|
---|
[5ba48e8] | 205 | information.</para>
|
---|
[eb2cf83a] | 206 | <indexterm zone="sysstat sar">
|
---|
| 207 | <primary sortas="b-sar">sar</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="sa1">
|
---|
| 213 | <term><command>sa1</command></term>
|
---|
| 214 | <listitem>
|
---|
[481b3e8] | 215 | <para>collects and stores binary data in the system activity daily
|
---|
[5ba48e8] | 216 | data file. It is a front end to <filename>sadc</filename> designed
|
---|
| 217 | to be run from cron.</para>
|
---|
[eb2cf83a] | 218 | <indexterm zone="sysstat sa1">
|
---|
| 219 | <primary sortas="b-sa1">sa1</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="sa2">
|
---|
| 225 | <term><command>sa2</command></term>
|
---|
| 226 | <listitem>
|
---|
[481b3e8] | 227 | <para>writes a summarized daily activity report. It is a front end
|
---|
[eb2cf83a] | 228 | to <command>sar</command> designed to be run from cron.</para>
|
---|
| 229 | <indexterm zone="sysstat sa2">
|
---|
| 230 | <primary sortas="b-sa2">sa2</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="sadc">
|
---|
| 236 | <term><command>sadc</command></term>
|
---|
| 237 | <listitem>
|
---|
[481b3e8] | 238 | <para>is the system activity data collector, used as a backend for
|
---|
[eb2cf83a] | 239 | <command>sar</command>.</para>
|
---|
| 240 | <indexterm zone="sysstat sadc">
|
---|
| 241 | <primary sortas="b-sadc">sadc</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
[5ba48e8] | 246 | <varlistentry id="sadf">
|
---|
| 247 | <term><command>sadf</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>is used for displaying the contents of data files created by
|
---|
| 250 | the <command>sar</command> command. But unlike
|
---|
| 251 | <command>sar</command>, <command>sadf</command> can write its data
|
---|
| 252 | in many different formats.</para>
|
---|
| 253 | <indexterm zone="sysstat sadf">
|
---|
| 254 | <primary sortas="b-sadf">sadf</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
[eb2cf83a] | 259 | </variablelist>
|
---|
| 260 |
|
---|
| 261 | </sect2>
|
---|
[f384a9d] | 262 |
|
---|
| 263 | </sect1>
|
---|