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