File: sadc.8

package info (click to toggle)
sysstat 4.0.4-1woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 760 kB
  • ctags: 565
  • sloc: ansic: 4,569; tcl: 586; makefile: 321; sh: 259; perl: 29
file content (113 lines) | stat: -rw-r--r-- 2,416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.TH SADC 8 "DECEMBER 1999" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
sadc \- System activity data collector.
.SH SYNOPSIS
.B /usr/lib/sa/sadc [ -I ] [ -V ] [ -x
.I pid
.B ] [ -X
.I pid
.B ] [
.I interval
.B [
.I count
.B ] ] [
.I outfile
.B ]
.SH DESCRIPTION
The
.B sadc
command samples system data a specified number of times (
.I count
) at a specified interval measured in seconds (
.I interval
). It writes in binary format to the specified
.I outfile
or to the standard output. If
.I outfile
is set to -, then
.B sadc
uses the standard system activity daily data file, the
.IR /var/log/sa/sa dd
file, where the dd parameter indicates the current day.
When the
.I count
parameter is not specified,
.B sadc
writes its data endlessly.
When both
.I interval
and
.I count
are not specified, a dummy record, which is used at system startup to mark
the time when the counter restarts from 0, will be written.
For example, one of the system startup script may write the restart mark to
the daily data file by the command entry:

.B "/usr/lib/sa/sadc -"

The
.B sadc
command is intended to be used as a backend to the
.B sar
command.

Note: The
.B sadc
command reports only local activity.

.SH OPTIONS
.IP -I
Tell
.B sadc
to report statistics for all system interrupts. By default,
.B sadc
only reports statistics for the total number of interrupts.
.IP -V
Print version number and usage then exit.
.IP "-x pid"
Tell
.B sadc
to report statistics for the process whose PID is
.I pid.
.IP "-X pid"
Tell
.B sadc
to report statistics for the child processes of the process whose PID is
.I pid.
The SELF keyword indicates that statistics are to be reported for the
child processes of the
.B sadc
process itself.

.SH EXAMPLES
.B /usr/lib/sa/sadc 1 10 /tmp/datafile
.RS
Write 10 records of one second intervals to the /tmp/datafile binary file.
.SH BUGS
.I /proc
filesystem must be mounted for the
.B sadc
command to work.

All the statistics are not necessarily available, depending on the kernel version used.
.SH FILES
.IR /var/log/sa/sa dd
.RS
Indicate the daily data file, where the
.B dd
parameter is a number representing the day of the month.

.RE
.IR /proc
contains various files with system statistics.
.SH AUTHOR
Sebastien Godard <sebastien.godard@wanadoo.fr>
.SH SEE ALSO
.BR sar (1),
.BR sa1 (8),
.BR sa2 (8),
.BR mpstat (1),
.BR iostat (1),
.BR vmstat (8)

.I http://perso.wanadoo.fr/sebastien.godard/