public
Description: This is where my memcached work lives before svn munges the changes.
Homepage: http://www.danga.com/memcached/
Clone URL: git://github.com/dustin/memcached.git
merge end of facebook branch into trunk, after copying the old trunk to 
the memcached-1.1.x branch



git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@320 
b0b603af-a30f-0410-a34e-baf09ae79d0b
bradfitz (author)
Sat Sep 02 20:18:26 -0700 2006
commit  8fe352d8efae509b9b8da4027b98b2a6d1005753
tree    9fc82d5fd391d251f16d6a192bb03d900a48c0f3
parent  ca30687a900dccec1e73cae0fe2e9252d7b59c1f
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1,3 +1,18 @@
0
+2006-08-21
0
+ * Nathan Neulinger <nneul@umr.edu>: fix incompatabilities with
0
+ unix domain socket support and the UDP code and clean up stale
0
+ sockets
0
+
0
+2006-08-20
0
+ * Nathan Neulinger <nneul@umr.edu>: unix domain socket support
0
+
0
+2006-05-03
0
+ * Steven Grimm <sgrimm@facebook.com>: big bunch of changes:
0
+ big CPU reduction work, UDP-based interface, increased memory
0
+ efficiency. (intertwined patch, committed all together)
0
+ <http://lists.danga.com/pipermail/memcached/2006-May/002164.html>
0
+ or see svn commit logs
0
+
0
 2006-04-30
0
   * River Tarnell: autoconf work for Solaris 10. Brad:
0
   merge and verify it works on Nexenta.
0
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
@@ -1,3 +1,20 @@
0
+* bug as shown with netcat (w/ small 16 byte object reproduces)
0
+
0
+>>I've done the following script to check that memcached has a key in it's
0
+>>inside, and thus know that it's working correctly:
0
+>>echo -e "get is_ok\r\nquit\r\n" | netcat $host $ip
0
+>>
0
+>>and I find that sometimes it returns the VALUE in it's inside, but other
0
+>>not.
0
+
0
+* namespaces
0
+
0
+* binary get protocol
0
+
0
+* refresh/touch command.
0
+
0
+* finer granularity of time for flush_all/delete, or generation number.
0
+
0
 * slab class reassignment still buggy and can crash. once that's
0
   stable, server should re-assign pages every 60 seconds or so
