-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsar_metadata.py
2208 lines (2176 loc) · 80.3 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)]",
},
"%scpu-10": {
"cat": "Utilization",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some runnable tasks
were delayed because the CPU was unavailable to them, over
the last 10 second window.""",
},
"%scpu-60": {
"cat": "Utilization",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some runnable tasks
were delayed because the CPU was unavailable to them, over
the last 60 second window.""",
},
"%scpu-300": {
"cat": "Utilization",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some runnable tasks
were delayed because the CPU was unavailable to them, over
the last 300 second window.""",
},
"%scpu": {
"cat": "Utilization",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some runnable tasks
were delayed because the CPU was unavailable to them, over
the last time interval.""",
},
"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""",
},
"%smem-10": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which at least some tasks
were waiting for memory resources, over the last 10 second
window.""",
},
"%smem-60": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which at least some tasks
were waiting for memory resources, over the last 60 second
window.""",
},
"%smem-300": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which at least some tasks
were waiting for memory resources, over the last 300 second
window.""",
},
"%smem": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which at least some tasks
were waiting for memory resources, over the last time
interval.""",
},
"%fmem-10": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks
were stalled waiting for memory resources, over the last
10 second window.""",
},
"%fmem-60": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks
were stalled waiting for memory resources, over the last
60 second window.""",
},
"%fmem-300": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks
were stalled waiting for memory resources, over the last
300 second window.""",
},
"%fmem": {
"cat": "Memory",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks
were stalled waiting for memory resources, over the last
time interval.""",
},
"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%""",
},
"%sio-10": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some tasks lost waiting
for I/O, over the last 10 second window.""",
},
"%sio-60": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some tasks lost waiting
for I/O, over the last 30 second window.""",
},
"%sio-300": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some tasks lost waiting
for I/O, over the last 600 second window.""",
},
"%sio": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time that at least some tasks lost waiting
for I/O, over the last time interval.""",
},
"%fio-10": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks were
stalled waiting for I/O, over the last 10 second window.""",
},
"%fio-60": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks were
stalled waiting for I/O, over the last 60 second window.""",
},
"%fio-300": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks were
stalled waiting for I/O, over the last 300 second window.""",
},
"%fio": {
"cat": "I/O",
"unit": "%",
"regexp": NUMBER_WITH_DEC_RE,
"desc": """Percentage of the time during which all non-idle tasks were
stalled waiting for I/O, over the last time interval.""",
},
"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