Message ID | xnil29dwrc.fsf@greed.delorie.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A0F43858C3A for <patchwork@sourceware.org>; Wed, 28 Feb 2024 04:43:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 210763858C98 for <libc-alpha@sourceware.org>; Wed, 28 Feb 2024 04:43:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 210763858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 210763858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709095404; cv=none; b=fnlNWIcnVH4vPpwHjXpLtyJKZTGXnDADVPE4KSv+eBDzkL98ojHl5c6kpwN3hvzNG6SNVyMb5wjwIuG6Ihh2dDEJZqlGS+6hFgbyok3a05YSwukadMxfKkdZ9H/jSxYzzW3jFEIU09GWfwVa5WcEWIcJV1a1JrWqNywDf98RGlg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709095404; c=relaxed/simple; bh=ubEq3r0RntGZKv0QyKOwIe6uRGIs0VUQVSboQVaGHKs=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=XQn+puO7PziGhNuqV66ECl8ncYzv3bF/RMsHHrp0pLAIu0U1c7OMaUWkeeZXeXVBc6AsPIYUsIWaVTSRL/q4a8oCnXhF9Z6o2eDEmzp8WffCpQK2oyfFxscVtNJz24F7pNFkzotyimwHh/ANvTqHOk4YeGGJfgR7KMHFeDuleqg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709095402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type; bh=YfKwB/WILHosCoh2Q9lijwQ/ZKU60Qdq/4AP/LEMK4Q=; b=a492IkA8hIRGzL6KX9L397biwNB2AzkofXNIVjd9O9P/xuuWuzwrJL1jpeB8px3avXaF4f ab+e4NwJ0DPze6fFgm5y9VmNOsjy6y9ZUPpjXqxn1FqEMLUll6BrKjtkiF2HITJIyVjHG5 LU5jVYRyzQJR+HI9/XRZHOQZcmedlRw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-340-1Llp0thUM1KKyi0B0GEz-Q-1; Tue, 27 Feb 2024 23:43:21 -0500 X-MC-Unique: 1Llp0thUM1KKyi0B0GEz-Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 005B2185A789 for <libc-alpha@sourceware.org>; Wed, 28 Feb 2024 04:43:21 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.8.122]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DEC231807 for <libc-alpha@sourceware.org>; Wed, 28 Feb 2024 04:43:20 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 41S4hJLu2239550 for <libc-alpha@sourceware.org>; Tue, 27 Feb 2024 23:43:19 -0500 Date: Tue, 27 Feb 2024 23:43:19 -0500 Message-Id: <xnil29dwrc.fsf@greed.delorie.com> From: DJ Delorie <dj@redhat.com> To: libc-alpha@sourceware.org Subject: [PATCH v1 0/3] System-wide tunables X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |
Series | System-wide tunables | |
Message
DJ Delorie
Feb. 28, 2024, 4:43 a.m. UTC
This patch series is the initial implementation of system-wide tunables, which I mentioned a few months ago. The first part has ldconfig read tunable information from /etc/tunables.conf and store it to /etc/ld.so.cache. Reusing ldconfig means no new documentation or training would be required of sysadmins, or reprogramming of distro packaging. The second part optimizes the loading of /etc/ld.so.cache and allows for it to be loaded independently of searching for libraries. The third part applies the stored tunable information to the running application. DJ Delorie (3): Add system-wide tunables: ldconfig part Add system-wide tunables: cache ld.so.cache Add system-wide tunables: Apply tunables part elf/Makefile | 1 + elf/cache.c | 65 +++++- elf/dl-cache.c | 276 +++++++++++++++++-------- elf/dl-tunables.c | 85 ++++++++ elf/ldconfig.c | 21 +- elf/tunconf.c | 408 +++++++++++++++++++++++++++++++++++++ elf/tunconf.h | 43 ++++ sysdeps/generic/dl-cache.h | 6 + sysdeps/generic/ldconfig.h | 2 + 9 files changed, 818 insertions(+), 89 deletions(-) create mode 100644 elf/tunconf.c create mode 100644 elf/tunconf.h