Memory Related Tunables (The GNU C Library)

### 39.6 Memory Related Tunables ¶

Tunable namespace: glibc.mem ¶

  This tunable namespace supports operations that affect the way the GNU C Library and the process manage memory.

Tunable: glibc.mem.decorate_maps ¶

  If the kernel supports naming anonymous virtual memory areas (since Linux version 5.17, although not always enabled by some kernel configurations), this tunable can be used to control whether the GNU C Library decorates the underlying memory obtained from operating system with a string describing its usage (for instance, on the thread stack created by `pthread_create` or memory allocated by `malloc`).

  The process mappings can be obtained by reading the `/proc/<pid>/maps` (with `pid` being either the process ID or `self` for the process own mapping).

  This tunable takes a value of 0 and 1, where 1 enables the feature. The default value is ‘`0`’, which disables the decoration.