server-skynet-source-3rd-je.../jemalloc
Jason Evans 84c8eefeff Use bitmaps to track small regions.
The previous free list implementation, which embedded singly linked
lists in available regions, had the unfortunate side effect of causing
many cache misses during thread cache fills.  Fix this in two places:

  - arena_run_t: Use a new bitmap implementation to track which regions
                 are available.  Furthermore, revert to preferring the
                 lowest available region (as jemalloc did with its old
                 bitmap-based approach).

  - tcache_t: Move read-only tcache_bin_t metadata into
              tcache_bin_info_t, and add a contiguous array of pointers
              to tcache_t in order to track cached objects.  This
              substantially increases the size of tcache_t, but results
              in much higher data locality for common tcache operations.
              As a side benefit, it is again possible to efficiently
              flush the least recently used cached objects, so this
              change changes flushing from MRU to LRU.

The new bitmap implementation uses a multi-level summary approach to
make finding the lowest available region very fast.  In practice,
bitmaps only have one or two levels, though the implementation is
general enough to handle extremely large bitmaps, mainly so that large
page sizes can still be entertained.

Fix tcache_bin_flush_large() to always flush statistics, in the same way
that tcache_bin_flush_small() was recently fixed.

Use JEMALLOC_DEBUG rather than NDEBUG.

Add dassert(), and use it for debug-only asserts.
2011-03-17 16:29:32 -07:00
..
bin Update pprof from google-perftools 1.6. 2010-10-02 11:31:36 -07:00
doc Add the "thread.[de]allocatedp" mallctl's. 2010-12-03 15:55:47 -08:00
include/jemalloc Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
src Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
test Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
autogen.sh Implement configuration system. 2009-06-23 19:01:18 -07:00
ChangeLog Update ChangeLog for 2.1.3. 2011-03-14 16:41:03 -07:00
config.guess Implement configuration system. 2009-06-23 19:01:18 -07:00
config.stamp.in Fix build system problems. 2010-04-07 23:37:35 -07:00
config.sub Implement configuration system. 2009-06-23 19:01:18 -07:00
configure.ac Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
COPYING Port to Mac OS X. 2010-09-11 18:20:16 -07:00
INSTALL Improve backtracing-related configuration. 2011-03-15 22:23:12 -07:00
install-sh Implement configuration system. 2009-06-23 19:01:18 -07:00
Makefile.in Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
README Add ChangeLog. 2010-10-24 16:18:29 -07:00

jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
This distribution is a stand-alone "portable" implementation that currently
targets Linux and Apple OS X.  jemalloc is included as the default allocator in
the FreeBSD and NetBSD operating systems, and it is used by the Mozilla Firefox
web browser on Microsoft Windows-related platforms.  Depending on your needs,
one of the other divergent versions may suit your needs better than this
distribution.

The COPYING file contains copyright and licensing information.

The INSTALL file contains information on how to configure, build, and install
jemalloc.

The ChangeLog file contains a brief summary of changes for each release.

URL: http://www.canonware.com/jemalloc/