source: general/sysutils/sysstat.xml@ a0f03b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a0f03b0 was a0f03b0, checked in by Archaic <archaic@…>, 20 years ago

Inserting sect1info

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2591 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sysstat-download-http "http://perso.wanadoo.fr/sebastien.godard/sysstat-5.0.5.tar.gz">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-5.0.5.tar.gz">
9 <!ENTITY sysstat-size "123 KB">
10 <!ENTITY sysstat-buildsize "1.2 MB">
11 <!ENTITY sysstat-time ".12 SBU">
12]>
13
14<sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
15<sect1info>
16<othername>$LastChangedBy: $</othername>
17<date>$Date: $</date>
18</sect1info>
19<?dbhtml filename="sysstat.html"?>
20<title>Sysstat-&sysstat-version;</title>
21
22<sect2>
23<title>Introduction to <application>Sysstat</application></title>
24
25<para>The <application>Sysstat</application> package contains utilities to
26monitor system performance and usage activity.
27<application>Sysstat</application> contains the <command>sar</command> utility,
28common to many commercial Unixes, and tools you can schedule via cron to collect
29and historize performance and activity data.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para></listitem>
34<listitem><para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para></listitem>
35<listitem><para>Download size: &sysstat-size;</para></listitem>
36<listitem><para>Estimated Disk space required: &sysstat-buildsize;</para></listitem>
37<listitem><para>Estimated build time: &sysstat-time;</para></listitem></itemizedlist>
38</sect3>
39
40<sect3><title><application>Sysstat</application> dependencies</title>
41<sect4><title>Recommended</title>
42<para><xref linkend="fcron"/></para></sect4>
43</sect3>
44
45</sect2>
46
47<sect2>
48<title>Installation of <application>Sysstat</application></title>
49
50<para>Install <application>Sysstat</application> by running the
51following commands:</para>
52
53<screen><userinput><command>make config &amp;&amp;
54make &amp;&amp;
55make install</command></userinput></screen>
56
57</sect2>
58
59<sect2>
60<title>Command explanations</title>
61
62<para><command>make config</command>: Runs the interactive configuration
63process. The first question prompts you for an "Installation directory".
64Reply with <filename class="directory">/usr</filename>, as this is equivalent
65to <application>Autoconf</application>'s <parameter>--prefix=/usr</parameter>
66parameter to <command>configure</command>. For all other prompts, you may
67press <command>Enter</command> to accept the (very sane) defaults.</para>
68
69</sect2>
70
71<sect2>
72<title>Configuring <application>Sysstat</application></title>
73
74<sect3><title>Cron information</title>
75
76<para>To begin gathering <application>Sysstat</application> history information,
77you must add to, or create a privileged user's crontab. The default history
78data location is <filename class="directory">/var/log/sa</filename>. The user
79running <application>Sysstat</application> utilities via cron must have write
80access to this location.</para>
81
82<para>Below is an example of what to install in the crontab. Adjust the
83parameters to suit your needs. Use <command>man sa1</command> and
84<command>man sa2</command> for information about the commands.</para>
85
86<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
870 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
88
89# 7pm-8am activity reports every hour during weekdays
900 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
91
92# Activity reports every hour on Saturday and Sunday
930 * * * 0,6 /usr/lib/sa/sa1 &amp;
94
95# Daily summary prepared at 19:05
965 19 * * * /usr/lib/sa/sa2 -A &amp;</userinput></screen>
97
98<para>Ensure you submit the revised crontab to the cron daemon.</para>
99</sect3>
100
101<sect3><title>System startup information</title>
102
103<para>At system startup, a LINUX RESTART message must be inserted in the daily
104data file to reinitialize the kernel counters. This can be automated by
105installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
106included in the <xref linkend="intro-important-bootscripts"/> package using
107the following command:</para>
108<screen><userinput><command>make install-sysstat</command></userinput></screen>
109</sect3>
110
111</sect2>
112
113<sect2>
114<title>Contents</title>
115
116<para>The <application>Sysstat</application> package contains
117<command>iostat</command>,
118<command>mpstat</command>,
119<command>sar</command>,
120<filename>sa1</filename>,
121<filename>sa2</filename> and
122<filename>sadc</filename>.</para>
123
124</sect2>
125
126<sect2><title>Description</title>
127
128<sect3><title>iostat</title>
129<para><command>iostat</command> reports <acronym>CPU</acronym> statistics and
130input/output statistics for devices and partitions.</para></sect3>
131
132<sect3><title>mpstat</title>
133<para><command>mpstat</command> reports individual or combined processor
134related statistics.</para></sect3>
135
136<sect3><title>sar</title>
137<para><command>sar</command> collects, reports and saves system activity
138information.</para></sect3>
139
140<sect3><title>sa1</title>
141<para><filename>sa1</filename> collects and stores binary data in the system
142activity daily data file. It is a front end to <filename>sadc</filename>
143designed to be run from cron.</para></sect3>
144
145<sect3><title>sa2</title>
146<para><filename>sa2</filename> writes a summarized daily activity report. It
147is a front end to <command>sar</command> designed to be run from
148cron.</para></sect3>
149
150<sect3><title>sadc</title>
151<para><filename>sadc</filename> is the system activity data collector, used as
152a backend for <command>sar</command>.</para></sect3>
153
154</sect2>
155
156</sect1>
Note: See TracBrowser for help on using the repository browser.