summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Connection_Purging/README
blob: 8f8ec152c3b7268d23d7e48d5b18fb47843d54e9 (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
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
# $Id$

Connection Purging
------------------

The run_test.pl script tests the connection purging using the default
transport protocol (iiop).

Usage: run_test.pl [-u | -s]
       -u for UIOP
       -s for SHMIOP

There are four configurator files, one for each strategy.  Each configurator
file sets the -ORBConnectionCacheMax to 10 and the
-ORBConnectionCachePurgePercentage to 30 (excluding client.null.conf). 
After 10 separate connections are made, 30% of the transport cache is
purged in a way that corresponds to the chosen purging strategy.

This test is very manual at this point (due to the lack of debug interface
on the Transport Cache Manager).  It relies on the debug output of level 1.
Some time, we need to add a debug interface to allow for better (less
manual) regression testing.

Least Recently Used
-------------------
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54424> on 8
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
TAO (17519|1) - Some stuff to send
TAO (17519|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54425> on 9
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
TAO (17520|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54426> on 10
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
TAO (17521|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54427> on 11
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
TAO (17522|1) - Some stuff to send
.
.
.
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 5 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54429> on 13
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4ff0)
TAO (17524|1) - Some stuff to send
TAO (17519|1) - Some stuff to send

# Connection #1 (0xc3990) is used after the 5 new connection is made
.
.
.
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
TAO (17539|1) - Purging 3 of 10 cache entries
TAO (17539|1) - Idle transport found in cache: 0xc4118
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17539|1) - Idle transport found in cache: 0xc4d50
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17539|1) - Idle transport found in cache: 0xc42b0
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)

# Note that Connection #1 is not closed here

TAO (17539|1) IIOP connection to peer <132.200.200.10:54434> on 9
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4338)
TAO (17529|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 8 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54435> on 10
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xdbc10)
TAO (17530|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 9 10
TAO (17539|1) IIOP connection to peer <132.200.200.10:54436> on 11
TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xdd540)
TAO (17531|1) - Some stuff to send
TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
TAO (17539|1) - Purging 3 of 10 cache entries
TAO (17539|1) - Idle transport found in cache: 0xc4e70
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17539|1) - Idle transport found in cache: 0xc4ff0
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17539|1) - Idle transport found in cache: 0xc3990
TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)

# Connection #1 (0xc3990)is the sixth transport closed (as is expected)
.
.
.


Least Frequently Used
---------------------
TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
TAO (17540|1) IIOP connection to peer <132.200.200.10:54424> on 8
TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
TAO (17519|1) - Some stuff to send
TAO (17519|1) - Some stuff to send

# Connection #1 (0xc3990) is used twice upon creation

TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
TAO (17540|1) IIOP connection to peer <132.200.200.10:54425> on 9
TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
TAO (17520|1) - Some stuff to send
TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
TAO (17540|1) IIOP connection to peer <132.200.200.10:54426> on 10
TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
TAO (17521|1) - Some stuff to send
TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
TAO (17540|1) IIOP connection to peer <132.200.200.10:54427> on 11
TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
TAO (17522|1) - Some stuff to send
.
.
.
TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
TAO (17540|1) - Purging 3 of 10 cache entries
TAO (17540|1) - Idle transport found in cache: 0xc4118
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xc4d50
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xc42b0
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
.
.
.
TAO (17540|1) - Purging 3 of 10 cache entries
TAO (17540|1) - Idle transport found in cache: 0xc4e70
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xc4ff0
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xdb088
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
.
.
.
TAO (17540|1) - Purging 3 of 10 cache entries
TAO (17540|1) - Idle transport found in cache: 0xdb6f8
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xdb8a8
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xdc1e0
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
.
.
.
TAO (17540|1) - Purging 3 of 10 cache entries
TAO (17540|1) - Idle transport found in cache: 0xc4338
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xdbc10
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17540|1) - Idle transport found in cache: 0xdd540
TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
.
.
.

# Connection #1 (0xc3990) is never purged since was used more frequently
# than any other connection

First In First Out
------------------
TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
TAO (17541|1) IIOP connection to peer <132.200.200.10:54424> on 8
TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
TAO (17519|1) - Some stuff to send
TAO (17519|1) - Some stuff to send
TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
TAO (17541|1) IIOP connection to peer <132.200.200.10:54425> on 9
TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
TAO (17520|1) - Some stuff to send
TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
TAO (17541|1) IIOP connection to peer <132.200.200.10:54426> on 10
TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
TAO (17521|1) - Some stuff to send
TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
TAO (17541|1) IIOP connection to peer <132.200.200.10:54427> on 11
TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
TAO (17522|1) - Some stuff to send
.
.
.
TAO (17541|1) - Purging 3 of 10 cache entries
TAO (17541|1) - Idle transport found in cache: 0xc3990
TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17541|1) - Idle transport found in cache: 0xc4118
TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)
TAO (17541|1) - Idle transport found in cache: 0xc4d50
TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)

# Connection #1 (0xc3990) is purged first reguardless of its usage
.
.
.

NULL (no-op)
------------
TAO (17542|1) IIOP connection to peer <132.200.200.10:54424> on 8
TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
TAO (17519|1) - Some stuff to send
TAO (17519|1) - Some stuff to send
TAO (17542|1) IIOP connection to peer <132.200.200.10:54425> on 9
TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
TAO (17520|1) - Some stuff to send
TAO (17542|1) IIOP connection to peer <132.200.200.10:54426> on 10
TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
TAO (17521|1) - Some stuff to send
TAO (17542|1) IIOP connection to peer <132.200.200.10:54427> on 11
TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
TAO (17522|1) - Some stuff to send
.
.
.
TAO (17542|1) IIOP connection to peer <132.200.200.10:54443> on 27
TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xe5a58)
TAO (17538|1) - Some stuff to send
TAO (17542|1) IIOP_Connection_Handler::handle_close (8, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (9, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (10, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (11, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (12, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (13, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (14, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (15, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (16, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (17, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (18, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (19, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (20, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (21, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (22, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (23, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (24, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (25, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (26, 511)
TAO (17542|1) IIOP_Connection_Handler::handle_close (27, 511)

# No purging should take place at all