This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv2 2/2] Initialize tunable list with the GLIBC_TUNABLES environment variable
- From: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- To: Siddhesh Poyarekar <sid at reserved-bit dot com>, libc-alpha at sourceware dot org
- Cc: roland at hack dot frob dot com, carlos at redhat dot com, Andi Kleen <andi at firstfloor dot org>, tuliom at linux dot vnet dot ibm dot com, munroesj at linux dot vnet dot ibm dot com
- Date: Mon, 18 Jan 2016 16:17:14 -0600
- Subject: Re: [PATCHv2 2/2] Initialize tunable list with the GLIBC_TUNABLES environment variable
- Authentication-results: sourceware.org; auth=none
- References: <20160116185617 dot GA17783 at devel dot intra dot reserved-bit dot com>
On 01/16/2016 12:56 PM, Siddhesh Poyarekar wrote:
> Read tunables values from the users using the GLIBC_TUNABLES
> environment variable. The value of this variable is a colon-separated
> list of name=value pairs. So a typical string would look like this:
Tested on ppc64le.
While this does work as expected with trivial inputs, it does
have some quirks:
I.e this will set the desired tunable:
GLIBC_TUNABLES="glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="glibc.pthread.elision_enable=1:"
GLIBC_TUNABLES="foo=:glibc.pthread.elision_enable=1"
But the following does not:
GLIBC_TUNABLES=":glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="foo:glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="val=foo:bar:glibc.pthread.elision_enable=1"