source: general/sysutils/sysstat.xml@ 518538f

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 518538f was 518538f, checked in by Randy McMurchy <randy@…>, 19 years ago

Standardized the 'Estimated disk space required' text

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

  • Property mode set to 100644
File size: 5.6 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-&sysstat-version;.tar.gz">
8 <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.gz">
9 <!ENTITY sysstat-size "124 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
29collect and 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
77information, you must add to, or create a privileged user's crontab. The
78default history data location is
79<filename class="directory">/var/log/sa</filename>. The user running
80<application>Sysstat</application> utilities via cron must have write
81access to this location.</para>
82
83<para>Below is an example of what to install in the crontab. Adjust the
84parameters to suit your needs. Use <command>man sa1</command> and
85<command>man sa2</command> for information about the commands.</para>
86
87<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
880 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
89
90# 7pm-8am activity reports every hour during weekdays
910 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
92
93# Activity reports every hour on Saturday and Sunday
940 * * * 0,6 /usr/lib/sa/sa1 &amp;
95
96# Daily summary prepared at 19:05
975 19 * * * /usr/lib/sa/sa2 -A &amp;</userinput></screen>
98
99<para>Ensure you submit the revised crontab to the cron daemon.</para>
100</sect3>
101
102<sect3><title>System startup information</title>
103
104<para>At system startup, a LINUX RESTART message must be inserted in the daily
105data file to reinitialize the kernel counters. This can be automated by
106installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
107included in the <xref linkend="intro-important-bootscripts"/> package using
108the following command:</para>
109<screen><userinput><command>make install-sysstat</command></userinput></screen>
110</sect3>
111
112</sect2>
113
114<sect2>
115<title>Contents</title>
116
117<para>The <application>Sysstat</application> package contains
118<command>iostat</command>,
119<command>mpstat</command>,
120<command>sar</command>,
121<filename>sa1</filename>,
122<filename>sa2</filename> and
123<filename>sadc</filename>.</para>
124
125</sect2>
126
127<sect2><title>Description</title>
128
129<sect3><title>iostat</title>
130<para><command>iostat</command> reports <acronym>CPU</acronym> statistics and
131input/output statistics for devices and partitions.</para></sect3>
132
133<sect3><title>mpstat</title>
134<para><command>mpstat</command> reports individual or combined processor
135related statistics.</para></sect3>
136
137<sect3><title>sar</title>
138<para><command>sar</command> collects, reports and saves system activity
139information.</para></sect3>
140
141<sect3><title>sa1</title>
142<para><filename>sa1</filename> collects and stores binary data in the system
143activity daily data file. It is a front end to <filename>sadc</filename>
144designed to be run from cron.</para></sect3>
145
146<sect3><title>sa2</title>
147<para><filename>sa2</filename> writes a summarized daily activity report. It
148is a front end to <command>sar</command> designed to be run from
149cron.</para></sect3>
150
151<sect3><title>sadc</title>
152<para><filename>sadc</filename> is the system activity data collector, used as
153a backend for <command>sar</command>.</para></sect3>
154
155</sect2>
156
157</sect1>
Note: See TracBrowser for help on using the repository browser.