blob: eb1952b0b88b77591be6c8364d4c08b1f50e266d (
plain)
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
|
QA output created by 341
load without save, store a couple and save ...
load() -> -2 No such file or directory
store(eek) -> 0
store(urk) -> 1
After cache_save hstate={DIRTY_INSTANCE}
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=0 hsize=16
0 active (nil) eek
1 active (nil) urk
save() -> 2
store one, load, store another couple and save ...
store(eek) -> 0
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
0 active (nil) eek
1 inactive (nil) urk
load() -> 2
store(urk) -> 1
store(foo) -> 2
After cache_save hstate={DIRTY_INSTANCE}
pmdaCacheDump: indom 0.123: nentry=3 ins_mode=0 hstate=0 hsize=16
0 active (nil) eek
1 active (nil) urk
2 active (nil) foo
save() -> 3
pmdaCacheDump: indom 0.123: nentry=3 ins_mode=0 hstate=0 hsize=16
0 active (nil) eek
1 active (nil) urk
2 active (nil) foo
inst hash
[000] -> 0
[001] -> 1
[002] -> 2
[003]
[004]
[005]
[006]
[007]
[008]
[009]
[010]
[011]
[012]
[013]
[014]
[015]
name hash
[000]
[001]
[002]
[003]
[004]
[005]
[006] -> 2
[007] -> 1
[008] -> 0
[009]
[010]
[011]
[012]
[013]
[014]
[015]
store some, hide some, load ...
store(eek) -> 0
store(urk) -> 1
store(foo) -> 2
store(fumble mumble) -> 3
hide(eek) -> 0
hide(foo) -> 2
store(bar) -> 4
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=5 ins_mode=0 hstate=3 hsize=16
0 inactive (nil) eek
1 active (nil) urk
2 inactive (nil) foo
3 active (nil) fumble mumble [match len=6]
4 active (nil) bar
load() -> 3
pmdaCacheDump: indom 0.123: nentry=5 ins_mode=0 hstate=3 hsize=16
0 inactive (nil) eek
1 active (nil) urk
2 inactive (nil) foo
3 active (nil) fumble mumble [match len=6]
4 active (nil) bar
inst hash
[000] -> 0I
[001] -> 1
[002] -> 2I
[003] -> 3
[004] -> 4
[005]
[006]
[007]
[008]
[009]
[010]
[011]
[012]
[013]
[014]
[015]
name hash
[000]
[001]
[002]
[003]
[004]
[005] -> 3
[006] -> 2I
[007] -> 1
[008] -> 0I
[009]
[010]
[011] -> 4
[012]
[013]
[014]
[015]
error case ...
store(urk a bit tricky) -> 0
store(foo) -> 1
pmdaCache: store: indom 0.123: instance 0 in cache, name "urk a bit tricky" does not match new entry "eek"
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 0 ("eek") ignored, already in cache as 0 ("urk a bit tricky")
pmdaCache: store: indom 0.123: instance 1 in cache, name "foo" does not match new entry "urk"
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 1 ("urk") ignored, already in cache as 1 ("foo")
pmdaCacheStoreKey: indom 0.123: instance "foo" in cache, id 1 does not match new entry 2
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 2 ("foo") ignored, already in cache as 1 ("foo")
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
0 active (nil) urk a bit tricky [match len=3]
1 active (nil) foo
load() -> 3
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
0 active (nil) urk a bit tricky [match len=3]
1 active (nil) foo
inst hash
[000] -> 0
[001] -> 1
[002]
[003]
[004]
[005]
[006]
[007]
[008]
[009]
[010]
[011]
[012]
[013]
[014]
[015]
name hash
[000]
[001]
[002]
[003]
[004]
[005]
[006] -> 1
[007] -> 0
[008]
[009]
[010]
[011]
[012]
[013]
[014]
[015]
|