summaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* More thoroughly document the *.{nmalloc,ndalloc,nrequests} mallctls.Jason Evans2017-05-301-24/+50
| | | | This resolves #412.
* Add the --disable-thp option to support cross compiling.Jason Evans2017-05-301-0/+11
| | | | This resolves #669.
* Add opt.stats_print_opts.Qi Wang2017-05-291-1/+22
| | | | The value is passed to atexit(3)-triggered malloc_stats_print() calls.
* Added opt_abort_conf: abort on invalid config options.Qi Wang2017-05-271-1/+19
|
* Disable percpu_arena by default.Jason Evans2017-05-231-2/+2
|
* Add documentation for background_thread related options.Qi Wang2017-05-231-0/+78
|
* Refactor *decay_time into *decay_ms.Jason Evans2017-05-181-58/+60
| | | | | | | | Support millisecond resolution for decay times. Among other use cases this makes it possible to specify a short initial dirty-->muzzy decay phase, followed by a longer muzzy-->clean decay phase. This resolves #812.
* Add stats: arena uptime.Qi Wang2017-05-181-0/+12
|
* Add extent_destroy_t and use it during arena destruction.Jason Evans2017-04-291-0/+20
| | | | | | | | | | Add the extent_destroy_t extent destruction hook to extent_hooks_t, and use it during arena destruction. This hook explicitly communicates to the callee that the extent must be destroyed or tracked for later reuse, lest it be permanently leaked. Prior to this change, retained extents could unintentionally be leaked if extent retention was enabled. This resolves #560.
* Refactor !opt.munmap to opt.retain.Jason Evans2017-04-291-8/+9
|
* Replace --disable-munmap with opt.munmap.Jason Evans2017-04-251-13/+25
| | | | | | | | | Control use of munmap(2) via a run-time option rather than a compile-time option (with the same per platform default). The old behavior of --disable-munmap can be achieved with --with-malloc-conf=munmap:false. This partially resolves #580.
* Remove --disable-tls.Jason Evans2017-04-211-10/+0
| | | | | | | This option is no longer useful, because TLS is correctly configured automatically on all supported platforms. This partially resolves #580.
* Remove --disable-tcache.Jason Evans2017-04-211-28/+6
| | | | | | | | | | | Simplify configuration by removing the --disable-tcache option, but replace the testing for that configuration with --with-malloc-conf=tcache:false. Fix the thread.arena and thread.tcache.flush mallctls to work correctly if tcache is disabled. This partially resolves #580.
* Prefer old/low extent_t structures during reuse.Jason Evans2017-04-171-4/+4
| | | | | | Rather than using a LIFO queue to track available extent_t structures, use a red-black tree, and always choose the oldest/lowest available during reuse.
* Added documentation for mutex profiling related mallctls.Qi Wang2017-03-231-0/+206
|
* Added JSON output for lock stats.Qi Wang2017-03-231-1/+2
| | | | Also added option 'x' to malloc_stats() to bypass lock section.
* Implement two-phase decay-based purging.Jason Evans2017-03-151-58/+181
| | | | | | | | | | | | | | | | | | | | Split decay-based purging into two phases, the first of which uses lazy purging to convert dirty pages to "muzzy", and the second of which uses forced purging, decommit, or unmapping to convert pages to clean or destroy them altogether. Not all operating systems support lazy purging, yet the application may provide extent hooks that implement lazy purging, so care must be taken to dynamically omit the first phase when necessary. The mallctl interfaces change as follows: - opt.decay_time --> opt.{dirty,muzzy}_decay_time - arena.<i>.decay_time --> arena.<i>.{dirty,muzzy}_decay_time - arenas.decay_time --> arenas.{dirty,muzzy}_decay_time - stats.arenas.<i>.pdirty --> stats.arenas.<i>.p{dirty,muzzy} - stats.arenas.<i>.{npurge,nmadvise,purged} --> stats.arenas.<i>.{dirty,muzzy}_{npurge,nmadvise,purged} This resolves #521.
* Add documentation for percpu_arena in jemalloc.xml.in.Qi Wang2017-03-091-0/+18
|
* Implement arena.<i>.destroy .Jason Evans2017-01-071-14/+37
| | | | | | | Add MALLCTL_ARENAS_DESTROYED for accessing destroyed arena stats as an analogue to MALLCTL_ARENAS_ALL. This resolves #382.
* Replace the arenas.initialized mallctl with arena.<i>.initialized .Jason Evans2017-01-071-13/+14
|
* Rename the arenas.extend mallctl to arenas.create.Jason Evans2017-01-071-9/+9
|
* Add MALLCTL_ARENAS_ALL.Jason Evans2017-01-071-15/+22
| | | | | | | Add the MALLCTL_ARENAS_ALL cpp macro as a fixed index for use in accessing the arena.<i>.{purge,decay,dss} and stats.arenas.<i>.* mallctls, and deprecate access via the arenas.narenas index (to be removed in 6.0.0).
* Implement per arena base allocators.Jason Evans2016-12-271-19/+44
| | | | | | | | | | | | | Add/rename related mallctls: - Add stats.arenas.<i>.base . - Rename stats.arenas.<i>.metadata to stats.arenas.<i>.internal . - Add stats.arenas.<i>.resident . Modify the arenas.extend mallctl to take an optional (extent_hooks_t *) argument so that it is possible for all base allocations to be serviced by the specified extent hooks. This resolves #463.
* Refactor purging and splitting/merging.Jason Evans2016-12-271-13/+16
| | | | | | | | | | | | | | Split purging into lazy and forced variants. Use the forced variant for zeroing dss. Add support for NULL function pointers as an opt-out mechanism for the dalloc, commit, decommit, purge_lazy, purge_forced, split, and merge fields of extent_hooks_t. Add short-circuiting checks in large_ralloc_no_move_{shrink,expand}() so that no attempt is made if splitting/merging is not supported. This resolves #268.
* Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).Jason Evans2016-11-151-1/+1
| | | | | This avoids warnings in some cases, and is otherwise generally good hygiene.
* Use <quote>...</quote> rather than &ldquo;...&rdquo; or "..." in XML.Jason Evans2016-11-012-31/+33
|
* Add "J" (JSON) support to malloc_stats_print().Jason Evans2016-11-011-22/+22
| | | | This resolves #474.
* Remove all vestiges of chunks.Jason Evans2016-10-121-31/+0
| | | | | | | | Remove mallctls: - opt.lg_chunk - stats.cactive This resolves #464.
* Remove ratio-based purging.Jason Evans2016-10-121-76/+0
| | | | | | | | | | | | | Make decay-based purging the default (and only) mode. Remove associated mallctls: - opt.purge - opt.lg_dirty_mult - arena.<i>.lg_dirty_mult - arenas.lg_dirty_mult - stats.arenas.<i>.lg_dirty_mult This resolves #385.
* Change html manual encoding to UTF-8.Jason Evans2016-09-123-92/+96
| | | | | | | | | | | This works around GitHub's broken automatic reformatting from ISO-8859-1 to UTF-8 when serving static html. Remove <parameter/> from e.g. <function>malloc<parameter/></function>, add a custom template that does not append parentheses, and manually specify them, e.g. <function>malloc()</function>. This works around apparently broken XSL formatting that causes <code/> to be emitted in html (rather than <code></code>, or better yet, nothing).
* Update project URL.Jason Evans2016-09-121-1/+1
|
* Modify extent hook functions to take an (extent_t *) argument.Jason Evans2016-06-061-3/+11
| | | | | | | This facilitates the application accessing its own extent allocator metadata during hook invocations. This resolves #259.
* Miscellaneous s/chunk/extent/ updates.Jason Evans2016-06-061-8/+9
|
* Remove obsolete stats.arenas.<i>.metadata.mapped mallctl.Jason Evans2016-06-061-20/+5
| | | | | Rename stats.arenas.<i>.metadata.allocated mallctl to stats.arenas.<i>.metadata .
* Rename chunk_*_t hooks to extent_*_t.Jason Evans2016-06-061-76/+78
|
* s/chunk_hook/extent_hook/gJason Evans2016-06-061-9/+9
|
* Rename huge to large.Jason Evans2016-06-061-59/+15
|
* Move slabs out of chunks.Jason Evans2016-06-061-58/+44
|
* Use huge size class infrastructure for large size classes.Jason Evans2016-06-061-76/+12
|
* Remove obsolete reference to Valgrind and quarantine.Jason Evans2016-06-031-3/+1
|
* Remove redzone support.Jason Evans2016-05-131-15/+0
| | | | This resolves #369.
* Remove quarantine support.Jason Evans2016-05-131-17/+0
|
* Remove Valgrind support.Jason Evans2016-05-131-32/+9
|
* Add the stats.retained and stats.arenas.<i>.retained statistics.Jason Evans2016-05-041-0/+31
| | | | This resolves #367.
* Implement the arena.<i>.reset mallctl.Jason Evans2016-04-221-0/+17
| | | | | | | This makes it possible to discard all of an arena's allocations in a single operation. This resolves #146.
* Doc typo fixes.hitstergtd2016-04-181-3/+3
|
* Update implementation details docs re: PTRDIFF_MAX.Jason Evans2016-03-311-3/+11
| | | | | | | Document that the maximum size class is limited by PTRDIFF_MAX, rather than the full address space. This reflects changes that were part of 0c516a00c4cb28cff55ce0995f756b5aae074c9e (Make *allocx() size class overflow behavior defined.).
* Make *allocx() size class overflow behavior defined.Jason Evans2016-02-251-8/+6
| | | | | | | Limit supported size and alignment to HUGE_MAXCLASS, which in turn is now limited to be less than PTRDIFF_MAX. This resolves #278 and #295.
* Document the heap profile format.Jason Evans2016-02-241-1/+49
| | | | This resolves #258.
* Update manual to reflect removal of global huge object tree.Jason Evans2016-02-241-16/+11
| | | | This resolves #323.