This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/2] Tunables for glibc
- From: Siddhesh Poyarekar <sid at reserved-bit dot com>
- To: libc-alpha at sourceware dot org
- Cc: roland at hack dot frob dot com, carlos at redhat dot com, "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>, Andi Kleen <andi at firstfloor dot org>
- Date: Mon, 11 Jan 2016 16:46:21 +0530
- Subject: [PATCH 0/2] Tunables for glibc
- Authentication-results: sourceware.org; auth=none
Hi,
The two patches that follow implement tunables for glibc. As
discussed, I have split the patches to allow for the framework to go
in without having to decide on the format of user input. The first
patch only adds a framework that assumes an available tunable_list
array of tunables initialized from user input in some manner (which is
why the tunables_init function is unimplemented) and adds
compatibility hooks for malloc environment variables. It also adds a
configure script option --enable-tunables to enable tunables; it is
disabled by default.
The second patch implements my preferred way of implementing tunables
user input, which is by setting an environment variable GLIBC_TUNABLES
with a string of name=value pairs separated by colons. I understand
that this patch needs more discussion to gather consensus since
everyone is not on board the idea.
I have run the testsuite with both the patches and have found no
regressions on x86_64.
Siddhesh
Siddhesh Poyarekar (2):
Add framework for tunables
Initialize tunable list with the GLIBC_TUNABLES environment variable
INSTALL | 6 ++
Makeconfig | 9 ++
config.h.in | 3 +
config.make.in | 1 +
configure | 16 ++++
configure.ac | 10 ++
conform/linknamespace.pl | 4 +-
csu/init-first.c | 7 ++
csu/libc-start.c | 4 +-
malloc/arena.c | 86 +++++++++++++++++
manual/install.texi | 5 +
nptl/nptl-init.c | 9 +-
scripts/gen-tunables.awk | 84 +++++++++++++++++
tunables/Makefile | 33 +++++++
tunables/README | 93 ++++++++++++++++++
tunables/Versions | 8 ++
tunables/tunable-list.h | 32 +++++++
tunables/tunables.c | 240 +++++++++++++++++++++++++++++++++++++++++++++++
tunables/tunables.h | 111 ++++++++++++++++++++++
tunables/tunables.list | 12 +++
20 files changed, 769 insertions(+), 4 deletions(-)
create mode 100644 scripts/gen-tunables.awk
create mode 100644 tunables/Makefile
create mode 100644 tunables/README
create mode 100644 tunables/Versions
create mode 100644 tunables/tunable-list.h
create mode 100644 tunables/tunables.c
create mode 100644 tunables/tunables.h
create mode 100644 tunables/tunables.list
--
2.5.0