summaryrefslogtreecommitdiffstats
path: root/src/stats.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweak the spacing for the total_wait_time per second.Qi Wang2019-01-281-0/+1
|
* Rename huge_threshold to oversize_threshold.Qi Wang2019-01-251-1/+1
| | | | | The keyword huge tend to remind people of huge pages which is not relevent to the feature.
* Tweak the spacing for nrequests in stats output.Qi Wang2019-01-241-2/+2
|
* Fix stats output (rate for total # of requests).Qi Wang2019-01-241-0/+6
| | | | The rate calculation for the total row was missing.
* Un-experimental the huge_threshold feature.Qi Wang2019-01-161-1/+1
|
* Add rate counters to statsAlexander Zinoviev2018-12-181-224/+230
|
* Add stats for arenas.bin.i.nshards.Qi Wang2018-12-041-1/+8
|
* Add stats for the size of extent_avail heapTyler Etzel2018-08-021-1/+2
|
* Add extents information to mallocstats outputTyler Etzel2018-08-021-6/+111
| | | | - Show number/bytes of extents of each size that are dirty, muzzy, retained.
* Small refactoring of emitterTyler Etzel2018-08-011-46/+46
| | | | | | | - Make API more clear for using as standalone json emitter - Support cases that weren't possible before, e.g. - emitting primitive values in an array - emitting nested arrays
* Rename huge_threshold to experimental, and tweak documentation.Qi Wang2018-06-291-1/+1
|
* Add ctl and stats for opt.huge_threshold.Qi Wang2018-06-291-0/+1
|
* Fix stats output for opt.lg_extent_max_active_fit.Qi Wang2018-06-051-1/+3
|
* Tweak the format of the per arena summary section.Qi Wang2018-05-171-7/+7
| | | | Increase the width to ensure enough space for long running programs.
* Change mutable option output in stats to avoid stringify issues.Qi Wang2018-03-151-36/+37
|
* Fix a typo in stats.Qi Wang2018-03-151-1/+1
|
* Stats printing: Convert arena large stats to use emitter.David Goldblatt2018-03-091-49/+58
| | | | This completes the conversion; we now have only structured text output.
* Stats printing: convert arena bin stats to use emitter.David Goldblatt2018-03-091-148/+182
|
* Stats printing: remove a spurious newline.David Goldblatt2018-03-091-3/+0
| | | | | This was left over from a previous emitter conversion. It didn't affect the correctness of the output.
* Stats printing: Make arena mutex stats use the emitter.David Goldblatt2018-03-091-98/+72
|
* Stats printing: convert most per-arena stats to use the emitter.David Goldblatt2018-03-091-69/+45
|
* Stats printing: convert paging and alloc counts to use the emitter.David Goldblatt2018-03-091-67/+81
|
* Stats printing: convert decay stats to use the emitter.David Goldblatt2018-03-091-73/+132
|
* Stats printing: Move emitter cutoff point into stats_arena_print.David Goldblatt2018-03-091-13/+12
|
* Stats printing: move stats_print_helper to use emitter.David Goldblatt2018-03-091-102/+61
|
* Stats printing: Move global mutex stats to use emitter.David Goldblatt2018-03-091-43/+97
|
* Stats printing: move non-mutex arena stats to the emitter.David Goldblatt2018-03-091-54/+43
| | | | | Another step in the conversion process. The mutex is a little different, because we we want to emit it as an array.
* Stats printing: Remove explicit callback passing to stats_print_helper.David Goldblatt2018-03-091-5/+12
| | | | | This makes the emitter the only source of callback information, which is a step towards where we want to be.
* Stats printing: Move emitter -> manual cutoff point.David Goldblatt2018-03-091-18/+11
| | | | | This makes it so that the "general" portion of the stats code is completely agnostic to emitter type.
* Stats printing: Convert profiling stats to use the emitter.David Goldblatt2018-03-091-31/+28
| | | | While we're at it, print them in table form, too.
* Stats printing: Convert general arena stats to use the emitter.David Goldblatt2018-03-091-82/+64
|
* Stats printing: convert config and opt output to use emitter.David Goldblatt2018-03-091-180/+107
| | | | This is a step along the path towards using the emitter for all stats output.
* Stats printing: Convert header and footer to use emitter.David Goldblatt2018-03-091-15/+13
|
* Add opt.thp which allows explicit hugepage usage.Qi Wang2018-03-081-0/+1
| | | | | | | | "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.
* Remove config.thp which wasn't in use.Qi Wang2018-03-081-1/+0
|
* handle 32 bit mutex countersRajeev Misra2018-01-041-36/+47
|
* Output opt.lg_extent_max_active_fit in stats.Qi Wang2017-12-141-0/+3
|
* Output all counters for bin mutex stats.Qi Wang2017-10-191-4/+7
| | | | The saved space is not worth the trouble of missing counters.
* Add stats for metadata_thp.Qi Wang2017-08-301-4/+18
| | | | Report number of THPs used in arena and aggregated stats.
* Change opt.metadata_thp to [disabled,auto,always].Qi Wang2017-08-301-1/+1
| | | | | | | | 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.
* Implement opt.metadata_thpQi Wang2017-08-111-0/+1
| | | | | This option enables transparent huge page for base allocators (require MADV_HUGEPAGE support).
* Output total_wait_ns for bin mutexes.Qi Wang2017-05-311-19/+5
|
* Add the --disable-thp option to support cross compiling.Jason Evans2017-05-301-0/+1
| | | | This resolves #669.
* Add opt.stats_print_opts.Qi Wang2017-05-291-42/+19
| | | | 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-0/+1
|
* Header refactoring: unify and de-catchall mutex moduleDavid Goldblatt2017-05-241-0/+1
|
* Add background thread related stats.Qi Wang2017-05-231-1/+39
|
* Implementing opt.background_thread.Qi Wang2017-05-231-0/+1
| | | | | | | | | | | Added opt.background_thread to enable background threads, which handles purging currently. When enabled, decay ticks will not trigger purging (which will be left to the background threads). We limit the max number of threads to NCPUs. When percpu arena is enabled, set CPU affinity for the background threads as well. The sleep interval of background threads is dynamic and determined by computing number of pages to purge in the future (based on backlog).
* Refactor *decay_time into *decay_ms.Jason Evans2017-05-181-27/+15
| | | | | | | | 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/+10
|