From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by sourceware.org (Postfix) with ESMTPS id 1EE333858C54 for ; Tue, 17 Oct 2023 17:41:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EE333858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=owlfolio.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=owlfolio.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1EE333858C54 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697564471; cv=none; b=jugPtavPiqo+2hJpV85IaEACBlAvVu3UOLGZTzfS6pblxkWvJE2/D9MBI9+ISX0ifASuCfyX0MZx8ylu/XdJPrdP7SJYE4BfZD8HEPDF9WKaiMs7A6Y0xylAwR9rozU2B8HfsXq0jOWcJ3ADbSwijypYukCzaCXFXOVrjJdHq5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697564471; c=relaxed/simple; bh=pPMco1WMfGABVuKfLgtaLNhGNOaO57QV6rqCHJq7cFs=; h=DKIM-Signature:DKIM-Signature:MIME-Version:Message-Id:Date:From: To:Subject; b=ogXz5ijH57Jmgr8RiYKG7Jhs3F0Ar1PO4x5ZPQCoffAc/jdT+zPR/wGUb78t1FCeShJhV6tq0JNZERgtdfOWef2VsnaEmxZhLTvE8pspu6FYuSHIDc3UL6H24jHzDhkhUSzhAJFskUPpHL0O3o6fZGknW2Yvii2Dn/QMNuFv/J8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4E4465C0312; Tue, 17 Oct 2023 13:41:08 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Tue, 17 Oct 2023 13:41:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1697564468; x=1697650868; bh=EI u8Bl1WBdCARbR/ok+f+Al6++Z7Te9NWdQfBPFAiBs=; b=IVr4GRcMw5AjDHVuF9 iDpcw0H+SR2V9fNFmacFSaFF24rjHDW+4SQcmyg3Smx5wC1o1WJTA59NtoifPgdp Ky7Z/JvuzVFCPMvOklKuhRk930eDj5VJ4xaj441d1+BwCKoNgb6b0MQzu7BGIBMi OpZhMwb//JlN6C60WE0NL76v9HbMEeD7CM65R2IlKZN96qaUzS/lYHhfuTkPOwt6 zar3vDKPdHIoZd6Lcg9UY3uN4q+bU7c5jT5tRL9Yb2Zu4LcztpPaFHjMBhU5Qs0Y FQpZmPd7HB7xvZ4+XnShNYZlW6ES1T49UXl3MV6YQg/3sUXAIOswkLUXv4/s+FK1 xEGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1697564468; x=1697650868; bh=EIu8Bl1WBdCAR bR/ok+f+Al6++Z7Te9NWdQfBPFAiBs=; b=cO9uNBYyXIA5I29HR6wfHZE0qEFcc ypqufidUgDgXfnqvXUb0Q2NSWDeOvA4kS3dxK8coJ+yi0SuDa3w+pJf35+1P7Nrr R8UW0YscPV5WNRec5lIhUYEznIyPl9S4ApPlRxTOYJXl0t/9UfoKo0pzYIFeiCyL RanD03afkeb4W1FTgOvvw7LtXQXCGCHEn58Qjldtawmek/tx7JrLSloAXKrpL4pj TFYgUwjNaHdCtzzqpRMfel/kWJMyLrsNRpVy+GjN99qnh+yFUTTcj9229ZI1Ud2G up63d21TPrtEvIwO64vSujoOIhABK8xtJFZeieIro5VsHcaKVa59kvkZg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjedvgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfkggr tghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqnecugg ftrfgrthhtvghrnheptdevtddvvedtfefgieffkeegkeeikeffleetudfgtdffveeiieek kefhteeutddtnecuffhomhgrihhnpehprhgvlhhorggurdhithenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiirggtkhesohiflhhfohhlihho rdhorhhg X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0E772272007C; Tue, 17 Oct 2023 13:41:07 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 MIME-Version: 1.0 Message-Id: <9b118ff8-db2f-407d-858b-b526b6805467@app.fastmail.com> In-Reply-To: References: Date: Tue, 17 Oct 2023 13:40:47 -0400 From: "Zack Weinberg" To: "Adhemerval Zanella" , "DJ Delorie" Cc: "GNU libc development" Subject: Re: RFC: system-wide default tunables Content-Type: text/plain X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Oct 17, 2023, at 10:10 AM, Adhemerval Zanella Netto wrote: > On 06/10/23 17:25, DJ Delorie wrote: >> Adhemerval Zanella Netto writes: >>> The hwcap-related are still used for library selection, the original >>> intention of the ld.so.cache. What I am afraid is ld.so.cache start to >>> being an umbrella for different and unrelated settings. >> >> The alternative is to add an /etc/tunables.cache which would correspond >> to /etc/tunables.conf and/or /etc/tunables.conf.d/* >> >> On most systems (no files) that would add one unsuccessful stat() call. > > We can use 'access' to check for file existent first and then read the whole > file, as we do for /etc/ld.so.preload. It should slight faster than stat. Even better to open() unconditionally and ignore ENOENT failures. zw