[PATCHv2 2/2] Initialize tunable list with the GLIBC_TUNABLES environment variable

Paul E. Murphy murphyp@linux.vnet.ibm.com
Mon Jan 18 22:17:00 GMT 2016



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"



More information about the Libc-alpha mailing list