File: cifsiostat.in

package info (click to toggle)
sysstat 12.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 4,372 kB
  • sloc: ansic: 30,491; sh: 1,082; tcl: 756; makefile: 561; perl: 257; python: 202
file content (199 lines) | stat: -rw-r--r-- 4,757 bytes parent folder | download | duplicates (2)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
.TH CIFSIOSTAT 1 "JULY 2018" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
cifsiostat \- Report CIFS statistics.
.SH SYNOPSIS
.ie 'yes'@WITH_DEBUG@' \{
.B cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ --debuginfo ] [ --dec={ 0 | 1 | 2 } ] [ --human ] [
.I interval
.B [
.I count
.B ] ]
.\}
.el \{
.B cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ --dec={ 0 | 1 | 2 } ] [ --human ] [
.I interval
.B [
.I count
.B ] ]
.\}
.SH DESCRIPTION
The
.B cifsiostat
command displays statistics about read and write operations
on CIFS filesystems.

The
.I interval
parameter specifies the amount of time in seconds between
each report. The first report contains statistics for the time since
system startup (boot). Each subsequent report contains statistics
collected during the interval since the previous report.
A report consists of a CIFS header row followed by
a line of statistics for each CIFS filesystem that is mounted.
The
.I count
parameter can be specified in conjunction with the
.I interval
parameter. If the
.I count
parameter is specified, the value of
.I count
determines the number of reports generated at
.I interval
seconds apart. If the
.I interval
parameter is specified without the
.I count
parameter, the
.B cifsiostat
command generates reports continuously.

.SH REPORT
The CIFS report provides statistics for each mounted CIFS filesystem.
The report shows the following fields:

.B Filesystem:
.RS
This columns shows the mount point of the CIFS filesystem.

.RE
.B rB/s (rkB/s, rMB/s)
.RS
Indicate the average number of bytes (kilobytes, megabytes) read per second.

.RE
.B wB/s (wkB/s, wMB/s)
.RS
Indicate the average number of bytes (kilobytes, megabytes) written per second.

.RE
.B rop/s
.RS
Indicate the number of 'read' operations that were issued to the filesystem
per second.

.RE
.B wop/s
.RS
Indicate the number of 'write' operations that were issued to the filesystem
per second.

.RE
.B fo/s
.RS
Indicate the number of open files per second.

.RE
.B fc/s
.RS
Indicate the number of closed files per second.

.RE
.B fd/s
.RS
Indicate the number of deleted files per second.
.RE
.RE
.SH OPTIONS
.if 'yes'@WITH_DEBUG@' \{
.IP --debuginfo
Print debug output to stderr.
.\}
.IP "--dec={ 0 | 1 | 2 }"
Specify the number of decimal places to use (0 to 2, default value is 2).
.IP -h
Make the CIFS report easier to read by a human.
.B --human
is enabled implicitly with this option.
.IP --human
Print sizes in human readable format (e.g. 1.0k, 1.2M, etc.)
The units displayed with this option supersede any other default units (e.g.
kilobytes, sectors...) associated with the metrics.
.IP -k
Display statistics in kilobytes per second.
.IP -m
Display statistics in megabytes per second.
.IP -t
Print the time for each report displayed. The timestamp format may depend
on the value of the S_TIME_FORMAT environment variable (see below).
.IP -V
Print version number then exit.

.SH ENVIRONMENT
The
.B cifsiostat
command takes into account the following environment variables:

.IP S_COLORS
When this variable is set, display statistics in color on the terminal.
Possible values for this variable are
.IR never ,
.IR always
or
.IR auto
(the latter is the default).

Note: On Debian sysstems the colors are displayed by default when output is connected
to the terminal, even if this variable is not set (i.e. unset variable is treated as
if it were set to
.IR auto ).

Please note that the color (being red, yellow, or some other color) used to display a value
is not indicative of any kind of issue simply because of the color. It only indicates different
ranges of values.

.IP S_COLORS_SGR
Specify the colors and other attributes used to display statistics on the terminal.
Its value is a colon-separated list of capabilities that defaults to
.BR I=32;22:N=34;1:Z=34;22 .
Supported capabilities are:

.RS
.TP
.B I=
SGR substring for filesystem names.

.TP
.B N=
SGR substring for non-zero statistics values.

.TP
.B Z=
SGR substring for zero values.
.RE

.IP S_TIME_FORMAT
If this variable exists and its value is
.BR ISO
then the current locale will be ignored when printing the date in the report
header. The
.B cifsiostat
command will use the ISO 8601 format (YYYY-MM-DD) instead.
The timestamp displayed with option -t will also be compliant with ISO 8601
format.

.SH BUG
.I /proc
filesystem must be mounted for
.B cifsiostat
to work.

.SH FILE
.I /proc/fs/cifs/Stats
contains CIFS statistics.
.SH AUTHORS
Written by Ivana Varekova (varekova <at> redhat.com)

Maintained by Sebastien Godard (sysstat <at> orange.fr)
.SH SEE ALSO
.BR sar (1),
.BR pidstat (1),
.BR mpstat (1),
.BR vmstat (8),
.BR iostat (1),
.BR tapestat (1),
.BR nfsiostat (1)

.I https://github.com/sysstat/sysstat

.I http://pagesperso-orange.fr/sebastien.godard/