From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85371 invoked by alias); 5 Apr 2018 01:11:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 85362 invoked by uid 89); 5 Apr 2018 01:11:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f195.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=7OpaJNk3JJHYPKxxI9oVN/BzKEKxY1oBHhZUit4Mkuk=; b=QLW/qEJXHpZm6vWFMJUdLMIMfjS8jTH5tVRH22myhm1Yr9JBsGWAPGR7DpUzY3hdpd LG2t0o+X/Ka6pSHsQFwrB2iAKIXohawZSlEREvW5nVIJWG5b1BIP02lmhCsVuneexz4C N/SKmSA3NRqwnwyAM8jSHWED8lgaMBDgXYT+/ckN7BrGsnQUtOmjlvzutEqFpYA1uOwx Vz38VTbgJVVLcbXKik85ULEKxtKBFdYchxsYHxhVFrc67NZWPv0aJMMcBfKRJ809lPsT 8vk+7QNwPejAPEjn2QTJrIt7bHoqrNd7waYadYPE3l1mwlj+RMvABdaS7pcmoAqpYNw0 38BA== X-Gm-Message-State: ALQs6tBUVTJC4D7luafsIDvGCCos0F+yDuH9U+6q8pVCliQHTnHeeAIy Z3Drv/ko5peiMkBLNrNbFg8Ddw== X-Google-Smtp-Source: AIpwx48JBoAHMWJ/cKl3Z4hd+m7erZUsimZe7ZnKTS80zngMqLSSNJwIR7sJpB41etfMezRvpm/G4Q== X-Received: by 10.237.60.9 with SMTP id t9mr30301060qte.228.1522890671051; Wed, 04 Apr 2018 18:11:11 -0700 (PDT) Subject: Re: [PATCH 1/3] Tunables: Add tunables of spin count for adaptive spin mutex To: Adhemerval Zanella , kemi Cc: Dave Hansen , Tim Chen , Andi Kleen , Ying Huang , Aaron Lu , Glibc alpha , aubrey References: <1522394093-9835-1-git-send-email-kemi.wang@intel.com> <03d60e93-a167-1401-b67e-22d7d2443486@intel.com> From: Carlos O'Donell Message-ID: Date: Thu, 05 Apr 2018 01:11:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-04/txt/msg00130.txt.bz2 On 04/04/2018 12:16 PM, Adhemerval Zanella wrote: >>> Also I not sure if it worth to add environment variable for this tunable, >>> I would rather avoid adding newer ones (and naming seems off, since afaik >>> LD_* meaning some parameters that affects the loader). >>> >> >> AFAIK, environment variable is what I can think of to give people the possibility of >> tunes in shell for that, maybe you have better idea? >> >> Yes, we probably use other name like MUTEX_SPIN_COUNT to avoid confusion, agree? > > The tunables framework already provides a environment variable to this [1], > the 'env_alias' is mainly to provide compatibility and to use the same logic > internally. > > So I think it is better to use the default tunable env var. > > [1] https://www.gnu.org/software/libc/manual/html_node/Tunables.html Fully agree. We should never add any new environment variable, they should all be automatically used from the top-level tunable env var. -- Cheers, Carlos.