summaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Make opt_narenas unsigned rather than size_t.Jason Evans2016-02-241-1/+1
|
* Implement decay-based unused dirty page purging.Jason Evans2016-02-201-1/+94
| | | | | | | | | | | | | | | | This is an alternative to the existing ratio-based unused dirty page purging, and is intended to eventually become the sole purging mechanism. Add mallctls: - opt.purge - opt.decay_time - arena.<i>.decay - arena.<i>.decay_time - arenas.decay_time - stats.arenas.<i>.decay_time This resolves #325.
* Add --with-malloc-conf.Jason Evans2016-02-201-8/+20
| | | | | Add --with-malloc-conf, which makes it possible to embed a default options string during configuration.
* Fix a documentation editing error.Jason Evans2016-02-201-1/+1
|
* Fix a manual editing error.Jason Evans2015-10-191-2/+2
|
* Improve arena.<i>.chunk_hooks documentation formatting.Jason Evans2015-08-141-37/+46
|
* Update in-place reallocation documentation.Jason Evans2015-08-141-3/+9
|
* Update large/huge size class cutoff documentation.Jason Evans2015-08-141-9/+9
|
* Implement chunk hook support for page run commit/decommit.Jason Evans2015-08-071-24/+37
| | | | | | | | | Cascade from decommit to purge when purging unused dirty pages, so that it is possible to decommit cleaned memory rather than just purging. For non-Windows debug builds, decommit runs rather than purging them, since this causes access of deallocated runs to segfault. This resolves #251.
* Generalize chunk management hooks.Jason Evans2015-08-041-68/+133
| | | | | | | | | | | | | | | | | | | | Add the "arena.<i>.chunk_hooks" mallctl, which replaces and expands on the "arena.<i>.chunk.{alloc,dalloc,purge}" mallctls. The chunk hooks allow control over chunk allocation/deallocation, decommit/commit, purging, and splitting/merging, such that the application can rely on jemalloc's internal chunk caching and retaining functionality, yet implement a variety of chunk management mechanisms and policies. Merge the chunks_[sz]ad_{mmap,dss} red-black trees into chunks_[sz]ad_retained. This slightly reduces how hard jemalloc tries to honor the dss precedence setting; prior to this change the precedence setting was also consulted when recycling chunks. Fix chunk purging. Don't purge chunks in arena_purge_stashed(); instead deallocate them in arena_unstash_purged(), so that the dirty memory linkage remains valid until after the last time it is used. This resolves #176 and #201.
* Add the config.cache_oblivious mallctl.Jason Evans2015-07-171-0/+10
|
* Change default chunk size from 256 KiB to 2 MiB.Jason Evans2015-07-161-1/+1
| | | | | | This change improves interaction with transparent huge pages, e.g. reduced page faults (at least in the absence of unused dirty page purging).
* Clarify relationship between stats.resident and stats.mapped.Jason Evans2015-05-301-4/+6
|
* Rename pprof to jeprof.Jason Evans2015-05-011-2/+3
| | | | | | | | | | This rename avoids installation collisions with the upstream gperftools. Additionally, jemalloc's per thread heap profile functionality introduced an incompatible file format, so it's now worthwhile to clearly distinguish jemalloc's version of this script from the upstream version. This resolves #229.
* Fix mallctl doc: arenas.hchunk.<i>.sizeQinfan Wu2015-04-301-2/+2
|
* Add the "stats.arenas.<i>.lg_dirty_mult" mallctl.Jason Evans2015-03-241-0/+12
|
* Add the "stats.allocated" mallctl.Jason Evans2015-03-241-3/+20
|
* Implement dynamic per arena control over dirty page purging.Jason Evans2015-03-191-8/+80
| | | | | | | | | | | | | | Add mallctls: - arenas.lg_dirty_mult is initialized via opt.lg_dirty_mult, and can be modified to change the initial lg_dirty_mult setting for newly created arenas. - arena.<i>.lg_dirty_mult controls an individual arena's dirty page purging threshold, and synchronously triggers any purging that may be necessary to maintain the constraint. - arena.<i>.chunk.purge allows the per arena dirty page purging function to be replaced. This resolves #93.