1
.TH SADC 8 "JUNE 2006" Linux "Linux User's Manual" -*- nroff -*-
3
sadc \- System activity data collector.
5
.B /usr/lib/sa/sadc [ -d ] [ -F ] [ -I ] [ -L ] [ -V ] [
15
command samples system data a specified number of times (
17
) at a specified interval measured in seconds (
19
). It writes in binary format to the specified
21
or to the standard output. If
25
uses the standard system activity daily data file, the
27
file, where the dd parameter indicates the current day.
30
collects all the data available from the kernel.
31
Exceptions are interrupts and disks data, for which the
32
relevant options must be explicitly passed to
38
parameter is not specified,
40
writes its data endlessly.
45
are not specified, a dummy record, which is used at system startup to mark
46
the time when the counter restarts from 0, will be written.
47
For example, one of the system startup script may write the restart mark to
48
the daily data file by the command entry:
50
.B "/usr/lib/sa/sadc -"
54
command is intended to be used as a backend to the
60
command only reports on local activities.
66
to report statistics for disks. By default
68
does not report disks activity to prevent data files from growing too large.
72
will be forced. If the file already exists and has not the format expected by
74
then it will be truncated. This may be particularly useful for daily data files
75
created by an older version of sadc and whose format is no longer compatible
80
to report statistics for all system interrupts. By default
82
only reports statistics for the total number of interrupts.
85
will try to get an exclusive lock on the
87
before writing to it or truncating it. Failure to get the lock is fatal,
88
except in the case of trying to write a normal (i.e. not a dummy and not
89
a header) record to an existing file, in which case
91
will try again at the next interval. Usually, the only reason a lock
92
would fail would be if another
94
process were also writing to the file. This can happen when cron is used
97
If the system is under heavy load, an old
99
might still be running when cron starts a new one. Without locking,
100
this situation can result in a corrupted system activity file.
102
Print version number then exit.
107
command takes into account the following environment variable:
110
If this variable exists and its value is
114
will save its data in UTC time.
116
will also use UTC time instead of local time to determine the current
117
daily data file located in the
121
.B /usr/lib/sa/sadc 1 10 /tmp/datafile
123
Write 10 records of one second intervals to the /tmp/datafile binary file.
126
filesystem must be mounted for the
130
All the statistics are not necessarily available, depending on the kernel version used.
132
.IR /var/log/sa/sa dd
134
Indicate the daily data file, where the
136
parameter is a number representing the day of the month.
140
contains various files with system statistics.
142
Sebastien Godard (sysstat <at> wanadoo.fr)
152
.I http://perso.orange.fr/sebastien.godard/