summaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2019-07-25Update manual for opt.retain (new default on Windows).Qi Wang
2019-07-16Fix logic in printingYinan Zhang
`cbopaque` can now be overriden without overriding `write_cb` in the first place. (Otherwise there would be no need to have the `cbopaque` parameter in `malloc_message`.)
2019-05-22Add confirm_conf optionYinan Zhang
If the confirm_conf option is set, when the program starts, each of the four malloc_conf strings will be printed, and each option will be printed when being set.
2019-05-15Track nfills and nflushes for arenas.i.small / large.Qi Wang
Small is added purely for convenience. Large flushes wasn't tracked before and can be useful in analysis. Large fill simply reports nmalloc, since there is no batch fill for large currently.
2019-04-29Add nonfull_slabs to bin_stats_t.Doron Roberts-Kedes
When config_stats is enabled track the size of bin->slabs_nonfull in the new nonfull_slabs counter in bin_stats_t. This metric should be useful for establishing an upper ceiling on the savings possible by meshing.
2019-04-01Tweak the wording about oversize_threshold.Qi Wang
2019-03-29Document opt.oversize_threshold.Qi Wang
2019-01-25Rename huge_threshold to oversize_threshold.Qi Wang
The keyword huge tend to remind people of huge pages which is not relevent to the feature.
2019-01-23Mention different mmap(2) behaviour with retain:true.Edward Tomasz Napierala
2018-08-02Add stats for the size of extent_avail heapTyler Etzel
2018-08-02Add extents information to mallocstats outputTyler Etzel
- Show number/bytes of extents of each size that are dirty, muzzy, retained.
2018-06-29Rename huge_threshold to experimental, and tweak documentation.Qi Wang
2018-05-01Mallctl: Add arenas.lookupLatchesar Ionkov
Implement a new mallctl operation that allows looking up the arena a region of memory belongs to.
2018-04-11Document liveness requirements for extent_hooks_t structures.Qi Wang
2018-04-10background_thread: add max thread count configDave Watson
Looking at the thread counts in our services, jemalloc's background thread is useful, but mostly idle. Add a config option to tune down the number of threads.
2018-03-08Add opt.thp which allows explicit hugepage usage.Qi Wang
"always" marks all user mappings as MADV_HUGEPAGE; while "never" marks all mappings as MADV_NOHUGEPAGE. The default setting "default" does not change any settings. Note that all the madvise calls are part of the default extent hooks by design, so that customized extent hooks have complete control over the mappings including hugepage settings.
2018-03-08Remove config.thp which wasn't in use.Qi Wang
2017-11-16Add opt.lg_extent_max_active_fitQi Wang
When allocating from dirty extents (which we always prefer if available), large active extents can get split even if the new allocation is much smaller, in which case the introduced fragmentation causes high long term damage. This new option controls the threshold to reuse and split an existing active extent. We avoid using a large extent for much smaller sizes, in order to reduce fragmentation. In some workload, adding the threshold improves virtual memory usage by >10x.
2017-11-03Add arena.i.retain_grow_limitQi Wang
This option controls the max size when grow_retained. This is useful when we have customized extent hooks reserving physical memory (e.g. 1G huge pages). Without this feature, the default increasing sequence could result in fragmented and wasted physical memory.
2017-10-11Document the potential issues about opt.background_thread.Qi Wang
2017-09-11Fix a link for dirty_decay_ms in manual.Qi Wang
2017-08-30Add stats for metadata_thp.Qi Wang
Report number of THPs used in arena and aggregated stats.
2017-08-30Change opt.metadata_thp to [disabled,auto,always].Qi Wang
To avoid the high RSS caused by THP + low usage arena (i.e. THP becomes a significant percentage), added a new "auto" option which will only start using THP after a base allocator used up the first THP region. Starting from the second hugepage (in a single arena), "auto" behaves the same as "always", i.e. madvise hugepage right away.
2017-08-11Implement opt.metadata_thpQi Wang
This option enables transparent huge page for base allocators (require MADV_HUGEPAGE support).
2017-06-12Not re-enable background thread after fork.Qi Wang
Avoid calling pthread_create in postfork handlers.
2017-05-30More thoroughly document the *.{nmalloc,ndalloc,nrequests} mallctls.Jason Evans
This resolves #412.
2017-05-30Add the --disable-thp option to support cross compiling.Jason Evans
This resolves #669.
2017-05-29Add opt.stats_print_opts.Qi Wang
The value is passed to atexit(3)-triggered malloc_stats_print() calls.
2017-05-26Added opt_abort_conf: abort on invalid config options.Qi Wang
2017-05-23Disable percpu_arena by default.Jason Evans
2017-05-23Add documentation for background_thread related options.Qi Wang
2017-05-18Refactor *decay_time into *decay_ms.Jason Evans
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.
2017-05-18Add stats: arena uptime.Qi Wang
2017-04-29Add extent_destroy_t and use it during arena destruction.Jason Evans
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.
2017-04-29Refactor !opt.munmap to opt.retain.Jason Evans
2017-04-24Replace --disable-munmap with opt.munmap.Jason Evans
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.
2017-04-21Remove --disable-tls.Jason Evans
This option is no longer useful, because TLS is correctly configured automatically on all supported platforms. This partially resolves #580.
2017-04-21Remove --disable-tcache.Jason Evans
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.
2017-04-17Prefer old/low extent_t structures during reuse.Jason Evans
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.
2017-03-23Added documentation for mutex profiling related mallctls.Qi Wang
2017-03-23Added JSON output for lock stats.Qi Wang
Also added option 'x' to malloc_stats() to bypass lock section.
2017-03-15Implement two-phase decay-based purging.Jason Evans
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.
2017-03-08Add documentation for percpu_arena in jemalloc.xml.in.Qi Wang
2017-01-06Implement arena.<i>.destroy .Jason Evans
Add MALLCTL_ARENAS_DESTROYED for accessing destroyed arena stats as an analogue to MALLCTL_ARENAS_ALL. This resolves #382.
2017-01-06Replace the arenas.initialized mallctl with arena.<i>.initialized .Jason Evans
2017-01-06Rename the arenas.extend mallctl to arenas.create.Jason Evans
2017-01-06Add MALLCTL_ARENAS_ALL.Jason Evans
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).
2016-12-26Implement per arena base allocators.Jason Evans
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.
2016-12-26Refactor purging and splitting/merging.Jason Evans
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.
2016-11-15Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).Jason Evans
This avoids warnings in some cases, and is otherwise generally good hygiene.