Project

General

Profile

Actions

Feature #4590

open

Export talloc data as counters for better memory leakage monitoring in production

Added by ipse almost 4 years ago. Updated over 1 year ago.

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.

Actions #1

Updated by laforge about 3 years ago

  • Category set to libosmocore
Actions #2

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)