Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Glibc Introduces /etc/tunables.conf For System-Wide Tunables

Glibc has introduced a new /etc/tunables.conf configuration file that allows system administrators to set glibc tunables system-wide, rather than only through environment variables or per-process settings. This feature provides a more convenient way to apply performance or behavioral tunings across all processes on a Linux system.

Background

- **glibc** (GNU C Library) is the core library that nearly all Linux programs rely on for basic functions like memory allocation, file I/O, and string handling. It's essentially the "runtime" for C programs on Linux. - This article announces a new feature: a file at `/etc/tunables.conf` that lets system administrators set glibc performance/behavior options system-wide, rather than having each application or user configure them individually via environment variables. - Prior to this, glibc's "tunables" (e.g., memory allocator settings, thread-local storage behavior) could only be set per-process via environment variables like `GLIBC_TUNABLES` or via the `glibc.elision.enable` ELF property. There was no single configuration file. - This is relevant to server operators and Linux distribution maintainers who want consistent tuning across all software without modifying application launchers or user profiles. - The feature is still experimental and not yet merged into the main glibc codebase; it's currently proposed as a patch series.

Related stories