Actions
Feature #4590
openExport talloc data as counters for better memory leakage monitoring in production
Status:
New
Priority:
Normal
Assignee:
-
Category:
libosmocore
Target version:
-
Start date:
06/07/2020
Due date:
% Done:
0%
Spec Reference:
Description
talloc
has a quite well-structured way of allocating memory with text descriptions, so it should be possible to reasonably export its statistics as gauges in a universal way.
E.g. we can export number or allocated elements per context and their total size.
This feature might need to be enabled/disabled from VTY.
Updated by daniel over 1 year ago
It looks like talloc_report_depth_cb()
can be used for that:
https://talloc.samba.org/talloc/doc/html/group__talloc__debug.html
talloc_full_report_printf()
uses it under the hood, see also here:
https://github.com/samba-team/samba/blob/master/lib/util/talloc_report_printf.c
Actions