xref: /memcached-1.4.29/ChangeLog (revision da5ba7b8)
12009-03-11
2
3	* Protocol:  Binary complete (Dustin, Trond, Toru, etc...)
4
5	* Performance:  improvements from facebook (Dormando)
6
7	* Performance:  per-thread stats (Trond)
8
9	* Performance:  Hash expansion in its own thread (Trond)
10
11	* Stats:  Lots of new stats (Dustin)
12
13	* Bug fixes (various)
14
15	See the 1.3.2 release notes or revision control for more detail.
16
172008-09-06
18       * Display error status on listen failures (Dormando)
19
20       * Remove managed instance code. Incomplete/etc. (Dormando)
21
22          * Handle broken IPV6 stacks better (Brian Aker)
23
24          * Generate warnings on setsockopt() failures (Brian Aker)
25
26          * Fix some indentation issues (Brian Aker)
27
28          * UDP/TCP can be disabled by setting their port to zero (Brian Aker)
29
30          * Zero out libevent thread structures before use (Ricky Zhou)
31
32          * New stat: Last accessed time for last evicted item per slab class.
33            (Dormando)
34
35          * Use a dedicated socket accept thread (Facebook)
36
37          * Add -R option. Limit the number of requests processed by a connection
38            at once. Prevents starving other threads if bulk loading. (Facebook)
39
402008-07-29 [Version 1.2.6 released]
41
422008-07-24 [Version 1.2.6-rc1 released]
43
44       * Add support for newer automake (Facebook)
45
46       * DTrace support for Solaris/etc (Trond Norbye)
47
48       * LRU tests (Steve Yen)
49
50       * Handle negative length items properly (Dormando)
51
52       * Don't leave stale data after failed set attempts (Dormando)
53
54       * Fix refcount leaks, which would result in OOM's on all sets
55	       (Dormando)
56
57       * Fix buffer overruns (Dustin Sallings, Tomash Brechko)
58
59       * Fix memory corruption with CAS (Dustin Sallings)
60
612008-06-11
62
63       * Fix -k to work with -d. (reported by Gary Zhu)
64
652008-03-02 [Version 1.2.5-rc1 released]
66
67       * Add per-item-class tracking of evictions and OOM errors (dormando)
68
69       * Optimize item_alloc() a little (dormando)
70
71       * Give 'SERVER_ERROR out of memory' errors more context (dormando)
72
73       * Enable usage of large memory pages under solaris
74         ([email protected])
75
76       * Enable UDP by default, clean up server socket code
77         ([email protected])
78
79       * 'noreply' support (Tomash Brechko)
80
81       * IPv6 support, and IPv6 multi-interface support ([email protected])
82
83       * Add compiler options for Sun Studio compilers with --enable-threads
84	     ([email protected])
85
86       * Add --enable-64bit for mulitarget platforms ([email protected])
87
88       * Use gettimeofday(2) instead of time(2).
89
90       * Make -k option work (Tomash Brechko)
91
92	   * Fix chunk slab alignment ([email protected])
93
942007-12-06 [Version 1.2.4 released]
95
962007-12-05
97
98       * Fix compilation on panther (JS and Dormando)
99
100	   * More CAS tests (Chris Goffinet)
101
102	   * Final fixes for all 1.2.4 features are in, -rc2 sent out.
103
1042007-11-19 [Version 1.2.4-rc1 released]
105
1062007-11-19  Dormando <[email protected]>
107
108       * Patch series from Tomash Brechko <[email protected]>:
109         Minor fixes and optimisations.
110
111       * Patches from Chris, Dustin, and Dormando to fix CAS.
112
113       * Prepping for 1.2.4 release.
114
1152007-11-13  Dormando <[email protected]>
116
117	* Adjusted patch from js <[email protected]>: Compile on OS X Panther
118	  and earlier.
119
1202007-11-12  Steven Grimm  <[email protected]>
121
122	* Patch from Tomash Brechko <[email protected]>: Always send
123	  "SERVER_ERROR out of memory" when memory exhausted.
124
1252007-10-15  Paul Lindner  <[email protected]>
126
127	* Patch from David Bremner <[email protected]> that implements
128	  a new option "-a" which takes an octal permission mask
129	  (like chmod) sets the permissions on the unix domain socket
130	  (specified by "-s").
131
1322007-10-03 Paul Lindner <[email protected]>
133	* Incorporate "cas" operation developed by Dustin
134	  Sallings <[email protected]> This change allows you
135	  to do atomic changes to an existing key.
136
137	* Fix for stats.evictions not incrementing
138	  when exptime == 0 items are kicked off the cache.
139	  from Jean-Francois BUSTARRET <[email protected]>.
140
141	* Fix for do_item_cachedump() which was returning
142	  an incorrect timestamp.
143
144	* Switch to unsigned 64-bit increment/decrement counters
145	  from Evan Miller and Dustin Sallings.
146
147	* Add append command support written by Filipe Laborde.
148	  Thread safe version plus prepend command from Maxim Dounin
149	  <[email protected]>
150
151	* The memcached-tool script can now display stats.  Patch
152	  provided by Dan Christian <[email protected]>
153
154	* Fix for Unix Domain sockets on FreeBSD
155	  FreeBSD's sendmsg() requires msg_name in msghdr structure
156	  to be NULL if not used, setting msg_namelen to 0 isn't enough.
157	  Patch from Maxim Dounin <[email protected]>
158
1592007-08-21 Paul Lindner <[email protected]>
160	* Incorporate incrememnt patch from Evan Miller
161	  <[email protected]> to define increment overflow
162	  behavior.
163
1642007-08-07 Leon Brocard <[email protected]>
165	* Bring the memcached.1 manpage up to date
166
1672007-08-06 Paul Lindner <[email protected]>
168	* Fix crash when using -P and -d flags on x86_64
169	  with latest libevent release.
170
1712007-07-08  Steven Grimm  <[email protected]>
172
173	* Item stats commands weren't thread-safe; wrap them with locks
174	  when compiled in multithreaded mode.
175	* The "stats items" command now works again; it broke with the
176	  introduction of the powers-of-N chunk size change.
177
1782007-07-06 [Version 1.2.3 released]
179
1802007-06-19  Paul Lindner  <[email protected]>
181
182	* Solaris portability fixes from Trond Norbye
183
1842007-05-29  Paul Lindner  <[email protected]>
185
186	* Properly document evictions statistic value
187
1882007-05-10  Paul Lindner  <[email protected]>
189
190	* Flesh out tests for unix domain sockets and binary data.
191	* Update rpm spec file to run tests
192
1932007-05-07  Paul Lindner  <[email protected]>
194
195	* Fix compilation bug on freebsd 6.x (and maybe others)
196	* Update RPM spec file per redhat bugzilla #238994
197	* Move unistd.h to memcached.h to get rid of warnings
198	* Add string.h to thread.c to get correctly prototyped strerror()
199
2002007-05-04  Paul Lindner  <[email protected]>
201
202	* Add fedora/redhat style init script and RPM spec file
203
2042007-05-12 [Version 1.2.2 released]
205
2062007-04-16  Steven Grimm  <[email protected]>
207
208	* Command tokenizer performance and cleanliness improvement.
209	  Patch contributed by Paolo Borelli <[email protected]>.
210
2112007-04-16  Paul Lindner  <[email protected]>
212
213	* Add notes to README about MacOS, libevent and kqueue.
214
215	* Windows Patch integration -- part 1, warnings elimination.
216
2172007-04-12  Paul Lindner  <[email protected]>
218
219	* Allow changes to the verbosity level of the server with a new
220	  "verbosity" command and some compiler cleanups.
221          Patch contributed by Paolo Borelli <[email protected]>.
222
2232007-04-08  Paul Lindner  <[email protected]>
224
225	* Add cleanup patch from "Tim Yardley" <[email protected]> to
226	  clean up source spacing issues, fix -Wall warnings, add some
227	  null checks, adds asserts at the top of each function for any
228	  use of conn *c without checking to see if c is NULL first.
229
230        * Also adjust clean-whitespace.pl to clean *.ac files.  Add
231          script to test-suite to test for tabs.
232
2332007-04-04  Paul Lindner  <[email protected]>
234
235	* Add clarification of flush_all in the protocol docs
236	  from Elizabeth Mattijsen <[email protected]>
237
2382007-03-31  Paul Lindner  <[email protected]>
239
240	* Add patch from Eli Bingham <[email protected]> to
241	  re-enable the -n switch to memcached.
242
2432007-03-20  Paul Lindner  <[email protected]>
244	* Add patch to collect eviction statistics from
245          Jean-Francois BUSTARRET <[email protected]>.
246
247        * Updated docs, added new test cases for t/stats.t
248
2492007-03-18  Paul Lindner  <[email protected]>
250
251	* Add more test cases using larger buffer sizes up to and greater
252	  than 1MB.
253
254	* Remove unused parameter to item_size_ok()
255
256	* Use a single printf() in usage()
257
258	* Add a failing test for conforming with maximum connections.
259
2602007-03-17
261	* crash fix from Thomas van Gulick <[email protected]> in
262	  conn_shrink(), passing &ptr, instead of ptr to realloc().
263
2642007-03-05  Paul Lindner  <[email protected]>
265	* Fix a number of places where (s)printf calls were using unsigned
266	  or signed formats that did not match their arguments.
267
268	* Add support for stdbool.h and stdint.h to use the bool and
269	  uint8_t types.
270
271	* Major refactoring - move API calls for assoc/items/slabs to
272	  their own individual header files.  Add apropriate const and
273	  static declarations as appropriate.
274
275	* Avoid type-punning.  Do a more efficient realloc inside the
276	  conn_shrink routine.
277
278        * Fix overflow bug where uninitialized access to slabclass caused
279	  size-0 mallocs during slab preallocation.
280
281	* Use EXIT_SUCCESS/EXIT_FAILURE constants.
282
283	* Convert some sprintf calls to snprintf to protect against
284	  buffer overflows.
285
286	* Explicitly compare against NULL or zero in many places.
287
2882007-03-05
289	* Steven Grimm <[email protected]>: Per-object-type stats collection
290	  support. Specify the object type delimiter with the -D command line
291	  option. Turn stats gathering on and off with "stats detail on" and
292	  "stats detail off". Dump the per-object-type details with
293	  "stats detail dump".
294
2952007-03-01
296	* Steven Grimm <[email protected]>: Fix an off-by-one error in the
297	  multithreaded version's message passing code.
298
2992006-12-23
300	* fix expirations of items set with absolute expiration times in
301	  the past, before the server's start time.  bug was introduced in
302	  1.2.0 with rel_time_t.  Thanks to Adam Dixon
303	  <[email protected]> for the bug report and test case!
304
3052006-11-26
306	* Steven Grimm <[email protected]>: Performance improvements:
307
308	  Dynamic sizing of hashtable to reduce collisions on very large
309	  caches and conserve memory on small caches.
310
311	  Only reposition items in the LRU queue once a minute, to reduce
312	  overhead of accessing extremely frequently-used items.
313
314	  Stop listening for new connections until an existing one closes
315	  if we run out of available file descriptors.
316
317	  Command parser refactoring: Add a single-pass tokenizer to cut
318	  down on string scanning.  Split the command processing into
319	  separate functions for easier profiling and better readability.
320	  Pass key lengths along with the keys in all API functions that
321	  need keys, to avoid needing to call strlen() repeatedly.
322
3232006-11-25
324	* Steve Peters <[email protected]>: OpenBSD has a malloc.h,
325	but warns to use stdlib.h instead
326
3272006-11-22
328	* Steven Grimm <[email protected]>: Add support for multithreaded
329	  execution. Run configure with "--enable-threads" to enable. See
330	  doc/threads.txt for details.
331
3322006-11-13
333	* Iain Wade <[email protected]>: Fix for UDP responses on non-"get"
334	 commands.
335
3362006-10-15
337	* Steven Grimm <[email protected]>: Dynamic sizing of hashtable to
338	  reduce collisions on very large caches and conserve memory on
339	  small caches.
340
3412006-10-13
342	* Steven Grimm <[email protected]>: New faster hash function.
343
3442006-09-20
345
346	* don't listen on UDP by default; more clear message when UDP port in use
347
3482006-09-09
349	* release 1.2.0 (along with 1.1.13, which is the more tested branch)
350
351	nobody has run 1.2.0 in production, to my knowledge.  facebook has run
352	their pre-merge-with-trunk version, but bugs were discovered (and fixed)
353	after the merge.  there might be more.  you've been warned.  :)
354
3552006-09-04
356	* improved autoconf libevent detection, from the Tor project.
357
3582006-09-03
359	* test suite and lot of expiration, delete, flush_all, etc corner
360	  case bugs fixed (Brad Fitzpatrick)
361
3622006-09-02
363	* Nathan Neulinger <[email protected]>: fix breakage in expiration code
364	  causing expiration times to not be processed correctly.
365
3662006-08-21
367	* Nathan Neulinger <[email protected]>: fix incompatabilities with
368	  unix domain socket support and the UDP code and clean up stale
369	  sockets
370
3712006-08-20
372	* Nathan Neulinger <[email protected]>: unix domain socket support
373
3742006-05-03
375	* Steven Grimm <[email protected]>:  big bunch of changes:
376	  big CPU reduction work, UDP-based interface, increased memory
377	  efficiency.  (intertwined patch, committed all together)
378	  <http://lists.danga.com/pipermail/memcached/2006-May/002164.html>
379	  or see svn commit logs
380
3812006-04-30
382	* River Tarnell:  autoconf work for Solaris 10.  Brad:
383	merge and verify it works on Nexenta.
384
3852006-03-04
386	* avva: bucket/generation patch (old, but Brad's just finally
387	committing it)
388
3892006-01-01
390	* Brad Fitzpatrick <[email protected]>:  allocate 1 slab per class
391	on start-up, to avoid confusing users with out-of-memory errors
392	later.  this is 18 MB of allocation on start, unless max memory
393	allowed with -m is lower, in which case only the smaller slab
394	classes are allocated.
395
3962005-08-09
397	* Elizabeth Mattijsen <[email protected]>: needed a way to flush all
398	memcached backend servers, but not at exactly the same time (to
399	reduce load peaks), I've added some simple functionality to the
400	memcached protocol in the "flush_all" command that allows you to
401	specify a time at which the flush will actually occur (instead of
402	always at the moment the "flush_all" command is received).
403
4042005-05-25
405	* patch from Peter van Dijk <[email protected]> to make
406	  stderr unbuffered, for running under daemontools
407
4082005-04-04
409	* patch from Don MacAskill <[email protected]> 'flush_all' doesn't
410	seem to work properly.  Basically, if you try to add a key which
411	is present, but expired, the store fails but the old key is no
412	longer expired.
413
414	* release 1.1.12
415
4162005-01-14
417	* Date: Thu, 18 Nov 2004 15:25:59 -0600
418	  From: David Phillips <[email protected]>
419	Here is a patch to configure.ac and Makefile.am to put the man page in
420	the correct location.  Trying to install the man page from a
421	subdirectory results in the subdirectory being used in the install
422	path (it tries to install to doc/memcached.1).  This is the correct
423	thing to  do:
424
425	- create a Makefile.am in the doc directory that installs the man page
426	  with man_MANS
427	- modify Makefile.am in the base directory to reference the doc
428  	  directory using SUBDIRS
429	- modify the AC_CONFIG_FILES macro in configure.ac to output the
430	  Makefile in doc
431
432
4332005-01-14
434	* pidfile saving support from Lisa Seelye <[email protected]>, sent
435	  Jan 13, 2005
436
4372005-01-14
438	* don't delete libevent events that haven't been added (the deltimer)
439	  patch from Ted Schundler <[email protected]>
440
4412004-12-10
442	* document -M and -r in manpage (Doug Porter <[email protected]>)
443
4442004-07-22
445	* fix buffer overflow in items.c with 250 byte keys along with
446	  other info on the same line going into a 256 byte char[].
447	  thanks to Andrei Nigmatulin <[email protected]>
448
4492004-06-15
450	* immediate deletes weren't being unlinked a few seconds,
451	  preventing "add" commands to the same key in that time period.
452	  thanks to Michael Alan Dorman <[email protected]> for the
453	  bug report and demo script.
454
4552004-04-30
456	* released 1.1.11
457
4582004-04-24
459	* Avva: Add a new command line option: -r , to maximize core file
460	limit.
461
4622004-03-31
463	* Avva: Use getrlimit and setrlimit to set limits for number of
464	simultaneously open file descriptors. Get the current limits and
465	try to raise them if they're not enough for the specified (or the
466	default) setting of max connections.
467
4682004-02-24
469	* Adds a '-M' flag to turn off tossing items from the cache.
470	  (Jason Titus <[email protected]>)
471
4722004-02-19 (Evan)
473	* Install manpage on "make install", etc.
474
4752003-12-30 (Brad)
476	* remove static build stuff.  interferes with PAM setuid stuff
477	  and was only included as a possible fix with the old memory
478	  allocator.  really shouldn't make a difference.
479	* add Jay Bonci's Debian scripts and manpage
480	* release version 1.1.10
481
4822003-12-01 (Avva)
483	* New command: flush_all, causes all existing items to
484	  be invalidated immediately (without deleting them from
485	  memory, merely causing memcached to no longer return them).
4862003-10-23
487	* Shift init code around to fix daemon mode on FreeBSD,
488	* and drop root only after creating the server socket (to
489	* allow the use of privileged ports)
490	* version 1.1.10pre
491
4922003-10-09
493	* BSD compile fixes from Ryan T. Dean
494	* version 1.1.9
495
4962003-09-29
497	* ignore SIGPIPE at start instead of crashing in rare cases it
498	  comes up.  no other code had to be modified, since everything
499	  else is already dead-connection-aware.  (avva)
500
5012003-09-09 (Avva, Lisa Marie Seelye <[email protected]>)
502	* setuid support
503
5042003-09-05 (Avva)
505	* accept all new connections in the same event (so we work with ET epoll)
506	* mark all items as clsid=0 after slab page reassignment to please future
507	  asserts (on the road to making slab page reassignment work fully)
508
5092003-08-12 (Brad Fitzpatrick)
510	* use TCP_CORK on Linux or TCP_PUSH on BSD
511	* only use TCP_NODELAY when we don't have alternatives
512
5132003-08-10
514	* disable Nagel's Algorithm (TCP_NODELAY) for better performance (avva)
515
5162003-08-10
517	* support multiple levels of verbosity (-vv)
518
5192003-08-10  (Evan Martin)
520	* Makefile.am: debug, optimization, and static flags are controlled
521	  by the configure script.
522	* configure.ac:
523	  - allow specifying libevent directory with --with-libevent=DIR
524	  - check for malloc.h (unavailable on BSDs)
525	  - check for socklen_t (unavailable on OSX)
526	* assoc.c, items.c, slabs.c:  Remove some unused headers.
527	* memcached.c:  allow for nonexistence of malloc.h; #define a POSIX
528	  macro to import mlockall flags.
529
5302003-07-29
531	* version 1.1.7
532	* big bug fix: item exptime 0 meant expire immediately, not never
533	* version 1.1.8
534
5352003-07-22
536	* make 'delete' take second arg, of time to refuse new add/replace
537	* set/add/replace/delete can all take abs or delta time (delta can't
538	  be larger than a month)
539
5402003-07-21
541	* added doc/protocol.txt
542
5432003-07-01
544	* report CPU usage in stats
545
5462003-06-30
547	* version 1.1.6
548	* fix a number of obscure bugs
549	* more stats reporting
550
5512003-06-10
552	* removing use of Judy; use a hash.  (judy caused memory fragmentation)
553	* shrink some structures
554	* security improvements
555	* version 1.1.0
556
5572003-06-18
558	* changing maxsize back to an unsigned int
559
5602003-06-16
561	* adding PHP support
562	* added CONTRIBUTORS file
563	* version 1.0.4
564
5652003-06-15
566	* forgot to distribute website/api (still learning auto*)
567	* version 1.0.3
568
5692003-06-15
570	* update to version 1.0.2
571	* autoconf/automake fixes for older versions
572	* make stats report version number
573	* change license from GPL to BSD
574
575Fri, 13 Jun 2003 10:05:51 -0700  Evan Martin  <[email protected]>
576
577	* configure.ac, autogen.sh, Makefile.am:  Use autotools.
578	* items.c, memcached.c:  #include <time.h> for time(),
579	  printf time_t as %lu (is this correct?),
580	  minor warnings fixes.
581
582