aboutsummaryrefslogtreecommitdiff
path: root/src/common/mempool.c
Commit message (Expand)AuthorAge
* Remove svn $Id$s from our source, and remove tor --version --version.•••The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867 Nick Mathewson2009-01-04
* Remove some code that is #ifdefed out, and that we no longer seem to use, if ...•••svn:r17827 Nick Mathewson2008-12-30
* r17659@tombo: nickm | 2008-08-06 12:22:11 -0400••• Fix bug 794: recover 3 bytes wasted per memory chunk. Fix from rovv. svn:r16447 Nick Mathewson2008-08-06
* r14374@tombo: nickm | 2008-02-21 16:57:39 -0500••• Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665 Nick Mathewson2008-02-21
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500••• Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484 Nick Mathewson2008-02-12
* r14111@tombo: nickm | 2008-02-10 20:52:19 -0500••• "0 bytes in 1 empty chunks" is hardly likely. svn:r13463 Nick Mathewson2008-02-11
* doxygen and other cleanups•••svn:r13440 Roger Dingledine2008-02-09
* r14061@tombo: nickm | 2008-02-08 14:30:42 -0500••• Add a couple of (currently disabled) strategies for trying to avoid using too much ram in memory pools: prefer putting new cells in almost-full chunks, and be willing to free the last empty chunk if we have not needed it for a while. Also add better output to mp_pool_log_status to track how many mallocs a given memory pool strategy is saving us, so we can tune the mempool parameters. svn:r13428 Nick Mathewson2008-02-08
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17951@catbus: nickm | 2008-02-06 14:34:13 -0500••• Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces. svn:r13407 Nick Mathewson2008-02-06
* r17903@catbus: nickm | 2008-02-05 14:40:03 -0500••• Remove some dead code; fix some XXX020s; turn some XXX020s into XXXX_IP6s (i.e., "needs to be fixed when we add ipv6 support"). svn:r13382 Nick Mathewson2008-02-05
* r15691@tombo: nickm | 2007-12-25 18:13:54 -0500••• New, slightly esoteric function, tor_malloc_roundup(). While tor_malloc(x) allocates x bytes, tor_malloc_roundup(&x) allocates the same size of chunk it would use to store x bytes, and sets x to the usable size of that chunk. svn:r12981 Nick Mathewson2007-12-26
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* r13476@catbus: nickm | 2007-06-17 14:04:41 -0400••• Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.) svn:r10644 Nick Mathewson2007-06-17
* r13143@catbus: nickm | 2007-06-01 16:43:40 -0400••• Try to fix some mipspro compiler warnings. There will still be some left. svn:r10444 Nick Mathewson2007-06-02
* r13111@catbus: nickm | 2007-05-31 15:03:41 -0400••• Cleanup whitespace. svn:r10425 Nick Mathewson2007-05-31
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400••• Resolve all but 3 DOCDOCs. svn:r10393 Nick Mathewson2007-05-29
* polish r9933-r9994•••svn:r10335 Roger Dingledine2007-05-25
* r12916@catbus: nickm | 2007-05-24 12:43:45 -0400••• Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more. svn:r10304 Nick Mathewson2007-05-24
* r13017@Kushana: nickm | 2007-05-20 13:40:45 -0400••• Address points in r10227. svn:r10229 Nick Mathewson2007-05-20
* point out two remote crash bugs, a memory leak, and a few other•••items we should probably look into. svn:r10227 Roger Dingledine2007-05-20
* r12499@catbus: nickm | 2007-04-23 10:42:23 -0400••• Keep a freelist of unused 4k buffer chunks, rather than wasting 8k for every inactive connection_t. svn:r10006 Nick Mathewson2007-04-23
* r12458@catbus: nickm | 2007-04-19 15:52:23 -0400••• Fix a bug in displaying memory pool usage. Also dump cell allocation, and track padded_cell_ts as they are allocated and freed, to make sure we are not leaking cells. svn:r9992 Nick Mathewson2007-04-19
* r12456@catbus: nickm | 2007-04-19 14:47:01 -0400••• Make dumpmemusage() dump cell pool usage information. svn:r9991 Nick Mathewson2007-04-19
* r12414@catbus: nickm | 2007-04-16 17:37:17 -0400••• More proposal-104 stuff: actually remember extra-info stuff. svn:r9975 Nick Mathewson2007-04-16
* r12353@catbus: nickm | 2007-04-11 15:58:46 -0400••• Apparently some compilers think that anonymous unions are bad C. Technically, they're right, so let's name the union in mempool.c. svn:r9946 Nick Mathewson2007-04-11
* r12349@catbus: nickm | 2007-04-11 09:18:15 -0400••• Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync. svn:r9944 Nick Mathewson2007-04-11
* r12344@catbus: nickm | 2007-04-10 21:27:25 -0400••• Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942 Nick Mathewson2007-04-11
* r12338@catbus: nickm | 2007-04-10 20:29:05 -0400••• Document memory pool implementation, and tweak it even mor. See? Programming is fun. svn:r9940 Nick Mathewson2007-04-11
* r12337@catbus: nickm | 2007-04-10 17:55:26 -0400••• Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this. svn:r9939 Nick Mathewson2007-04-11
* r12336@catbus: nickm | 2007-04-10 17:34:25 -0400••• Unit tests and debugging for memory pool implementation. svn:r9938 Nick Mathewson2007-04-11
* r12335@catbus: nickm | 2007-04-10 16:53:48 -0400••• Initial version of memory pool logic. Needs unit tests. Made to be easily separable from Tor. svn:r9937 Nick Mathewson2007-04-11