Re: [patch V2 4/7] futex: Add sysctl knobs for process private hash
From: Darren Hart
Date: Fri May 06 2016 - 14:22:12 EST
On Thu, May 05, 2016 at 08:44:05PM -0000, Thomas Gleixner wrote:
> From: Sebastian Siewior <bigeasy@xxxxxxxxxxxxx>
>
> To adjust the default hash size and the maximum hash size for process private
> futexes we add the following sysctls:
>
> futex_private_default_hash_bits:
>
> Adjusts the default hash size (in bits) which is used for automatic hash
> allocations on the first futex operation
>
> futex_private_max_hash_bits:
>
> Adjusts the maximum hash size (in bits). This limits the hash size which
> can be preallocated by applications with the FUTEX_PREALLOC_HASH op.
>
> Signed-off-by: Sebastian Siewior <bigeasy@xxxxxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> Documentation/sysctl/kernel.txt | 17 +++++++++++++++++
> include/linux/futex.h | 1 +
> kernel/futex.c | 5 +++--
> kernel/sysctl.c | 21 +++++++++++++++++++++
> 4 files changed, 42 insertions(+), 2 deletions(-)
>
> --- a/Documentation/sysctl/kernel.txt
> +++ b/Documentation/sysctl/kernel.txt
> @@ -29,6 +29,8 @@ Currently, these files might (depending
> - core_pipe_limit
> - core_uses_pid
> - ctrl-alt-del
> +- futex_private_default_hash_bits
> +- futex_private_max_hash_bits
This list (this context anyway) looks to have been alphabetical previously,
consider moving futex* between domainname and hostname?
--
Darren Hart
Intel Open Source Technology Center