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