0
   to keep all classes roughly equal. [Update: fixed now?, but
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 AC_PREREQ(2.52)
0
-AC_INIT(memcached, 1.1.13-pre2, brad@danga.com)
0
+AC_INIT(memcached, 1.2.0-rc1, brad@danga.com)
0
 AC_CANONICAL_SYSTEM
0
 AC_CONFIG_SRCDIR(memcached.c)
0
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
...
43
44
45
46
 
 
 
 
47
48
49
...
52
53
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
56
57
...
43
44
45
 
46
47
48
49
50
51
52
...
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
0
@@ -43,7 +43,10 @@ caches, so consult the README and memcached homepage for configuration
0
 suggestions.
0
 .TP
0
 .B \-p <num>
0
-Listen on port <num>, the default is port 11211.
0
+Listen on TCP port <num>, the default is port 11211.
0
+.TP
0
+.B \-U <num>
0
+Listen on UDP port <num>, the default is port 11211.
0
 .TP
0
 .B \-M
0
 Disable automatic removal of items from the cache when out of memory.
0
@@ -52,6 +55,20 @@ Additions will not be possible until adequate space is freed up.
0
 .B \-r
0
 Raise the core file size limit to the maximum allowable.
0
 .TP
0
+.B \-f <factor>
0
+Use <factor> as the multiplier for computing the sizes of memory chunks that
0
+items are stored in. A lower value may result in less wasted memory depending
0
+on the total amount of memory available and the distribution of item sizes.
0
+The default is 1.25.
0
+.TP
0
+.B \-s <size>
0
+Allocate a minimum of <size> bytes for the item key, value, and flags. The
0
+default is 48. If you have a lot of small keys and values, you can get a
0
+significant memory efficiency gain with a lower value. If you use a high
0
+chunk growth factor (-f option), on the other hand, you may want to increase
0
+the size to allow a bigger percentage of your items to fit in the most densely
0
+packed (smallest) chunks.
0
+.TP
0
 .B \-h
0
 Show the version of memcached and a summary of options.
0
 .TP
...
1
2
3
4
5
 
 
 
6
7
8
...
388
389
390
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
 
 
4
5
6
7
8
9
...
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
0
@@ -1,8 +1,9 @@
0
 Protocol
0
 --------
0
 
0
-Clients of memcached communicate with server through TCP
0
-connections. A given running memcached server listens on some
0
+Clients of memcached communicate with server through TCP connections.
0
+(A UDP interface is also available; details are below under "UDP
0
+protocol.") A given running memcached server listens on some
0
 (configurable) port; clients connect to that port, send commands to
0
 the server, read responses, and eventually close the connection.
0
 
0
@@ -388,3 +389,45 @@ quit\r\n
0
 Upon receiving this command, the server closes the
0
 connection. However, the client may also simply close the connection
0
 when it no longer needs it, without issuing this command.
0
+
0
+
0
+UDP protocol
0
+------------
0
+
0
+For very large installations where the number of clients is high enough
0
+that the number of TCP connections causes scaling difficulties, there is
0
+also a UDP-based interface. The UDP interface does not provide guaranteed
0
+delivery, so should only be used for operations that aren't required to
0
+succeed; typically it is used for "get" requests where a missing or
0
+incomplete response can simply be treated as a cache miss.
0
+
0
+Each UDP datagram contains a simple frame header, followed by data in the
0
+same format as the TCP protocol described above. In the current
0
+implementation, requests must be contained in a single UDP datagram, but
0
+responses may span several datagrams. (The only common requests that would
0
+span multiple datagrams are huge multi-key "get" requests and "set"
0
+requests, both of which are more suitable to TCP transport for reliability
0
+reasons anyway.)
0
+
0
+The frame header is 8 bytes long, as follows (all values are 16-bit integers
0
+in network byte order, high byte first):
0
+
0
+0-1 Request ID
0
+2-3 Sequence number
0
+4-5 Total number of datagrams in this message
0
+6-7 Reserved for future use; must be 0
0
+
0
+The request ID is supplied by the client. Typically it will be a
0
+monotonically increasing value starting from a random seed, but the client
0
+is free to use whatever request IDs it likes. The server's response will
0
+contain the same ID as the incoming request. The client uses the request ID
0
+to differentiate between responses to outstanding requests if there are
0
+several pending from the same server; any datagrams with an unknown request
0
+ID are probably delayed responses to an earlier request and should be
0
+discarded.
0
+
0
+The sequence number ranges from 0 to n-1, where n is the total number of
0
+datagrams in the message. The client should concatenate the payloads of the
0
+datagrams for a given response in sequence number order; the resulting byte
0
+stream will contain a complete response in the same format as the TCP
0
+protocol (including terminating \r\n sequences).
...
21
22
23
24
25
26
27
28
29
 
30
31
32
...
41
42
43
44
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
47
 
48
49
50
51
 
 
52
53
54
...
97
98
99
100
 
 
101
102
103
...
114
115
116
 
 
 
 
 
 
 
 
 
 
 
 
117
118
119
...
159
160
161
162
 
163
164
165
...
195
196
197
198
 
199
200
201
...
224
225
226
227
 
228
229
230
...
243
244
245
246
 
247
248
249
...
252
253
254
255
 
256
257
258
...
262
263
264
265
 
266
267
268
...
21
22
23
 
 
 
 
 
 
24
25
26
27
...
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
...
109
110
111
 
112
113
114
115
116
...
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
...
184
185
186
 
187
188
189
190
...
220
221
222
 
223
224
225
226
...
249
250
251
 
252
253
254
255
...
268
269
270
 
271
272
273
274
...
277
278
279
 
280
281
282
283
...
287
288
289
 
290
291
292
293
0
@@ -21,12 +21,7 @@
0
 #include "memcached.h"
0
 
0
 
0
-/*
0
- * NOTE: we assume here for simplicity that slab ids are <=32. That's true in
0
- * the powers-of-2 implementation, but if that changes this should be changed too
0
- */
0
-
0
-#define LARGEST_ID 32
0
+#define LARGEST_ID 255
0
 static item *heads[LARGEST_ID];
0
 static item *tails[LARGEST_ID];
0
 unsigned int sizes[LARGEST_ID];
0
@@ -41,14 +36,31 @@ void item_init(void) {
0
 }
0
 
0
 
0
-item *item_alloc(char *key, int flags, time_t exptime, int nbytes) {
0
- int ntotal, len;
0
+/*
0
+ * Generates the variable-sized part of the header for an object.
0
+ *
0
+ * suffix - Buffer for the "VALUE" line suffix (flags, size).
0
+ * nsuffix - The length of the suffix is stored here.
0
+ * keylen - The length of the key plus any padding required to word-align the
0
+ * "VALUE" suffix (which is done to speed up copying.)
0
+ *
0
+ * Returns the total size of the header.
0
+ */
0
+int item_make_header(char *key, int flags, int nbytes,
0
+ char *suffix, int *nsuffix, int *keylen) {
0
+ *keylen = strlen(key) + 1; if(*keylen % 4) *keylen += 4 - (*keylen % 4);
0
+ *nsuffix = sprintf(suffix, " %u %u\r\n", flags, nbytes - 2);
0
+ return sizeof(item) + *keylen + *nsuffix + nbytes;
0
+}
0
+
0
+item *item_alloc(char *key, int flags, rel_time_t exptime, int nbytes) {
0
+ int nsuffix, ntotal, len;
0
     item *it;
0
     unsigned int id;
0
+ char suffix[40];
0
 
0
- len = strlen(key) + 1; if(len % 4) len += 4 - (len % 4);
0
- ntotal = sizeof(item) + len + nbytes;
0
-
0
+ ntotal = item_make_header(key, flags, nbytes, suffix, &nsuffix, &len);
0
+
0
     id = slabs_clsid(ntotal);
0
     if (id == 0)
0
         return 0;
0
@@ -97,7 +109,8 @@ item *item_alloc(char *key, int flags, time_t exptime, int nbytes) {
0
     it->nbytes = nbytes;
0
     strcpy(ITEM_key(it), key);
0
     it->exptime = exptime;
0
- it->flags = flags;
0
+ memcpy(ITEM_suffix(it), suffix, nsuffix);
0
+ it->nsuffix = nsuffix;
0
     return it;
0
 }
0
 
0
@@ -114,6 +127,18 @@ void item_free(item *it) {
0
     slabs_free(it, ntotal);
0
 }
0
 
0
+/*
0
+ * Returns true if an item will fit in the cache (its size does not exceed
0
+ * the maximum for a cache entry.)
0
+ */
0
+int item_size_ok(char *key, int flags, int nbytes) {
0
+ char prefix[40];
0
+ int keylen, nsuffix;
0
+
0
+ return slabs_clsid(item_make_header(key, flags, nbytes,
0
+ prefix, &nsuffix, &keylen)) != 0;
0
+}
0
+
0
 void item_link_q(item *it) { /* item is the new head */
0
     item **head, **tail;
0
     assert(it->slabs_clsid <= LARGEST_ID);
0
@@ -159,7 +184,7 @@ int item_link(item *it) {
0
     assert((it->it_flags & (ITEM_LINKED|ITEM_SLABBED)) == 0);
0
     assert(it->nbytes < 1048576);
0
     it->it_flags |= ITEM_LINKED;
0
- it->time = time(0);
0
+ it->time = current_time;
0
     assoc_insert(ITEM_key(it), it);
0
 
0
     stats.curr_bytes += ITEM_ntotal(it);
0
@@ -195,7 +220,7 @@ void item_update(item *it) {
0
     assert((it->it_flags & ITEM_SLABBED) == 0);
0
 
0
     item_unlink_q(it);
0
- it->time = time(0);
0
+ it->time = current_time;
0
     item_link_q(it);
0
 }
0
 
0
@@ -224,7 +249,7 @@ char *item_cachedump(unsigned int slabs_clsid, unsigned int limit, unsigned int
0
     bufcurr = 0;
0
 
0
     while (it && (!limit || shown < limit)) {
0
- len = sprintf(temp, "ITEM %s [%u b; %lu s]\r\n", ITEM_key(it), it->nbytes - 2, it->time);
0
+ len = sprintf(temp, "ITEM %s [%u b; %lu s]\r\n", ITEM_key(it), it->nbytes - 2, it->time + stats.started);
0
         if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */
0
             break;
0
         strcpy(buffer + bufcurr, temp);
0
@@ -243,7 +268,7 @@ char *item_cachedump(unsigned int slabs_clsid, unsigned int limit, unsigned int
0
 void item_stats(char *buffer, int buflen) {
0
     int i;
0
     char *bufcurr = buffer;
0
- time_t now = time(0);
0
+ rel_time_t now = current_time;
0
 
0
     if (buflen < 4096) {
0
         strcpy(buffer, "SERVER_ERROR out of memory");
0
@@ -252,7 +277,7 @@ void item_stats(char *buffer, int buflen) {
0
 
0
     for (i=0; i<LARGEST_ID; i++) {
0
         if (tails[i])
0
- bufcurr += sprintf(bufcurr, "STAT items:%u:number %u\r\nSTAT items:%u:age %lu\r\n",
0
+ bufcurr += sprintf(bufcurr, "STAT items:%u:number %u\r\nSTAT items:%u:age %u\r\n",
0
                                i, sizes[i], i, now - tails[i]->time);
0
     }
0
     strcpy(bufcurr, "END");
0
@@ -262,7 +287,7 @@ void item_stats(char *buffer, int buflen) {
0
 /* dumps out a list of objects of each size, with granularity of 32 bytes */
0
 char* item_stats_sizes(int *bytes) {
0
     int num_buckets = 32768; /* max 1MB object, divided into 32 bytes size buckets */
0
- unsigned int *histogram = (int*) malloc(num_buckets * sizeof(int));
0
+ unsigned int *histogram = (unsigned int*) malloc(num_buckets * sizeof(int));
0
     char *buf = (char*) malloc(1024*1024*2*sizeof(char));
0
     int i;
0
 
...
21
22
23
 
24
25
26
...
28
29
30
 
 
 
 
31
32
33
...
42
43
44
 
45
46
47
...
56
57
58
59
 
 
 
 
60
61
62
 
63
 
 
64
65
66
67
68
69
70
 
71
72
73
 
74
75
76
...
80
81
82
83
84
85
86
...
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
...
117
118
119
120
 
 
121
122
123
...
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
...
173
174
175
176
177
178
179
180
...
182
183
184
 
 
 
185
186
187
 
188
189
190
...
196
197
198
199
200
201
202
203
204
205
206
207
 
208
209
 
210
211
212
...
217
218
219
 
220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
222
223
 
 
 
 
 
 
 
 
224
225
226
...
230
231
232
233
234
235
236
 
237
238
239
...
242
243
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
246
247
...
256
257
258
259
 
260
261
262
263
 
264
265
266
...
274
275
276
277
 
278
279
280
...
328
329
330
331
 
332
333
334
...
339
340
341
342
343
 
 
344
345
346
...
350
351
352
353
354
355
356
 
 
 
 
357
358
359
 
360
361
362
...
426
427
428
429
 
430
431
432
...
450
451
452
453
 
454
455
456
...
465
466
467
468
 
469
470
471
...
488
489
490
491
 
492
493
494
...
509
510
511
512
513
514
 
 
 
 
 
 
 
515
516
517
...
543
544
545
546
 
 
547
548
 
 
 
 
549
550
551
...
556
557
558
559
 
560
561
562
...
569
570
571
572
 
573
574
575
...
605
606
607
608
 
609
610
611
...
620
621
622
623
 
624
625
626
...
647
648
649
650
 
651
652
653
...
688
689
690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
692
693
...
695
696
697
 
698
699
700
701
702
703
704
705
706
707
 
 
 
 
 
 
 
708
 
 
 
 
 
709
710
711
...
755
756
757
758
759
760
761
762
 
763
764
765
...
823
824
825
826
827
828
829
 
830
831
832
...
844
845
846
847
 
848
849
850
851
852
 
853
854
855
...
866
867
868
869
 
870
871
872
873
 
874
875
876
...
889
890
891
 
 
 
892
893
894
...
922
923
924
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
925
926
927
...
952
953
954
 
 
 
 
 
 
 
 
 
 
955
956
957
...
961
962
963
964
 
965
966
967
...
981
982
983
984
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
985
986
987
...
992
993
994
995
996
997
998
...
1010
1011
1012
1013
1014
 
 
 
1015
1016
1017
...
1025
1026
1027
1028
 
1029
1030
1031
1032
1033
1034
1035
 
1036
1037
1038
...
1064
1065
1066
1067
 
1068
1069
1070
1071
1072
1073
1074
 
1075
1076
1077
...
1080
1081
1082
1083
 
1084
1085
1086
1087
1088
1089
 
1090
1091
1092
...
1107
1108
1109
1110
 
1111
1112
1113
1114
1115
1116
1117
 
1118
1119
1120
...
1123
1124
1125
1126
 
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
 
 
 
 
 
 
 
 
1150
1151
1152
 
 
1153
1154
1155
1156
 
1157
1158
1159
1160
1161
1162
1163
 
 
 
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
 
 
 
 
 
 
 
1221
 
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
 
 
 
 
 
1259
1260
 
 
 
 
 
1261
 
 
 
 
 
 
 
 
 
1262
1263
1264
1265
1266
 
 
 
 
1267
1268
1269
...
1273
1274
1275
1276
1277
1278
1279
 
1280
1281
1282
...
1295
1296
1297
1298
 
1299
1300
1301
1302
 
1303
1304
1305
...
1313
1314
1315
1316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1317
1318
1319
1320
1321
1322
 
1323
1324
1325
1326
1327
1328
1329
1330
1331
 
 
 
 
 
 
 
1332
1333
 
1334
1335
1336
...
1344
1345
1346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1347
1348
1349
...
1352
1353
1354
 
1355
1356
1357
1358
 
1359
1360
1361
1362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1363
1364
1365
...
1380
1381
1382
1383
 
1384
1385
1386
...
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
 
1404
1405
1406
...
1415
1416
1417
 
 
1418
1419
1420
...
1517
1518
1519
 
 
 
 
 
 
1520
1521
1522
1523
 
1524
1525
1526
...
1531
1532
1533
 
 
 
1534
1535
1536
 
1537
1538
1539
1540
1541
 
1542
 
 
 
1543
1544
1545
1546
1547
1548
 
 
 
1549
1550
 
1551
1552
1553
...
1587
1588
1589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1590
1591
1592
...
1641
1642
1643
1644
 
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1655
1656
1657
...
1670
1671
1672
 
 
 
 
 
 
 
 
 
1673
1674
1675
...
1688
1689
1690
1691
 
1692
1693
1694
...
1722
1723
1724
1725
 
1726
1727
1728
1729
 
 
 
 
 
 
 
 
 
 
1730
1731
1732
...
1745
1746
1747
1748
...
21
22
23
24
25
26
27
...
29
30
31
32
33
34
35
36
37
38
...
47
48
49
50
51
52
53
...
62
63
64
 
65
66
67
68
69
 
 
70
71
72
73
74
 
75
76
77
78
 
79
80
 
 
81
82
83
84
...
88
89
90
 
91
92
93
...
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
...
156
157
158
 
159
160
161
162
163
...
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
...
234
235
236
 
 
237
238
239
...
241
242
243
244
245
246
247
248
249
250
251
252
253
...
259
260
261
 
 
 
 
 
 
 
 
 
262
263
264
265
266
267
268
...
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
...
322
323
324
 
 
 
 
325
326
327
328
...
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
...
523
524
525
 
526
527
528
529
 
530
531
532
533
...
541
542
543
 
544
545
546
547
...
595
596
597
 
598
599
600
601
...
606
607
608
 
 
609
610
611
612
613
...