This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/2] tunables for glibc
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Siddhesh Poyarekar <siddhesh at sourceware dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 2 Jul 2016 17:24:40 -0700
- Subject: Re: [PATCH 0/2] tunables for glibc
- Authentication-results: sourceware.org; auth=none
- References: <1467479562-11357-1-git-send-email-siddhesh at sourceware dot org>
On Sat, Jul 2, 2016 at 10:12 AM, Siddhesh Poyarekar
<siddhesh@sourceware.org> wrote:
> Hi,
>
> Here's another stab at the tunables patchset. This patch now gets tunables
> working with static binaries as well.
>
> The tunables framework aims to provide a simple and consistent interface for
> the library to expose tuning switches in a much more coherent manner to
> userspace. In its initial form, the framework will allow users to tweak
> certain parts of the library using an environment variable (or set of
> environment variables, depending on where the consensus sends us). In future,
> this could be extended to per-user or even systemwide tuning switches.
>
> The first patch implements a bare framework that moves the environment
> variables in the malloc module to the tunables framework without adding any new
> user-visible functionality. The environment variables that were implemented
> earlier should work as is.
>
> The second patch adds support for a GLIBC_TUNABLES environment variable, which
> users can use to set up tunables instead of using the old environment
> variables. The alternative approach to this is to expose namespace-consistent
> environment variables for each tunable for userspace to take advantage of
> instead of the earlier environment variables.
>
> Siddhesh Poyarekar (2):
> Add framework for tunables
> Initialize tunable list with the GLIBC_TUNABLES environment variable
>
> INSTALL | 6 +
> Makeconfig | 16 +++
> README.tunables | 74 ++++++++++++
> config.h.in | 3 +
> config.make.in | 1 +
> configure | 16 +++
> configure.ac | 10 ++
> csu/init-first.c | 7 ++
> elf/Makefile | 5 +
> elf/Versions | 3 +
> elf/dl-tunable-types.h | 45 +++++++
> elf/dl-tunables.c | 241 ++++++++++++++++++++++++++++++++++++++
> elf/dl-tunables.h | 76 ++++++++++++
> elf/dl-tunables.list | 50 ++++++++
> elf/rtld.c | 8 ++
> malloc/Makefile | 3 +
> malloc/arena.c | 35 ++++++
> malloc/tst-malloc-usable-static.c | 1 +
> manual/install.texi | 5 +
> scripts/gen-tunables.awk | 157 +++++++++++++++++++++++++
> 20 files changed, 762 insertions(+)
> create mode 100644 README.tunables
> create mode 100644 elf/dl-tunable-types.h
> create mode 100644 elf/dl-tunables.c
> create mode 100644 elf/dl-tunables.h
> create mode 100644 elf/dl-tunables.list
> create mode 100644 malloc/tst-malloc-usable-static.c
> create mode 100644 scripts/gen-tunables.awk
>
Can you push you new patches to siddhesh/tunables branch so
that I can give it a try?
Thanks.
--
H.J.