[go: up one dir, main page]

File: atoprc.5

package info (click to toggle)
atop 2.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,328 kB
  • sloc: ansic: 35,620; python: 257; sh: 248; makefile: 193
file content (454 lines) | stat: -rw-r--r-- 12,400 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
.TH ATOPRC 5 "January 2024" "Linux"
.SH NAME
.B atoprc
- atop/atopsar related rcfile
.SH DESCRIPTION
This manual page documents the rcfile of the
.I atop
and
.I atopsar
commands.
These commands can be used to monitor the system and process load on a
Linux system.
.PP
The atoprc file contains the default settings. These settings are read
during startup, first from the system-wide rcfile
.I /etc/atoprc
and after that from the user-specific rcfile
.I ~/.atoprc
(so system-wide settings can be overruled by an individual user).
The options in both rcfiles are identical.
.PP
.SH OPTIONS
.PP
The rcfile contains keyword-value pairs, one on every line (blank lines
and lines starting with a #-sign are ignored).
.br
The following keywords can be specified:
.PP
.TP 4
.B flags
A list of default flags for
.B atop
can be defined here. The flags which are allowed
are 't', 'B', 'H', 'G', '2' till '9', 'g', 'm', 'd', 'n', 'u', 'p', 's', 'c', 'v',
\&'C', 'M', 'D', 'N', 'A',
\&'a', 'y', 'Y', 'f', 'F', 'R', '1', 'e', 'E' and 'x'.
.PP
.TP 4
.B twindir
The default absolute path name of the temporary directory in which the twin file should be allocated.
.PP
.TP 4
.B interval
The default interval value in seconds.
.PP
.TP 4
.B linelen
The length of a screen line when sending output to a file or pipe (default 80).
.PP
.TP 4
.B username
Regular expression or one numerical UID to select the users for which
(active) processes will be shown.
.PP
.TP 4
.B procname
The default regular expression for the process names to be shown.
.PP
.TP 4
.B maxlinecpu
The maximum number of active CPUs that will be shown.
.PP
.TP 4
.B maxlinegpu
The maximum number of active GPUs that will be shown.
.PP
.TP 4
.B maxlinelvm
The maximum number of active logical volumes that will be shown.
.PP
.TP 4
.B maxlinemdd
The maximum number of active multiple devices that will be shown.
.PP
.TP 4
.B maxlinedisk
The maximum number of active disks that will be shown.
.PP
.TP 4
.B maxlinenfsm
The maximum number of NFS mounts that will be shown on an NFS client.
.PP
.TP 4
.B maxlineintf
The maximum number of active network interfaces that will be shown.
.PP
.TP 4
.B maxlinecont
The maximum number of active containers that will be shown.
.PP
.TP 4
.B maxlineifb
The maximum number of Infiniband ports that will be shown.
.PP
.TP 4
.B maxlinenuma
The maximum number of NUMA node metrics that will be shown.
Notice that two lines are shown for each NUMA node.
.PP
.TP 4
.B maxlinellc
The maximum number of lines with LLC metrics that will be shown.
.PP
.TP 4
.B cpucritperc
The busy percentage considered critical for a processor
(see section COLORS in the man-page of the
.I atop
command).
This percentage is used to determine 
a weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B dskcritperc
The busy percentage considered critical for a disk
(see section COLORS in the man-page of the
.I atop
command).
This percentage is used to determine 
a weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B netcritperc
The busy percentage considered critical for a network interface
(see section COLORS in the man-page of the
.I atop
command).
This percentage is used to determine 
a weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B memcritperc
The percentage considered critical for memory utilization
(see section COLORS in the man-page of the
.I atop
command).
This percentage is used to determine 
a weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B swpcritperc
The occupation percentage considered critical for swap space
(see section COLORS in the man-page of the
.I atop
command).
This percentage is used to determine 
a weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B swoutcritsec
The number of pages swapped out per second considered critical for 
for memory utilization
(see section COLORS in the man-page of the
.I atop
command).
This threshold is used in combination with 'memcritperc' to determine a
weighted percentage for line coloring and sorting of active processes
in text mode.
When this value is zero, no line coloring or automatic sorting is performed
for this resource.
.PP
.TP 4
.B almostcrit
A percentage of the critical percentage to determine if the resource
is almost critical
(see section COLORS in the man-page of the
.I atop
command).
When this value is zero, no line coloring for `almost critical' is
performed.
.PP
.TP 4
.B cpubarwidth
Number of columns used per bar in the processor bar graph.
The default value is 0 which means that the bar width will
be scaled automatically (the wider the terminal, the more
columns per bar up to a maximum of three).
With the value 1, 2 or 3 the number of bars can be statically
pinned to that number of columns, with one column of white
space in between the bars.
.PP
.TP 4
.B colorinfo
Definition of color name for information messages (default: green)
in text mode.
.br
Allowed colors are: red green yellow blue magenta cyan black white.
.PP
.TP 4
.B colorthread
Definition of color name for thread-specific lines when using
the 'y' option (default: yellow).
.br
Allowed colors are: red green yellow blue magenta cyan black white.
.PP
.TP 4
.B coloralmost
Definition of color name for almost critical resources (default: cyan)
in text mode.
.br
Allowed colors are: red green yellow blue magenta cyan black white.
.PP
.TP 4
.B colorcritical
Definition of color name for critical resources (default: red)
in text mode.
.br
Allowed colors are: red green yellow blue magenta cyan black white.
.PP
.TP 4
.B atopsarflags
A list of default flags for
.B atopsar
can be defined here. The flags that are allowed
are 'S', 'x', 'C', 'M', 'H', 'a', 'A' and the flags to select
one or more specific reports.
.PP
.TP 4
.B perfevents
Defines whether or not the CPU cycle counter should be retrieved
by
.B atop
via the 'perf' counters. The values 'auto' (default), 'enable' 
or 'disable' can be specified. In case of 'auto', the CPU cycle
counter will not be retrieved on virtual machines due to the
overhead of reading this counter in a guest.
.PP
.TP 4
.B pacctdir
The name of the topdirectory used by the
.B atopacctd
daemon. In this directory, the daemon creates a subdirectory 
.B pacct_shadow.d
in which files will be written containing the process accounting records.
The default topdirectory is
.B /run
and this option only has to be specified when the
.B atopacctd
daemon is started with an alternative topdirectory as command line argument.
.br
This option can only be specified in the 
.B /etc/atoprc
file (on system level)!
.PP
An example of the
.B /etc/atoprc
or
.B ~/.atoprc
file:
.TP 8
\ 
.br
flags\ \ \ \ \ \ \ \ \ Aaf
.br
interval\ \ \ \ \ \ 5
.br
username
.br
procname
.br
maxlinecpu\ \ \ \ 4
.br
maxlinedisk\ \ \ 10
.br
maxlineintf\ \ \ 5
.br
cpucritperc\ \ \ 80
.br
almostcrit\ \ \ \ 90
.br
atopsarflags\ \ CMH
.br
ownprocline\ \ \ PID:50 VGROW:40 RGROW:45 COMMAND-LINE:50
.br
ownpagline\ \ \ \ PAGSCAN:3 BLANKBOX:0 PAGSWIN:3 PAGSWOUT:7
.PP
The keywords 'ownprocline' and 'ownpagline' are explained in the
subsequent section.
.SH OWN DEFINITION OF OUTPUT LINE
Via the rcfile it is possible to define the layout of the output lines
yourself, i.e. you can define the layout of one line with process information
with the keyword 'ownprocline' (to be selected with the key 'o'
or the flag \-o) and you can redefine all lines with system information.
.PP
The layout of an output-line can be defined as follows
(notice that this should be specified as one line in the rcfile):
.PP
\ \ \ keyword\ \ \ <columnid>:<prio> [<columnid>:<prio> ...]
.PP
The
.B columnid
is the symbolic name of a column that should shown at this position
in the output line.
.br
The
.B prio
is a positive integer value that determines which columns have precedence
whenever not all specified columns fit into the current screen-width.
The higher value, the higher priority.
.br
The column-specifications should be separated by a space. The order
in which columns have been specified is the order in which they will be
shown, with respect to their priority (columns that do not fit, will be
dropped dynamically).
.PP
A special columnid for system lines is 'BLANKBOX'. This indicates
that an empty column is required at this position. Also this
special columnid is followed by a priority (usually low). 
.PP
The following definition can be specified for process information:
.PP
.TP 4
.B ownprocline
The columnids are the names of the columns that are shown in the
normal output of the process-related lines that are shown by
.I atop
such as 'PID', 'CMD', 'S', ....
The only exception is the special columnid 'SORTITEM' that is used to
show one of the columns CPU%/DSK%/MEM%/NET%, depending on the chosen
sort-criterium.
.br
An example of a user-defined process line:
.PP
.TP 8
\ 
ownprocline\ \ \ PID:20 PPID:10 SYSCPU:15 USRCPU:15
VGROW:14 VSIZE:12 RGROW:14 RSIZE:12 ST:8 EXC:7 S:11 SORTITEM:18 CMD:20
.PP
The following definitions are used internally by
.I atop
as the default system lines (you can redefine each of them in the
rcfile as one line):
.PP
.TP 4
.B ownsysprcline
Redefinition of line labeled with 'PRC':
.PP
.TP 8
\ 
ownsysprcline\ \ \ PRCSYS:8 PRCUSER:8 BLANKBOX:0 PRCNPROC:7 PRCNZOMBIE:5 PRCCLONES:4 BLANKBOX:0 PRCNNEXIT:6
.PP
.TP 4
.B ownallcpuline
Redefinition of line labeled with 'CPU' for total CPU-utilization:
.PP
.TP 8
\ 
ownallcpuline\ \ \ CPUSYS:8 CPUUSER:7 CPUIRQ:4 BLANKBOX:0 CPUIDLE:5 CPUWAIT:6 BLANKBOX:0 CPUSTEAL:1 CPUGUEST:3
.PP
.TP 4
.B ownonecpuline
Redefinition of line labeled with 'CPU' for utilization of one CPU:
.PP
.TP 8
\ 
ownonecpuline\ \ \ CPUISYS:8 CPUIUSER:7 CPUIIRQ:4 BLANKBOX:0 CPUIIDLE:5 CPUIWAIT:6 BLANKBOX:0 CPUISTEAL:1 CPUIGUEST:3
.PP
.TP 4
.B owncplline
Redefinition of line labeled with 'CPL':
.PP
.TP 8
\ 
owncplline\ \ \ CPLAVG1:4 CPLAVG5:3 CPLAVG15:2 BLANKBOX:0 CPLCSW:6 CPLINTR:5 BLANKBOX:0 CPLNUMCPU:1
.PP
.TP 4
.B ownmemline
Redefinition of line labeled with 'MEM':
.PP
.TP 8
\ 
ownmemline\ \ \ MEMTOT:2 MEMFREE:5 MEMCACHE:3 MEMDIRTY:1 MEMBUFFER:3 MEMSLAB:3 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0
.PP
.TP 4
.B ownswpline
Redefinition of line labeled with 'SWP':
.PP
.TP 8
\ 
ownswpline\ \ \ SWPTOT:3 SWPFREE:4 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 SWPCOMMITTED:5 SWPCOMMITLIM:6
.PP
.TP 4
.B ownpagline
Redefinition of line labeled with 'PAG':
.PP
.TP 8
\ 
ownpagline\ \ \ PAGSCAN:3 PAGSTALL:1 BLANKBOX:0 PAGSWIN:4 PAGSWOUT:3
.PP
.TP 4
.B owndskline
Redefinition of lines labeled with 'LVM', 'MDD' and 'DSK':
.PP
.TP 8
\ 
owndskline\ \ \ DSKNAME:8 DSKBUSY:7 DSKNREAD:6 DSKNWRITE:6 DSKKBPERRD:4 DSKKBPERWR:4 DSKMBPERSECRD:5 DSKMBPERSECWR:5 DSKAVQUEUE:1 DSKAVIO:5
.PP
.TP 4
.B ownnettrline
Redefinition of line labeled with 'NET' for transport:
.PP
.TP 8
\ 
ownnettrline\ \ \ NETTRANSPORT:9 NETTCPI:8 NETTCPO:8 NETUDPI:8 NETUDPO:8 NETTCPACTOPEN:6 NETTCPPASVOPEN:5 NETTCPRETRANS:4 NETTCPINERR:3 NETTCPORESET:20 NETUDPNOPORT:1 NETUDPINERR:3
.PP
.TP 4
.B ownnetnetline
Redefinition of line labeled with 'NET' for network:
.PP
.TP 8
\ 
ownnetnetline\ \ \ NETNETWORK:5 NETIPI:4 NETIPO:4 NETIPFRW:4 NETIPDELIV:4 BLANKBOX:0 BLANKBOX:0 BLANKBOX:0 NETICMPIN:1 NETICMPOUT:1
.PP
.TP 4
.B ownnetifline
Redefinition of line labeled with 'NET' for interfaces:
.PP
.TP 8
\ 
ownnetifline\ \ \ NETNAME:8 NETPCKI:7 NETPCKO:7 NETSPEEDIN:6 NETSPEEDOUT:6 NETCOLLIS:3 NETMULTICASTIN:2 NETRCVERR:5 NETSNDERR:5 NETRCVDROP:4 NETSNDDROP:4
.PP
The lines above are shown in the order as shown by
.I atop
in combination with the
.B -f
flag (in a very wide window you should be able to see all of the columns).
.SH SEE ALSO
.B atop(1),
.B atopsar(1),
.B atopacctd(8),
.B netatop(4),
.B netatopd(8),
.B logrotate(8)
.br
.B https://www.atoptool.nl
.SH AUTHOR
Gerlof Langeveld (gerlof.langeveld@atoptool.nl)
.br
JC van Winkel