[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 |
|
---|
[7afe5ac4] | 7 | <!ENTITY sysstat-download-http "http://sebastien.godard.pagesperso-orange.fr/sysstat-&sysstat-version;.tar.xz">
|
---|
[dc2b407] | 8 | <!ENTITY sysstat-download-ftp " ">
|
---|
[bb3c618] | 9 | <!ENTITY sysstat-md5sum "cb625681a70b58e306d2564d4296a5ae">
|
---|
| 10 | <!ENTITY sysstat-size "876 KB">
|
---|
| 11 | <!ENTITY sysstat-buildsize "28 MB">
|
---|
[fb19ab2c] | 12 | <!ENTITY sysstat-time "0.1 SBU">
|
---|
[f384a9d] | 13 | ]>
|
---|
| 14 |
|
---|
[880c568] | 15 | <sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
|
---|
[eb2cf83a] | 16 | <?dbhtml filename="sysstat.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[880c568] | 19 | <title>Sysstat-&sysstat-version;</title>
|
---|
[eb2cf83a] | 20 |
|
---|
| 21 | <indexterm zone="sysstat">
|
---|
[880c568] | 22 | <primary sortas="a-Sysstat">Sysstat</primary>
|
---|
[eb2cf83a] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Sysstat</title>
|
---|
| 27 |
|
---|
[b1532549] | 28 | <para>
|
---|
| 29 | The <application>Sysstat</application> package contains utilities
|
---|
| 30 | to monitor system performance and usage activity.
|
---|
| 31 | <application>Sysstat</application> contains the <command>sar</command>
|
---|
| 32 | utility, common to many commercial Unixes, and tools you can schedule via
|
---|
| 33 | cron to collect and historize performance and activity data.
|
---|
| 34 | </para>
|
---|
[eb2cf83a] | 35 |
|
---|
[acd88fc] | 36 | &lfs113_checked;
|
---|
[fdc00738] | 37 |
|
---|
[eb2cf83a] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[b1532549] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&sysstat-download-http;"/>
|
---|
| 43 | </para>
|
---|
[eb2cf83a] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[b1532549] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&sysstat-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[eb2cf83a] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b1532549] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &sysstat-md5sum;
|
---|
| 53 | </para>
|
---|
[eb2cf83a] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b1532549] | 56 | <para>
|
---|
| 57 | Download size: &sysstat-size;
|
---|
| 58 | </para>
|
---|
[eb2cf83a] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b1532549] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &sysstat-buildsize;
|
---|
| 63 | </para>
|
---|
[eb2cf83a] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b1532549] | 66 | <para>
|
---|
| 67 | Estimated build time: &sysstat-time;
|
---|
| 68 | </para>
|
---|
[eb2cf83a] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
|
---|
| 73 |
|
---|
[b1532549] | 74 | <para role="recommended">
|
---|
| 75 | There are no build-time requirements for this package; however,
|
---|
| 76 | it is designed to be controlled by a cron daemon such as
|
---|
| 77 | <xref linkend="fcron" role="runtime"/>.
|
---|
| 78 | </para>
|
---|
[b058cd3] | 79 |
|
---|
[eb2cf83a] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of Sysstat</title>
|
---|
| 84 |
|
---|
[b1532549] | 85 | <para>
|
---|
| 86 | Install <application>Sysstat</application> by running the
|
---|
| 87 | following commands:
|
---|
| 88 | </para>
|
---|
[eb2cf83a] | 89 |
|
---|
[fdc00738] | 90 | <screen><userinput>sa_lib_dir=/usr/lib/sa \
|
---|
| 91 | sa_dir=/var/log/sa \
|
---|
| 92 | conf_dir=/etc/sysconfig \
|
---|
| 93 | ./configure --prefix=/usr \
|
---|
[fb19ab2c] | 94 | --disable-file-attr &&
|
---|
[eb2cf83a] | 95 | make</userinput></screen>
|
---|
| 96 |
|
---|
[b1532549] | 97 | <para>
|
---|
[f179b24] | 98 | This package does not come with a working test suite.
|
---|
[b1532549] | 99 | </para>
|
---|
[5ba48e8] | 100 |
|
---|
[b1532549] | 101 | <para>
|
---|
| 102 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 103 | </para>
|
---|
[eb2cf83a] | 104 |
|
---|
[58a8fab2] | 105 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 106 |
|
---|
[1552ac8] | 107 | <para revision="systemd">
|
---|
[eb07735] | 108 | Install the systemd unit by running the following commands as the
|
---|
[1552ac8] | 109 | <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[dfe5714] | 112 | <screen role="root" revision="systemd"><userinput>install -v -m644 sysstat.service /usr/lib/systemd/system/sysstat.service &&
|
---|
| 113 | install -v -m644 cron/sysstat-collect.service /usr/lib/systemd/system/sysstat-collect.service &&
|
---|
| 114 | install -v -m644 cron/sysstat-collect.timer /usr/lib/systemd/system/sysstat-collect.timer &&
|
---|
| 115 | install -v -m644 cron/sysstat-summary.service /usr/lib/systemd/system/sysstat-summary.service &&
|
---|
| 116 | install -v -m644 cron/sysstat-summary.timer /usr/lib/systemd/system/sysstat-summary.timer</userinput></screen>
|
---|
[1552ac8] | 117 |
|
---|
[d4b0dc1] | 118 | <para revision="systemd">
|
---|
| 119 | Fix the systemd unit by running the following command as the
|
---|
| 120 | <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
[ea3a605d] | 123 | <screen role="root" revision="systemd"><userinput>sed -i "/^Also=/d" /usr/lib/systemd/system/sysstat.service</userinput></screen>
|
---|
[d4b0dc1] | 124 |
|
---|
[eb2cf83a] | 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
[b1532549] | 130 | <para>
|
---|
| 131 | <envar>sa_lib_dir</envar>: This environment variable specifies the
|
---|
| 132 | location of the package-specific library directory.
|
---|
| 133 | </para>
|
---|
[5a195f0f] | 134 |
|
---|
[b1532549] | 135 | <para>
|
---|
| 136 | <envar>sa_dir</envar>: This environment variable specifies the
|
---|
| 137 | location of the directory containing the data files.
|
---|
| 138 | </para>
|
---|
[5a195f0f] | 139 |
|
---|
[b1532549] | 140 | <para>
|
---|
| 141 | <envar>conf_dir</envar>: This environment variable specifies the
|
---|
| 142 | location of the system configuration directory.
|
---|
| 143 | </para>
|
---|
[5a195f0f] | 144 |
|
---|
[b1532549] | 145 | <para>
|
---|
| 146 | <parameter>--disable-file-attr</parameter>: Do not set attributes on
|
---|
| 147 | files being installed. This parameter causes the installation to ignore
|
---|
| 148 | the man group variable resulting in the man files having
|
---|
| 149 | <systemitem class="username">root</systemitem>:
|
---|
| 150 | <systemitem class="groupname">root</systemitem> ownership.
|
---|
| 151 | </para>
|
---|
[5a195f0f] | 152 |
|
---|
[b1532549] | 153 | <note>
|
---|
| 154 | <para>
|
---|
| 155 | Run <command>./configure --help</command> to see other influential
|
---|
| 156 | environment variables you can pass to <command>configure</command>.
|
---|
| 157 | You may want to use the <envar>history</envar> and
|
---|
| 158 | <envar>compressafter</envar> variables to customize the amount of data
|
---|
| 159 | files kept on the system.
|
---|
| 160 | </para>
|
---|
| 161 | </note>
|
---|
[eb2cf83a] | 162 |
|
---|
| 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2 role="configuration">
|
---|
| 166 | <title>Configuring Sysstat</title>
|
---|
| 167 |
|
---|
[f1b1c20] | 168 | <sect3 id="sysstat-config">
|
---|
| 169 | <title>Config Files</title>
|
---|
| 170 |
|
---|
| 171 | <para>
|
---|
| 172 | <filename>/etc/sysconfig/sysstat</filename> and
|
---|
| 173 | <filename>/etc/sysconfig/sysstat.ioconf</filename>
|
---|
| 174 | </para>
|
---|
| 175 |
|
---|
| 176 | <indexterm zone="sysstat sysstat-config">
|
---|
| 177 | <primary sortas="e-etc-sysconfig-sysstat">/etc/sysconfig/sysstat</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | <indexterm zone="sysstat sysstat-config">
|
---|
| 180 | <primary sortas="e-etc-sysconfig-sysstat.ioconf">/etc/sysconfig/sysstat.ioconf</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 |
|
---|
| 183 | </sect3>
|
---|
| 184 |
|
---|
[eb2cf83a] | 185 | <sect3>
|
---|
| 186 | <title>Cron Information</title>
|
---|
| 187 |
|
---|
[b1532549] | 188 | <para>
|
---|
| 189 | To begin gathering <application>Sysstat</application> history
|
---|
| 190 | information, you must add to, or create a privileged user's crontab.
|
---|
| 191 | The history data location is
|
---|
| 192 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
| 193 | <application>Sysstat</application> utilities via cron must have write
|
---|
| 194 | access to this location.
|
---|
| 195 | </para>
|
---|
[eb2cf83a] | 196 |
|
---|
[b1532549] | 197 | <para>
|
---|
| 198 | Below is an example of what to install in the crontab. Adjust the
|
---|
| 199 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
| 200 | <command>man sa2</command> for information about the commands.
|
---|
| 201 | </para>
|
---|
[eb2cf83a] | 202 |
|
---|
| 203 | <screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
[f384a9d] | 204 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
[481b3e8] | 205 |
|
---|
[f384a9d] | 206 | # 7pm-8am activity reports every hour during weekdays
|
---|
| 207 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 208 |
|
---|
[f384a9d] | 209 | # Activity reports every hour on Saturday and Sunday
|
---|
| 210 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
[481b3e8] | 211 |
|
---|
[f384a9d] | 212 | # Daily summary prepared at 19:05
|
---|
[eb2cf83a] | 213 | 5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen>
|
---|
| 214 |
|
---|
[b1532549] | 215 | <para>
|
---|
| 216 | Ensure you submit the revised crontab to the cron daemon.
|
---|
| 217 | </para>
|
---|
[eb2cf83a] | 218 |
|
---|
| 219 | </sect3>
|
---|
| 220 |
|
---|
| 221 | <sect3 id="sysstat-init">
|
---|
| 222 | <title>System Startup Information</title>
|
---|
| 223 |
|
---|
| 224 | <indexterm zone="sysstat sysstat-init">
|
---|
| 225 | <primary sortas="f-sysstat">sysstat</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 |
|
---|
[b1532549] | 228 | <para revision="sysv">
|
---|
| 229 | At system startup, a LINUX RESTART message must be
|
---|
| 230 | inserted in the daily data file to reinitialize the kernel counters.
|
---|
| 231 | This can be automated by installing the
|
---|
| 232 | <filename>/etc/rc.d/init.d/sysstat</filename> init script included in
|
---|
| 233 | the <xref linkend="bootscripts"/> package using the following command
|
---|
| 234 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 235 | </para>
|
---|
[1552ac8] | 236 |
|
---|
| 237 | <screen role="root" revision="sysv"><userinput>make install-sysstat</userinput></screen>
|
---|
| 238 |
|
---|
[b1532549] | 239 | <para revision="systemd">
|
---|
| 240 | At system startup, a LINUX RESTART message must
|
---|
| 241 | be inserted in the daily data file to reinitialize the kernel counters.
|
---|
| 242 | This can be automated by enabling the previously installed systemd unit
|
---|
| 243 | by running the following command as the
|
---|
| 244 | <systemitem class="username">root</systemitem> user:
|
---|
| 245 | </para>
|
---|
[eb2cf83a] | 246 |
|
---|
[1552ac8] | 247 | <screen role="root" revision="systemd"><userinput>systemctl enable sysstat</userinput></screen>
|
---|
[eb2cf83a] | 248 |
|
---|
| 249 | </sect3>
|
---|
| 250 |
|
---|
| 251 | </sect2>
|
---|
| 252 |
|
---|
| 253 | <sect2 role="content">
|
---|
| 254 | <title>Contents</title>
|
---|
| 255 |
|
---|
| 256 | <segmentedlist>
|
---|
| 257 | <segtitle>Installed Programs</segtitle>
|
---|
| 258 | <segtitle>Installed Libraries</segtitle>
|
---|
| 259 | <segtitle>Installed Directories</segtitle>
|
---|
| 260 |
|
---|
| 261 | <seglistitem>
|
---|
[b1d3c72a] | 262 | <seg>cifsiostat, iostat, mpstat, pidstat, sadf, sar, and tapestat</seg>
|
---|
[eb2cf83a] | 263 | <seg>None</seg>
|
---|
[b9a81999] | 264 | <seg>/usr/lib/sa,
|
---|
[fb19ab2c] | 265 | /usr/share/doc/sysstat-&sysstat-version; and
|
---|
[59382ab] | 266 | /var/log/sa
|
---|
| 267 | </seg>
|
---|
[eb2cf83a] | 268 | </seglistitem>
|
---|
| 269 | </segmentedlist>
|
---|
| 270 |
|
---|
| 271 | <variablelist>
|
---|
| 272 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 273 | <?dbfo list-presentation="list"?>
|
---|
| 274 | <?dbhtml list-presentation="table"?>
|
---|
| 275 |
|
---|
[fdc00738] | 276 | <varlistentry id="cifsiostat">
|
---|
| 277 | <term><command>cifsiostat</command></term>
|
---|
| 278 | <listitem>
|
---|
[b1532549] | 279 | <para>
|
---|
| 280 | displays statistics about read and write operations on CIFS
|
---|
[4c24eb0a] | 281 | filesystems
|
---|
[b1532549] | 282 | </para>
|
---|
[fdc00738] | 283 | <indexterm zone="sysstat cifsiostat">
|
---|
| 284 | <primary sortas="b-cifsiostat">cifsiostat</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
[eb2cf83a] | 289 | <varlistentry id="iostat">
|
---|
| 290 | <term><command>iostat</command></term>
|
---|
| 291 | <listitem>
|
---|
[b1532549] | 292 | <para>
|
---|
| 293 | reports CPU statistics and input/output
|
---|
[4c24eb0a] | 294 | statistics for devices and partitions
|
---|
[b1532549] | 295 | </para>
|
---|
[eb2cf83a] | 296 | <indexterm zone="sysstat iostat">
|
---|
| 297 | <primary sortas="b-iostat">iostat</primary>
|
---|
| 298 | </indexterm>
|
---|
| 299 | </listitem>
|
---|
| 300 | </varlistentry>
|
---|
| 301 |
|
---|
[fdc00738] | 302 | <varlistentry id="mpstat">
|
---|
| 303 | <term><command>mpstat</command></term>
|
---|
[b058cd3] | 304 | <listitem>
|
---|
[b1532549] | 305 | <para>
|
---|
[4c24eb0a] | 306 | writes activities for each available processor
|
---|
[b1532549] | 307 | </para>
|
---|
[fdc00738] | 308 | <indexterm zone="sysstat mpstat">
|
---|
| 309 | <primary sortas="b-mpstat">mpstat</primary>
|
---|
[b058cd3] | 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
[5a195f0f] | 314 | <varlistentry id="pidstat">
|
---|
| 315 | <term><command>pidstat</command></term>
|
---|
| 316 | <listitem>
|
---|
[b1532549] | 317 | <para>
|
---|
| 318 | is used for monitoring individual tasks currently being managed
|
---|
[4c24eb0a] | 319 | by the Linux kernel
|
---|
[b1532549] | 320 | </para>
|
---|
[5a195f0f] | 321 | <indexterm zone="sysstat pidstat">
|
---|
| 322 | <primary sortas="b-pidstat">pidstat</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
| 326 |
|
---|
[5ba48e8] | 327 | <varlistentry id="sadf">
|
---|
| 328 | <term><command>sadf</command></term>
|
---|
| 329 | <listitem>
|
---|
[b1532549] | 330 | <para>
|
---|
| 331 | is used for displaying the contents of data files created by
|
---|
| 332 | the <command>sar</command> command. But unlike
|
---|
| 333 | <command>sar</command>, <command>sadf</command> can write its data
|
---|
[4c24eb0a] | 334 | in many different formats
|
---|
[b1532549] | 335 | </para>
|
---|
[5ba48e8] | 336 | <indexterm zone="sysstat sadf">
|
---|
| 337 | <primary sortas="b-sadf">sadf</primary>
|
---|
| 338 | </indexterm>
|
---|
| 339 | </listitem>
|
---|
| 340 | </varlistentry>
|
---|
| 341 |
|
---|
[fdc00738] | 342 | <varlistentry id="sar">
|
---|
| 343 | <term><command>sar</command></term>
|
---|
| 344 | <listitem>
|
---|
[b1532549] | 345 | <para>
|
---|
| 346 | is used for displaying the contents of elected cumulative activity
|
---|
[4c24eb0a] | 347 | counters in the operating system
|
---|
[b1532549] | 348 | </para>
|
---|
[fdc00738] | 349 | <indexterm zone="sysstat sar">
|
---|
| 350 | <primary sortas="b-sar">sar</primary>
|
---|
| 351 | </indexterm>
|
---|
| 352 | </listitem>
|
---|
| 353 | </varlistentry>
|
---|
| 354 |
|
---|
[b9a81999] | 355 | <varlistentry id="tapestat">
|
---|
| 356 | <term><command>tapestat</command></term>
|
---|
| 357 | <listitem>
|
---|
[b1532549] | 358 | <para>
|
---|
| 359 | is used for monitoring the activity of tape drives connected to
|
---|
[4c24eb0a] | 360 | a system
|
---|
[b1532549] | 361 | </para>
|
---|
[b9a81999] | 362 | <indexterm zone="sysstat tapestat">
|
---|
| 363 | <primary sortas="b-tapestat">tapestat</primary>
|
---|
| 364 | </indexterm>
|
---|
| 365 | </listitem>
|
---|
| 366 | </varlistentry>
|
---|
| 367 |
|
---|
[eb2cf83a] | 368 | </variablelist>
|
---|
| 369 |
|
---|
| 370 | </sect2>
|
---|
[f384a9d] | 371 |
|
---|
| 372 | </sect1>
|
---|