forked from mbaldessari/sarstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsar_metadata.py
1533 lines (1502 loc) · 77.6 KB
/
sar_metadata.py
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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# categories.py - sar(1) report graphing utility
# Copyright (C) 2012 Ray Dassen
# 2013 Ray Dassen, Michele Baldessari
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
import re
# Column titles that represent another layer of indexing
# i.e. timestamp -> index -> another column -> datum
INDEX_COLUMN = {'CPU', 'IFACE', 'DEV', 'INTR', 'FAN', 'TEMP', 'BUS',
'FILESYSTEM', 'TTY'}
# Regular expressions to recognise various types of data found in sar
# files, to be used as building blocks.
# Notes:
# * These REs do not introduce any groups.
# * These REs are used to build up extended REs, so whitespace needs to
# be matched through \s.
TIMESTAMP_RE = r'\d{2}:\d{2}:\d{2}(?:\sAM|\sPM)?'
INTEGER_RE = r'[+-]?\d+'
HEX_RE = r'[a-fA-F0-9]+'
NUMBER_WITH_DEC_RE = r'(?:[+-]?\d+\.\d+|nan)'
INTERFACE_NAME_RE = r'[^ \t]+'
USB_NAME_RE = r'[^\t]+'
FS_NAME_RE = r'[^\t]+'
DEVICE_NAME_RE = INTERFACE_NAME_RE
INTERRUPTS_RE = r'(?:' + NUMBER_WITH_DEC_RE + '|N/A)'
CPU_RE = r'(?:all|\d+)'
INT_RE = r'(?:sum|\d+)'
BASE_GRAPHS = {
'%user': {'cat': 'Utilization',
'label': 'User Utilization (%)',
'unit': '%',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of CPU utilization that occurred while
executing at the user level (application). Note that this
field includes time spent running virtual processors""",
'detail': '%user - [/proc/stat(1)]'},
'%usr': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'label': 'User Utilization (novirt %)',
'unit': '%',
'desc': """Percentage of CPU utilization that occurred while
executing at the user level (application). Note that this
field does NOT include time spent running virtual
processors""",
'detail': '%user [/proc/stat(1)] - %guest [/proc/stat(9)]'},
'%system': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of CPU utilization that occurred while
executing at the system level (kernel). Note that this field
includes time spent servicing hardware and software
interrupts""",
'detail': '%sys [/proc/stat(3)] + %irq [/proc/stat(6)] + '
'%softirq[/proc/stat(7)]'},
'%sys': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of CPU utilization that occurred while
executing at the system level (kernel). Note that this field
does NOT include time spent servicing hardware or software
interrupts""",
'detail': '%sys [/proc/stat(3)]'},
'%iowait': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time that the CPU or CPUs were idle
during which the system had an outstanding disk I/O
request""",
'detail': '%iowait [/proc/stat(5)]'},
'%irq': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time spent by the CPU or CPUs to
service hardware interrupts""",
'detail': '%irq [/proc/stat(6)]'},
'%soft': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time spent by the CPU or CPUs to
service software interrupts""",
'detail': '%softirq [/proc/stat(7)]'},
'%nice': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of CPU utilization that occurred while
executing at the user level with nice priority""",
'detail': '%nice [/proc/stat(2)]'},
'%gnice': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time spent by the CPU or CPUs to run
a niced guest""",
'detail': '%gnice [/proc/stat(10)]'},
'%idle': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time that the CPU or CPUs were idle
and the system did not have an outstanding disk I/O
request""",
'detail': '%idle [/proc/stat(4)]'},
'%steal': {'cat': 'Utilization',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of time that the CPU or CPUs were idle
and the system did not have an outstanding disk I/O
request""",
'detail': '%steal [/proc/stat(8)]'},
'%guest': {'cat': 'Utilization',
'unit': '%',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of time spent by the CPU or CPUs to run
a virtual processor""",
'detail': '%guest [/proc/stat(9)]'},
'runq-sz': {'cat': 'Load',
'regexp': INTEGER_RE,
'desc': """Run queue length (number of tasks waiting for run
time)""",
'detail': 'runq-sz [/proc/loadavg(4)]'},
'plist-sz': {'cat': 'Load',
'regexp': INTEGER_RE,
'desc': """Number of tasks in the task list""",
'detail': 'plist-sz [/proc/loadavg(5)]'},
'ldavg-1': {'cat': 'Load',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """System load average for the last minute. The load
average is calculated as the average number of runnable or
running tasks (R state), and the number of tasks in
uninterruptible sleep (D state) over the specified
interval. The exact formula is:
<i>load(t) = n+((load(t-1)-n)/e^(interval/(min*60)))</i><br/>
•<i>load(t)</i>: load average at a time of t<br/>
•<i>n</i>: number of threads in running or
uninterruptible state<br/> •<i>interval</i>: calculate
interval (seconds). 5 seconds in RHEL<br/>•<i>min</i>:
average time (minute)<br/> It is a moving average function.
See <link href="http://goo.gl/5EsCsT">
<i>kernel/sched.c:calc_load()</i></link> for more details
on the implementation on RHEL 5 and 6. More recent kernels
moved it to <i>kernel/sched/proc.c:calc_load()</i>""",
'detail': 'ldavg-1 [/proc/loadavg(1)]'},
'ldavg-5': {'cat': 'Load',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """System load average for the past 5 minutes""",
'detail': 'ldavg-5 [/proc/loadavg(2)]'},
'ldavg-15': {'cat': 'Load',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """System load average for the past 15 minutes""",
'detail': 'ldavg-15 [/proc/loadavg(3)]'},
'blocked': {'cat': 'Load',
'regexp': INTEGER_RE,
'desc': """Number of tasks currently blocked, waiting for I/O
to complete""",
'detail': 'blocked [/proc/stat:procs_blocked]'},
'proc/s': {'cat': 'Load',
'unit': 'processes per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of tasks created per second""",
'detail': 'processes [/proc/stat:processes]'},
'cswch/s': {'cat': 'Load',
'unit': 'cswitchs per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of context switches per second""",
'detail': 'ctxt [/proc/stat:ctxt]'},
'kbmemfree': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of free memory available in kilobytes"""},
'kbmemused': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of used memory in kilobytes. This does not
take into account memory used by the kernel itself"""},
'%memused': {'cat': 'Memory',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of used memory"""},
'kbbuffers': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of memory used as buffers by the kernel in
kilobytes"""},
'kbcached': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of memory used to cache data by the kernel
in kilobytes"""},
'kbcommit': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of memory in kilobytes needed for current
workload. This is an estimate of how much RAM/swap is needed
to guarantee that there never is out of memory"""},
'%commit': {'cat': 'Memory',
'unit': '%',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of memory needed for current workload in
relation to the total amount of memory (RAM+swap). This
number may be greater than 100% because the kernel usually
overcommits memory"""},
'kbactive': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of active memory in kilobytes (memory that
has been used more recently and usually not reclaimed unless
absolutely necessary)"""},
'kbinact': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of inactive memory in kilobytes (memory
which has been less recently used. It is more eligible to be
reclaimed for other purposes)"""},
'kbdirty': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of memory in kilobytes waiting to get
written back to the disk."""},
'kbanonpg': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of non-file backed pages in
kilobytes mapped into userspace page tables."""},
'kbslab': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of memory in kilobytes
used by the kernel for internal objects."""},
'kbavail': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Estimate of how much memory in kilobytes is available
for starting new applications, without swapping."""},
'kbkstack': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of kstack memory
used for kernel stack space."""},
'kbpgtbl': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of memory in kilobytes dedicated
to the lowest level of page tables."""},
'kbvmused': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """KB of kernel vm space."""},
'kbhugfree': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of hugepages memory in kilobytes that is not
yet allocated"""},
'kbhugused': {'cat': 'Memory',
'regexp': INTEGER_RE,
'unit': 'kilobytes',
'desc': """Amount of hugepages memory in kilobytes that has
been allocated"""},
'kbhugrsvd': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of reserved hugepages memory in kilobytes."""},
'kbhugsurp': {'cat': 'Memory',
'unit': 'kilobytes',
'regexp': INTEGER_RE,
'desc': """Amount of surplus hugepages memory in kilobytes."""},
'%hugused': {'cat': 'Memory',
'regexp': NUMBER_WITH_DEC_RE,
'unit': '%',
'desc': """Percentage of total hugepages memory that has been
allocated"""},
'frmpg/s': {'cat': 'Memory',
'regexp': NUMBER_WITH_DEC_RE,
'unit': 'freed pages per second',
'desc': """Number of memory pages freed by the system per
second. A negative value represents a number of pages
allocated by the system. Note that a page has a size of 4 kB
or 8 kB according to the machine architecture"""},
'bufpg/s': {'cat': 'Memory',
'regexp': NUMBER_WITH_DEC_RE,
'unit': 'memory pages per second',
'desc': """Number of additional memory pages used as buffers
by the system per second. A negative value means fewer pages
used as buffers by the system"""},
'campg/s': {'cat': 'Memory',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of additional memory pages cached by the
system per second. A negative value means fewer pages in the
cache"""},
'pswpin/s': {'cat': 'Swap',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of swap pages the system brought in
per second"""},
'pswpout/s': {'cat': 'Swap',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of swap pages the system brought out
per second"""},
'kbswpfree': {'cat': 'Swap',
'regexp': INTEGER_RE,
'desc': """Amount of free swap space in kilobytes"""},
'kbswpused': {'cat': 'Swap',
'regexp': INTEGER_RE,
'desc': """Amount of used swap space in kilobytes"""},
'%swpused': {'cat': 'Swap',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of used swap space"""},
'kbswpcad': {'cat': 'Swap',
'regexp': INTEGER_RE,
'desc': """Amount of cached swap memory in kilobytes. This is
memory that once was swapped out, is swapped back in but
still also is in the swap area (if memory is needed it
doesn\'t need to be swapped out again because it is already
in the swap area. This saves I/O)"""},
'%swpcad': {'cat': 'Swap',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of cached swap memory in relation to the
amount of used swap space"""},
'nswap/s': {'cat': 'Swap',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of pages from the process address space the
system has swapped out per second. This value is always zero
with post 2.5 kernels"""},
'rtps': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of read requests per second issued to
physical devices"""},
'wtps': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of write requests per second issued to
physical devices"""},
'dtps': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of discard requests per second issued to
physical devices"""},
'bread/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total amount of data read from the devices in
blocks per second. Blocks are equivalent to sectors with 2.4
kernels and newer and therefore have a size of 512 bytes.
With older kernels, a block is of indeterminate size"""},
'bwrtn/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total amount of data written to devices in blocks
per second"""},
'bdscd/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total amount of data discarded for devices in blocks
per second"""},
'rxkB/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of kilobytes received per second"""},
'txkB/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of kilobytes transmitted per
second"""},
'tps': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Indicates the number of transfers per second that
were issued to the device. Multiple logical requests can be
combined into a single I/O request to the device. A transfer
is of indeterminate size."""},
'rd_sec/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of sectors read from the device. The size of
a sector is 512 bytes."""},
'wr_sec/s': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of sectors written to the device. The size
of a sector is 512 bytes."""},
'avgrq-sz': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The average size (in sectors) of the requests that
were issued to the device."""},
'avgqu-sz': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The average queue length of the requests that were
issued to the device."""},
'await': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The average time (in milliseconds) for I/O requests
issued to the device to be served. This includes the time
spent by the requests in queue and the time spent servicing
them."""},
'svctm': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The average service time (in milliseconds) for I/O
requests that were issued to the device. Warning! Do not
trust this field any more. This field will be removed in a
future sysstat version."""},
'%util': {'cat': 'I/O',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of CPU time during which I/O requests
were issued to the device (bandwidth utilization for the
device). Device saturation occurs when this value is close
to 100%"""},
'maxpower': {'cat': 'Power',
'regexp': INTEGER_RE,
'desc': """Maxpower"""},
'MHz': {'cat': 'Power',
'regexp': INTEGER_RE,
'desc': """MegaHertz"""},
'FAN': {'cat': 'Power',
'regexp': INTEGER_RE,
'desc': """FAN"""},
'%temp': {'cat': 'Power',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """FAN"""},
'degC': {'cat': 'Power',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Degrees"""},
'drpm': {'cat': 'Power',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """DRPM"""},
'rpm': {'cat': 'Power',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """RPM"""},
'pgpgin/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of kilobytes the system paged in from
disk per second. Note: With old kernels (2.2.x) this value is
a number of blocks per second (and not kilobytes)"""},
'pgpgout/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of kilobytes the system paged out to
disk per second. Note: With old kernels (2.2.x) this value
is a number of blocks per second (and not kilobytes)"""},
'fault/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of page faults (major + minor) made by the
system per second. This is not a count of page faults that
generate I/O, because some page faults can be resolved
without I/O"""},
'majflt/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of major faults the system has made per
second, those which have required loading a memory page
from disk"""},
'minflt/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of minor faults the task has made per
second, those which have not required loading a memory page
from disk"""},
'pgfree/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of pages placed on the free list by the
system per second"""},
'pgscank/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of pages scanned by the kswapd daemon per
second"""},
'pgscand/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of pages scanned directly per second"""},
'pgsteal/s': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of pages the system has reclaimed from cache
(pagecache and swapcache) per second to satisfy its memory
demands"""},
'%vmeff': {'cat': 'Paging',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Calculated as pgsteal / pgscan, this is a metric of
the efficiency of page reclaim. If it is near 100% then
almost every page coming off the tail of the inactive list is
being reaped. If it gets too low (e.g. less than 30%) then
the virtual memory is having some difficulty. This field is
displayed as zero if no pages have been scanned during the
interval of time"""},
'file-nr': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of file handles used by the system"""},
'inode-nr': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of inode handlers used by the system"""},
'file-sz': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of used file handles"""},
'inode-sz': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of used inode handlers"""},
'super-sz': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of super block handlers allocated by the
kernel"""},
'%super-sz': {'cat': 'Files',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of allocated super block handlers with
regard to the maximum number of super block handlers that
Linux can allocate"""},
'dquot-sz': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of allocated disk quota entries"""},
'%dquot-sz': {'cat': 'Files',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of allocated disk quota entries with
regard to the maximum number of cached disk quota entries
that can be allocated"""},
'dentunusd': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Number of unused cache entries in the directory
cache"""},
'MBfsfree': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """MB Free"""},
'MBfsused': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """MB Used"""},
'%fsused': {'cat': 'Files',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """FS Used %"""},
'%ufsused': {'cat': 'Files',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """FS uUsed %"""},
'Ifree': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Inodes Free"""},
'Iused': {'cat': 'Files',
'regexp': INTEGER_RE,
'desc': """Inodes Used"""},
'%Iused': {'cat': 'Files',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Inodes Used %"""},
'rtsig-sz': {'cat': 'Other',
'regexp': INTEGER_RE,
'desc': """Number of queued RT signals"""},
'%rtsig-sz': {'cat': 'Other',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Percentage of queued RT signals with regard to the
maximum number of RT signals that can be queued"""},
'pty-nr': {'cat': 'Other',
'regexp': INTEGER_RE,
'desc': """Number of pseudo-terminals used by the system"""},
'call/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of RPC requests made per second"""},
'retrans/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of RPC requests per second, those which
needed to be retransmitted (for example because of a server
timeout)"""},
'read/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "read" RPC calls made per second"""},
'write/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "write" RPC calls made per second"""},
'access/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "access" RPC calls made per second"""},
'getatt/s': {'cat': 'NFS',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "getattr" RPC calls made per second"""},
'scall/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of RPC requests received per second"""},
'badcall/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of bad RPC requests received per second,
those whose processing generated an error"""},
'packet/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of network packets received per second"""},
'udp/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of UDP packets received per second"""},
'tcp/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of TCP packets received per second"""},
'hit/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of reply cache hits per second"""},
'miss/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of reply cache misses per second"""},
'sread/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "read" RPC calls received per
second"""},
'swrite/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "write" RPC calls received per
second"""},
'saccess/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "access" RPC calls received per
second"""},
'sgetatt/s': {'cat': 'NFSD',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of "getattr" RPC calls received per
second"""},
'rcvin/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of receive interrupts per second for
current serial line. Serial line number is given in the
TTY column"""},
'txmtin/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of transmit interrupts per second for
current serial line""",
'detail': 'Taken from /proc/net/dev'},
'xmtin/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of transmit interrupts per second for
current serial line""",
'detail': 'Taken from /proc/net/dev'},
'framerr/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of frame errors per second for current
serial line"""},
'prtyerr/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of parity errors per second for current
serial line"""},
'brk/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of breaks per second for current serial
line"""},
'ovrun/s': {'cat': 'TTY',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of overrun errors per second for current
serial line"""},
'totsck': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Total number of sockets used by the system"""},
'tcpsck': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Number of TCP sockets currently in use"""},
'udpsck': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Number of UDP sockets currently in use"""},
'rawsck': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Number of RAW sockets currently in use"""},
'ip-frag': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Number of IP fragments currently in use"""},
'tcp-tw': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """Number of TCP sockets in TIME_WAIT state"""},
'rxpck/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of packets received per second"""},
'txpck/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of packets transmitted per
second"""},
'rxbyt/s': {'cat': 'Network',
'unit': 'bytes per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of bytes received per second"""},
'txbyt/s': {'cat': 'Network',
'unit': 'bytes per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of bytes transmitted per second"""},
'rxcmp/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'unit': 'packets per second',
'desc': """Number of compressed packets received per second
(for cslip etc.)"""},
'txcmp/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of compressed packets transmitted per
second"""},
'rxmcst/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of multicast packets received per
second"""},
'%ifutil': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """utilization percentage of
the network interface."""},
'rxerr/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of bad packets received per
second"""},
'txerr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Total number of errors that happened per second
while transmitting packets"""},
'coll/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of collisions that happened per second while
transmitting packets"""},
'rxdrop/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of received packets dropped per second
because of a lack of space in linux buffers"""},
'txdrop/s': {'cat': 'Network',
'unit': 'packets per second',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of transmitted packets dropped per second
because of a lack of space in linux buffers"""},
'txcarr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of carrier-errors that happened per second
while transmitting packets"""},
'rxfram/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of frame alignment errors that happened per
second on received packets"""},
'rxfifo/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of FIFO overrun errors that happened per
second on received packets"""},
'txfifo/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """Number of FIFO overrun errors that happened per
second on transmitted packets"""},
'irec/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of input datagrams received from
interfaces per second, including those received in error
[ipInReceives]."""},
'fwddgm/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of input datagrams per second, for
which this entity was not their final IP destination, as a
result of which an attempt was made to find a route to
forward them to that final destination [ipForwDatagrams]"""},
'idel/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of input datagrams successfully
delivered per second to IP user-protocols (including ICMP)
[ipInDelivers]"""},
'orq/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of IP datagrams which local IP
user-protocols (including ICMP) supplied per second to IP in
requests for transmission [ipOutRequests]. Note that this
counter does not include any datagrams counted in
fwddgm/s"""},
'asmrq/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP fragments received per second
which needed to be reassembled at this entity
[ipReasmReqds]"""},
'asmok/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP datagrams successfully
re-assembled per second [ipReasmOKs]"""},
'fragok/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP datagrams that have been
successfully fragmented at this entity per second
[ipFragOKs]"""},
'fragcrt/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP datagram fragments that have been
generated per second as a result of fragmentation at this
entity [ipFragCreates]"""},
'ihdrerr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of input datagrams discarded per second
due to errors in their IP headers, including bad checksums,
version number mismatch, other format errors, time-to-live
exceeded, errors discovered in processing their IP options,
etc. [ipInHdrErrors]"""},
'iadrerr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of input datagrams discarded per second
because the IP address in their IP header's destination field
was not a valid address to be received at this entity. This
count includes invalid addresses (e.g., 0.0.0.0) and
addresses of unsupported Classes (e.g., Class E). For
entities which are not IP routers and therefore do not
forward datagrams, this counter includes datagrams discarded
because the destination address was not a local address
[ipInAddrErrors]."""},
'iukwnpr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of locally-addressed datagrams received
successfully but discarded per second because of an unknown
or unsupported protocol [ipInUnknownProtos]."""},
'idisc/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of input IP datagrams per second for
which no problems were encountered to prevent their continued
processing, but which were discarded (e.g., for lack of
buffer space) [ipInDiscards]. Note that this counter does
not include any datagrams discarded while awaiting
re-assembly"""},
'odisc/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of output IP datagrams per second for
which no problem was encountered to prevent their
transmission to their destination, but which were discarded
(e.g., for lack of buffer space) [ipOutDiscards]. Note that
this counter would include datagrams counted in fwddgm/s if
any such packets met this (discretionary) discard
criterion"""},
'onort/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP datagrams discarded per second
because no route could be found to transmit them to their
destination [ipOutNoRoutes]. Note that this counter
includes any packets counted in fwddgm/s which meet this
'no-route' criterion. Note that this includes any datagrams
which a host cannot route because all of its default
routers are down"""},
'asmf/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of failures detected per second by the
IP re-assembly algorithm (for whatever reason: timed out,
errors, etc) [ipReasmFails]. Note that this is not
necessarily a count of discarded IP fragments since some
algorithms can lose track of the number of fragments by
combining them as they are received"""},
'fragf/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of IP datagrams that have been
discarded per second because they needed to be fragmented at
this entity but could not be, e.g., because their Don't
Fragment flag was set [ipFragFails]"""},
'imsg/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of ICMP messages which the entity
received per second [icmpInMsgs]. Note that this counter
includes all those counted by ierr/s"""},
'omsg/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of ICMP messages which this entity
attempted to send per second [icmpOutMsgs]. Note that this
counter includes all those counted by oerr/s"""},
'iech/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Echo (request) messages received
per second [icmpInEchos]"""},
'iechr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Echo Reply messages received per
second [icmpInEchoReps]"""},
'oech/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Echo (request) messages sent per
second [icmpOutEchos]"""},
'oechr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Echo Reply messages sent per
second [icmpOutEchoReps]"""},
'itm/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Timestamp (request) messages
received per second [icmpInTimestamps]"""},
'itmr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Timestamp Reply messages
received per second [icmpInTimestampReps]"""},
'otm/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Timestamp (request) messages
sent per second [icmpOutTimestamps]"""},
'otmr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Timestamp Reply messages sent
per second [icmpOutTimestampReps]"""},
'iadrmk/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Address Mask Request messages
received per second [icmpInAddrMasks]"""},
'iadrmkr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Address Mask Reply messages
received per second [icmpInAddrMaskReps]"""},
'oadrmk/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Address Mask Request messages
sent per second [icmpOutAddrMasks]"""},
'oadrmkr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Address Mask Reply messages sent
per second [icmpOutAddrMaskReps]"""},
'ierr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP messages per second which the
entity received but determined as having ICMP-specific errors
(bad ICMP checksums, bad length, etc.) [icmpInErrors]."""},
'oerr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP messages per second which this
entity did not send due to problems discovered within ICMP
such as a lack of buffers [icmpOutErrors]"""},
'idstunr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Destination Unreachable messages
received per second [icmpInDestUnreachs]"""},
'odstunr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Destination Unreachable messages
sent per second [icmpOutDestUnreachs]"""},
'itmex/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Time Exceeded messages received
per second [icmpInTimeExcds]"""},
'otmex/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Time Exceeded messages sent per
second [icmpOutTimeExcds]"""},
'iparmpb/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Parameter Problem messages
received per second [icmpInParmProbs]"""},
'oparmpb/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Parameter Problem messages sent
per second [icmpOutParmProbs]"""},
'isrcq/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Source Quench messages received
per second [icmpInSrcQuenchs]"""},
'osrcq/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Source Quench messages sent per
second [icmpOutSrcQuenchs]"""},
'iredir/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Redirect messages received per
second [icmpInRedirects]"""},
'oredir/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of ICMP Redirect messages sent per
second [icmpOutRedirects]"""},
'blg_len': {'cat': 'Network',
'regexp': INTEGER_RE,
'desc': """The length of the network backlog."""},
'active/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of times TCP connections have made a
direct transition to the SYN-SENT state from the CLOSED state
per second [tcpActiveOpens]"""},
'passive/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of times TCP connections have made a
direct transition to the SYN-RCVD state from the LISTEN state
per second [tcpPassiveOpens]"""},
'iseg/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of segments received per second,
including those received in error [tcpInSegs]. This count
includes segments received on currently established
connections."""},
'oseg/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of segments sent per second,
including those on current connections but excluding those
containing only retransmitted octets [tcpOutSegs]"""},
'atmptf/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of times per second TCP connections have
made a direct transition to the CLOSED state from either the
SYN-SENT state or the SYN-RCVD state, plus the number of
times per second TCP connections have made a direct
transition to the LISTEN state from the SYN-RCVD state
[tcpAttemptFails]"""},
'estres/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of times per second TCP connections have
made a direct transition to the CLOSED state from either the
ESTABLISHED state or the CLOSE-WAIT state
[tcpEstabResets]"""},
# original s ar name is retrans/s which is duplicate (NFS value).
# we renamed it to retrant/s internally
'retrant/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of segments retransmitted per
second - that is, the number of TCP segments transmitted
containing one or more previously transmitted octets
[tcpRetransSegs]"""},
'isegerr/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of segments received in error
(e.g., bad TCP checksums) per second [tcpInErrs]"""},
'orsts/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The number of TCP segments sent per second
containing the RST flag [tcpOutRsts]"""},
'idgm/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,
'desc': """The total number of UDP datagrams delivered per
second to UDP users [udpInDatagrams]"""},
'odgm/s': {'cat': 'Network',
'regexp': NUMBER_WITH_DEC_RE,