Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1702098rdh; Tue, 26 Sep 2023 00:18:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWzmiDAOhWuUmkbeFLUp/B0QYF/3tsTGfwgpB8Ca2pkMF2hHt61aUyU+RYU2ctMnwi7olr X-Received: by 2002:a17:903:2312:b0:1c6:2acc:62f3 with SMTP id d18-20020a170903231200b001c62acc62f3mr2081438plh.9.1695712713703; Tue, 26 Sep 2023 00:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695712713; cv=none; d=google.com; s=arc-20160816; b=jsMtN8wp3EsHnn2faPtAOsYn+OwiGvvxnHf2IUnqnDRh2246G99+O7BHQDj2pVzFOv 5tNcyQH/zARJHyOR85t/veO/uYcVlJhkQXPOYcz+0NaLWNW51HgM5FR8EbmHfj9h4TdI F4kMxYXJDiNofH8oBAhew88NcvZraDiQ9nTQHjGZAf8pbuHal8Gk5P7WRpXYLfo3Pbj6 0UjDPfy0aTFeHZxSD0YkVlUYyjbHRBq4U/bmY2gJ2c4sX1CSdu0/cMBYLg7HH4MSS2lY 6lL4vc+ojCf+sQT/gW9gcCTCNrSvCnVGDm6RhrQHmVnruIQtx0mCRO9J5dx5ZtrPEyNQ wpkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=VFVeVZmTfs9bsTzTBLiILy5KA2+NCbWVhaZijAd/VUg=; fh=cr92EGwv8ObDoQQ3qXQD66zCBsuzuhaIlvjChjoMbFM=; b=n6L+aOWOJlI+JqSVNEtOOR8D6Ly2/FlNA2vewmzJ+55IRmQ0GKHOklRPLw2GuYckB1 LTTQgeyJuN1rfBcuWi/JNz+RGawzJLrqkGWt8tLjzy9wVjxahL4/F9mSZv+dd9B0tS9e jFAs8KG9KZHUddZPofBVccfzO/NNGFu3D1VnNlXhMbCZasvq/h5NWAoxKKfPwlTyrUhq nmEypsAN31TOYaCMcuwMZDr1Mxge+Yt6FiJNlXi3z5qxzED6I1nj5JCPaNWLHPWr4AM7 ScM0jvDO1rjZ2zsPp2kCdrkcHEvsh3hyfFFOId9tXREKTH0H2SB4TJJG0KGv5Nj8jAKU NXNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="RD/znBmf"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Ahh6tOsz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h6-20020a170902680600b001c4376ceadfsi11684488plk.615.2023.09.26.00.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 00:18:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="RD/znBmf"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Ahh6tOsz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AF6778038FB1; Tue, 26 Sep 2023 00:14:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbjIZHOo (ORCPT + 99 others); Tue, 26 Sep 2023 03:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjIZHOm (ORCPT ); Tue, 26 Sep 2023 03:14:42 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA37A10A; Tue, 26 Sep 2023 00:14:35 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 309D8320094D; Tue, 26 Sep 2023 03:14:34 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 26 Sep 2023 03:14:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; 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=fm1; t=1695712473; x=1695798873; bh=VF VeVZmTfs9bsTzTBLiILy5KA2+NCbWVhaZijAd/VUg=; b=RD/znBmfPhrGsAnVAY +irDC1f47jwc/OcjLoXLDdVUlj1zpwTv0GWS7Dpasxt0ve/H43ktE5AlC/mqEMKR ep1xWhoEEkI7ZY/OjixKQdAP+3ziGChjqiRAlm4Y+PfzFTLDsLcBVJ7i/fRn6Jb3 HMmFKjpCbGGxb18L0YIasG8OAIVmisiROiqoPRzDAQBpTbuzDbTGrhYdOqTqnkmR N6RZGRkOQdmMabpuuUZ3eYqMW78/NM6NWplH74ZkFcrhvmMcsLf6mGsLOok/aVo4 Aj3f+SVK1GyM/VBdy7NtsjSm8LNIcS61Hlam+uhlqr+ObXhHuTP9CDlKYVO/PN1r byKw== 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=fm2; t=1695712473; x=1695798873; bh=VFVeVZmTfs9bs TzTBLiILy5KA2+NCbWVhaZijAd/VUg=; b=Ahh6tOszfUEWLcNcTiHI95DQ4R64V qFSrCmckpTae9k4He4XOTDs3KBomVkkso3mw+ynZIFoMiSqGV/G4ckBtZA1MJ4mm 7gdY8wtbyMMrjIQafA+JBk15LR/NeELV4B3EspPY8plBzzY08TeD3bt9gJ8PYm92 v8iw6vN92eHlDqC/lyVIiSGsbfaNzwLBQXpcfSCRnfaeuXkxXsmTBRN1Seua6n3O 0yAm+1GcweN6o8OLGuFTXtymeLacVGJ4O/u0WVRlUMBK4s/bxPXrT7gQ9+HzEvCj ITlpEN2QCGDN9Ghljw4CeoFvJE3c1Z5sTDe+zHYWSAeHaW3hXvL/lx1Gg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelhedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7A2D7B60089; Tue, 26 Sep 2023 03:14:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-957-ga1ccdb4cff-fm-20230919.001-ga1ccdb4c MIME-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 26 Sep 2023 09:14:11 +0200 From: "Arnd Bergmann" To: "Zhangjin Wu" , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org Cc: "Palmer Dabbelt" , "Paul Walmsley" , paulburton@kernel.org, "Paul E. McKenney" , "Thomas Bogendoerfer" , "Willy Tarreau" , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Tim Bird" , "Geert Uytterhoeven" , "Nicolas Pitre" Subject: Re: [PATCH v1 0/7] DCE/DSE: Add Dead Syscalls Elimination support, part1 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 00:14:46 -0700 (PDT) On Tue, Sep 26, 2023, at 00:33, Zhangjin Wu wrote: > > This series aims to add DCE based DSE support, here is the first > revision of the RFC patchset [1], the whole series includes three parts, > here is the Part1. > > This Part1 adds basic DCE based DSE support. > > Part2 will further eliminate the unused syscalls forcely kept by the > exception tables. > > Part3 will add DSE test support with nolibc-test.c. I missed the RFC version, but I think this is a useful thing to have overall, though it will probably need to go through a couple of revisions and rewrites, mostly to ensure we are not adding complexity that gets in the way of other improvements I would like to see to the syscall entry handling. It would be nice to include some size numbers here for at least one practical use case. If you have a defconfig for a shipping product with a small kernel, what is the 'size -B' output you see comparing with and without DCE and, and with DCE+DSE? There is generally not much work going into micro-optimizing the size of the kernel image any more, for a number of reasons, but if you are able to show that this is a noticeable improvement, we should be able to find a way to do it. Geert is doing statistics about size bloat over time, and anything that undoes a couple of years worth of bloat would clearly be significant here. Another alternative would be to resume the work done by Nicolas Pitre, who added Kconfig symbols for controlling groups of system calls. Since we already have a number of those compile time options, adding more of them should generally be less controversial and more consistent, while bringing most of the same benefits. Arnd