-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-04-29-09_15_25.log
200 lines (196 loc) · 6.2 KB
/
2023-04-29-09_15_25.log
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
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n '' ']'
+ trap POST_TEST_DEFAULT EXIT INT HUP TERM
+ rpm -qa
+ grep expect
++ type -t config_params
+ '[' -n '' ']'
++ type -t pre_test
+ '[' -n '' ']'
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start testing...'
+ message='Start testing...'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start testing...'
Sat Apr 29 09:15:29 2023 - INFO - Start testing...
+ vmstat -h
Usage:
vmstat [options] [delay [count]]
Options:
-a, --active active/inactive memory
-f, --forks number of forks since boot
-m, --slabs slabinfo
-n, --one-header do not redisplay header
-s, --stats event counter statistics
-d, --disk disk statistics
-D, --disk-sum summarize disk statistics
-p, --partition <dev> partition specific statistics
-S, --unit <char> define display unit
-w, --wide wide output
-t, --timestamp show timestamp
-y, --no-first skips first line of output
-h, --help display this help and exit
-V, --version output version information and exit
For more details see vmstat(8).
+ CHECK_RESULT 0 0 0 'vmstat -h fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -h fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -V
vmstat from procps-ng 4.0.2
+ CHECK_RESULT 0 0 0 'vmstat -V fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -V fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 138876 72132 3676584 0 0 187 130 161 150 23 23 54 0 0
+ CHECK_RESULT 0 0 0 'vmstat fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -f
94024 forks
+ CHECK_RESULT 0 0 0 'vmstat -f fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -f fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -w
--procs-- -----------------------memory---------------------- ---swap-- -----io---- -system-- ----------cpu----------
r b swpd free buff cache si so bi bo in cs us sy id wa st gu
2 0 0 138624 72132 3676584 0 0 187 130 161 150 23 23 54 0 0 0
+ CHECK_RESULT 0 0 0 'vmstat -w fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -w fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -t
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- -----timestamp-----
r b swpd free buff cache si so bi bo in cs us sy id wa st CST
2 0 0 138624 72132 3676584 0 0 187 130 161 150 23 23 54 0 0 2023-04-29 09:15:29
+ CHECK_RESULT 0 0 0 'vmstat -t fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -t fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -s
4031432 K total memory
334180 K used memory
1130200 K active memory
2475836 K inactive memory
138372 K free memory
72132 K buffer memory
3676584 K swap cache
0 K total swap
0 K used swap
0 K free swap
1136882 non-nice user cpu ticks
267644 nice user cpu ticks
1365832 system cpu ticks
3249987 idle cpu ticks
2973 IO-wait cpu ticks
0 IRQ cpu ticks
4129 softirq cpu ticks
0 stolen cpu ticks
0 non-nice guest cpu ticks
0 nice guest cpu ticks
11278259 K paged in
7855928 K paged out
0 pages swapped in
0 pages swapped out
9688436 interrupts
9015781 CPU context switches
1682715667 boot time
94027 forks
+ CHECK_RESULT 0 0 0 'vmstat -s fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -s fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ vmstat -d
disk- ------------reads------------ ------------writes----------- -----IO------
total merged sectors ms total merged sectors ms cur sec
loop0 0 0 0 0 0 0 0 0 0 0
loop1 0 0 0 0 0 0 0 0 0 0
loop2 0 0 0 0 0 0 0 0 0 0
loop3 0 0 0 0 0 0 0 0 0 0
loop4 0 0 0 0 0 0 0 0 0 0
loop5 0 0 0 0 0 0 0 0 0 0
loop6 0 0 0 0 0 0 0 0 0 0
loop7 0 0 0 0 0 0 0 0 0 0
vda 268139 10185 22556518 53870 620540 252180 15711856 1740147 0 914
+ CHECK_RESULT 0 0 0 'vmstat -d fail'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='vmstat -d fail'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ LOG_INFO 'Finish test!'
+ message='Finish test!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish test!'
Sat Apr 29 09:15:30 2023 - INFO - Finish test!
+ CASE_RESULT 0
+ case_re=0
+ test -z ''
+ test 0 -eq 0
+ LOG_INFO 'succeed to execute the case.'
+ message='succeed to execute the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.'
Sat Apr 29 09:15:31 2023 - INFO - succeed to execute the case.
+ exec_result=
+ exit 0
+ POST_TEST_DEFAULT
+ LOG_INFO 'oe_test_vmstat.sh post_test'
+ message='oe_test_vmstat.sh post_test'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'oe_test_vmstat.sh post_test'
Sat Apr 29 09:15:32 2023 - INFO - oe_test_vmstat.sh post_test