[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">
|
---|
[dc2b407] | 8 | <!ENTITY sysstat-download-ftp " ">
|
---|
| 9 | <!ENTITY sysstat-md5sum "688b34df4828a7575c5b44df88d1d910">
|
---|
| 10 | <!ENTITY sysstat-size "280 KB">
|
---|
| 11 | <!ENTITY sysstat-buildsize "7.1 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 |
|
---|
[dc2b407] | 38 | &lfs72_checked;
|
---|
[fdc00738] | 39 |
|
---|
[eb2cf83a] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &sysstat-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &sysstat-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &sysstat-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &sysstat-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
|
---|
| 63 |
|
---|
[b058cd3] | 64 | <para>There are no build-time requirements for this package; however,
|
---|
| 65 | it is designed to be controlled by a cron daemon such as
|
---|
| 66 | <xref linkend="fcron"/>.</para>
|
---|
| 67 |
|
---|
[1039de3] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/sysstat"/></para>
|
---|
| 70 |
|
---|
[eb2cf83a] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of Sysstat</title>
|
---|
| 75 |
|
---|
[481b3e8] | 76 | <para>Install <application>Sysstat</application> by running the
|
---|
[eb2cf83a] | 77 | following commands:</para>
|
---|
| 78 |
|
---|
[fdc00738] | 79 | <screen><userinput>sa_lib_dir=/usr/lib/sa \
|
---|
| 80 | sa_dir=/var/log/sa \
|
---|
| 81 | conf_dir=/etc/sysconfig \
|
---|
| 82 | ./configure --prefix=/usr \
|
---|
| 83 | --disable-man-group &&
|
---|
[eb2cf83a] | 84 | make</userinput></screen>
|
---|
| 85 |
|
---|
[5ba48e8] | 86 | <para>This package does not come with a test suite.</para>
|
---|
| 87 |
|
---|
[eb2cf83a] | 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 89 |
|
---|
[58a8fab2] | 90 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 91 |
|
---|
[eb2cf83a] | 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="commands">
|
---|
| 95 | <title>Command Explanations</title>
|
---|
| 96 |
|
---|
[5a195f0f] | 97 | <para><envar>sa_lib_dir</envar>: This environment variable specifies the
|
---|
| 98 | location of the package-specific library directory.</para>
|
---|
| 99 |
|
---|
| 100 | <para><envar>sa_dir</envar>: This environment variable specifies the
|
---|
| 101 | location of the directory containing the data files.</para>
|
---|
| 102 |
|
---|
| 103 | <para><envar>conf_dir</envar>: This environment variable specifies the
|
---|
| 104 | location of the system configuration directory.</para>
|
---|
| 105 |
|
---|
| 106 | <para><parameter>--disable-man-group</parameter>: This parameter causes
|
---|
| 107 | the installation to ignore the man group variable resulting in the man
|
---|
| 108 | files having
|
---|
| 109 | <systemitem class="username">root</systemitem>:<systemitem class="groupname">root</systemitem>
|
---|
| 110 | ownership.</para>
|
---|
| 111 |
|
---|
| 112 | <para>Run <command>./configure --help</command> to see other influential
|
---|
| 113 | environment variables you can pass to <command>configure</command>. You may
|
---|
| 114 | want to use the <envar>history</envar> and <envar>compressafter</envar>
|
---|
| 115 | variables to customize the amount of data files kept on the system.</para>
|
---|
[eb2cf83a] | 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="configuration">
|
---|
| 120 | <title>Configuring Sysstat</title>
|
---|
| 121 |
|
---|
| 122 | <sect3>
|
---|
| 123 | <title>Cron Information</title>
|
---|
| 124 |
|
---|
[481b3e8] | 125 | <para>To begin gathering <application>Sysstat</application> history
|
---|
| 126 | information, you must add to, or create a privileged user's crontab. The
|
---|
[5a195f0f] | 127 | history data location is
|
---|
[481b3e8] | 128 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
| 129 | <application>Sysstat</application> utilities via cron must have write
|
---|
[eb2cf83a] | 130 | access to this location.</para>
|
---|
| 131 |
|
---|
| 132 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
| 133 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
| 134 | <command>man sa2</command> for information about the commands.</para>
|
---|
| 135 |
|
---|
| 136 | <screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
[f384a9d] | 137 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
[481b3e8] | 138 |
|
---|
[f384a9d] | 139 | # 7pm-8am activity reports every hour during weekdays
|
---|
| 140 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 141 |
|
---|
[f384a9d] | 142 | # Activity reports every hour on Saturday and Sunday
|
---|
| 143 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 144 |
|
---|
[f384a9d] | 145 | # Daily summary prepared at 19:05
|
---|
[eb2cf83a] | 146 | 5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen>
|
---|
| 147 |
|
---|
| 148 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
| 149 |
|
---|
| 150 | </sect3>
|
---|
| 151 |
|
---|
| 152 | <sect3 id="sysstat-init">
|
---|
| 153 | <title>System Startup Information</title>
|
---|
| 154 |
|
---|
| 155 | <indexterm zone="sysstat sysstat-init">
|
---|
| 156 | <primary sortas="f-sysstat">sysstat</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 |
|
---|
[5ba48e8] | 159 | <para>At system startup, a LINUX RESTART message must be inserted in the
|
---|
| 160 | daily data file to reinitialize the kernel counters. This can be
|
---|
| 161 | automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
|
---|
[5254d12] | 162 | init script included in the <xref linkend="bootscripts"/>
|
---|
[bccbdaea] | 163 | package using the following command as the
|
---|
[5ba48e8] | 164 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[eb2cf83a] | 165 |
|
---|
| 166 | <screen role="root"><userinput>make install-sysstat</userinput></screen>
|
---|
| 167 |
|
---|
| 168 | </sect3>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="content">
|
---|
| 173 | <title>Contents</title>
|
---|
| 174 |
|
---|
| 175 | <segmentedlist>
|
---|
| 176 | <segtitle>Installed Programs</segtitle>
|
---|
| 177 | <segtitle>Installed Libraries</segtitle>
|
---|
| 178 | <segtitle>Installed Directories</segtitle>
|
---|
| 179 |
|
---|
| 180 | <seglistitem>
|
---|
[dc2b407] | 181 | <seg>cifsiostat, iostat, mpstat, nsfiostat, pidstat, sadf, and sar</seg>
|
---|
[eb2cf83a] | 182 | <seg>None</seg>
|
---|
[bccbdaea] | 183 | <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
|
---|
[5ba48e8] | 184 | /var/log/sa</seg>
|
---|
[eb2cf83a] | 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
[fdc00738] | 193 | <varlistentry id="cifsiostat">
|
---|
| 194 | <term><command>cifsiostat</command></term>
|
---|
| 195 | <listitem>
|
---|
[0d7900a] | 196 | <para>displays statistics about read and write operations on CIFS
|
---|
[fdc00738] | 197 | filesystems.</para>
|
---|
| 198 | <indexterm zone="sysstat cifsiostat">
|
---|
| 199 | <primary sortas="b-cifsiostat">cifsiostat</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
[eb2cf83a] | 204 | <varlistentry id="iostat">
|
---|
| 205 | <term><command>iostat</command></term>
|
---|
| 206 | <listitem>
|
---|
[481b3e8] | 207 | <para>reports CPU statistics and input/output
|
---|
[eb2cf83a] | 208 | statistics for devices and partitions.</para>
|
---|
| 209 | <indexterm zone="sysstat iostat">
|
---|
| 210 | <primary sortas="b-iostat">iostat</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
[fdc00738] | 215 | <varlistentry id="mpstat">
|
---|
| 216 | <term><command>mpstat</command></term>
|
---|
[b058cd3] | 217 | <listitem>
|
---|
[fdc00738] | 218 | <para>writes activities for each available processor.</para>
|
---|
| 219 | <indexterm zone="sysstat mpstat">
|
---|
| 220 | <primary sortas="b-mpstat">mpstat</primary>
|
---|
[b058cd3] | 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
[fdc00738] | 225 | <varlistentry id="nfsiostat">
|
---|
| 226 | <term><command>nfsiostat</command></term>
|
---|
[eb2cf83a] | 227 | <listitem>
|
---|
[0d7900a] | 228 | <para>displays statistics about read and write operations on NFS
|
---|
[fdc00738] | 229 | filesystems.</para>
|
---|
| 230 | <indexterm zone="sysstat nfsiostat">
|
---|
| 231 | <primary sortas="b-nfsiostat">nfsiostat</primary>
|
---|
[eb2cf83a] | 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
[5a195f0f] | 236 | <varlistentry id="pidstat">
|
---|
| 237 | <term><command>pidstat</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>is used for monitoring individual tasks currently being managed
|
---|
| 240 | by the Linux kernel.</para>
|
---|
| 241 | <indexterm zone="sysstat pidstat">
|
---|
| 242 | <primary sortas="b-pidstat">pidstat</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
[5ba48e8] | 247 | <varlistentry id="sadf">
|
---|
| 248 | <term><command>sadf</command></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>is used for displaying the contents of data files created by
|
---|
| 251 | the <command>sar</command> command. But unlike
|
---|
| 252 | <command>sar</command>, <command>sadf</command> can write its data
|
---|
| 253 | in many different formats.</para>
|
---|
| 254 | <indexterm zone="sysstat sadf">
|
---|
| 255 | <primary sortas="b-sadf">sadf</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
[fdc00738] | 260 | <varlistentry id="sar">
|
---|
| 261 | <term><command>sar</command></term>
|
---|
| 262 | <listitem>
|
---|
[0d7900a] | 263 | <para>is used for displaying the contents of elected cumulative activity
|
---|
[fdc00738] | 264 | counters in the operating system.</para>
|
---|
| 265 | <indexterm zone="sysstat sar">
|
---|
| 266 | <primary sortas="b-sar">sar</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
[eb2cf83a] | 271 | </variablelist>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
[f384a9d] | 274 |
|
---|
| 275 | </sect1>
|
---|