Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2926816rdh; Mon, 27 Nov 2023 02:28:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIPUgxYwjSSM5cSeHDXOdcL/3APwuBpOyp0gsnGG+K7k3XCNhx6X4tqzcXUteZQj2EWZa7 X-Received: by 2002:a05:6a20:9e49:b0:189:2e8f:d378 with SMTP id mt9-20020a056a209e4900b001892e8fd378mr11772982pzb.61.1701080887642; Mon, 27 Nov 2023 02:28:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701080887; cv=none; d=google.com; s=arc-20160816; b=WPhXRxkEldKuEfya+Sx+mJvSM/r0LHbgyALUlk1gSAmAtcd5jct1Y7LL/OYiOzWhQ3 qcmy8BBD0Unvq75VPTHLqYBuacLvAo5+OO7xLWr2oXqOc8/ln+0p9Ipa5YPONxHXtWK9 VWylrZjTVA49nqyIyC5MsE2KJq6wTtbq8t/uqNQ1Ol6CkyNZdEY/J2rMteAftuMPMpAL kHHHuQLKXSfjT4IvQMbUd17PKsebuidoI2nrFRrIaD27dksd7mLxjuItHuFyw6frzvvb aBqDX8WH9hgSTY5dBqDC76qN80tSfS9sI97oiBWpZsli5kQhgIvvnQwXclS6YuT1wMO3 Y8vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mqtFeeqGki//5Nb3R143+AqRimwbXXJttWageC3NiuU=; fh=l6la9Iqnl4YvxqilG3k/S8tOuC5o3l/iUsxaTzm8nms=; b=OYGEPACkM9GCXu7C+hSueprIFuHzv7xmvdKarARKhl6AFHcFRtl8igO1dHzGIT5dEr 7df4H63D5Krl4qEmmn+FiXYSU/jtpQkMspXiTRw6kItXV/Jcjx4TYKYimQC/wgm5KXWC +k+GJmhwuveLIBlPPsUmteUdZ+BCTt//6bywJctFgJXiQQK+1J025YD1oCNm/sBpBk1A TxlWA+9T6gYrxEgKC3DO1mAKeekM4IzckkCMWOzfkUGWyjOpUdjIFxXBC4z0LTjRSWRx 6BMabZeFJULvV3jp4TBXlPym1YOkoFE0zByXlb7z1dL3VLA2M//kOxyiUZdqGxEkwy0h PF0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFFL9zxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y27-20020aa78f3b000000b006b4c1a2085fsi8949548pfr.168.2023.11.27.02.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:28:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFFL9zxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0C8A68088A7D; Mon, 27 Nov 2023 02:28:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232922AbjK0K1p (ORCPT + 99 others); Mon, 27 Nov 2023 05:27:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232909AbjK0K1o (ORCPT ); Mon, 27 Nov 2023 05:27:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A31C2E1 for ; Mon, 27 Nov 2023 02:27:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F719C433C7; Mon, 27 Nov 2023 10:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701080870; bh=mqtFeeqGki//5Nb3R143+AqRimwbXXJttWageC3NiuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OFFL9zxnJAnhIv2QZsihLuUq6mKSrEU3HutEewWqBmC8wj4Ey9kZH08HHHrY0s6OK zJZxiyeDHaSXmt6RujDPBPT7LJnhuRH9OJliQMqLiUJp4RCXcxAYeyVDXQO0JCd49W 1/eL8pYNWxbPBunN/ikK7aPYUr/nI0d2EHTOaXGxw2yoz6PMFwt1FvDvVsUmkD09L5 u2TWtfr0bZ6oFm5a37f1YH5il4ot9Gs6cja1OS1Y66a9X9mqmQfbz9s3dTyGaD1cz1 MOYYUotox20liwe8wOlhOdEtPTGsk7EHvqPuaSiHrypK3q+f/CrUaOAa1Ia9Vk/I6a nuBmvgv0yHIYQ== Date: Mon, 27 Nov 2023 11:27:43 +0100 From: Christian Brauner To: Linus Torvalds Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Jann Horn , linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, intel-gfx@lists.freedesktop.org, linux-fsdevel@vger.kernel.org, gfs2@lists.linux.dev, bpf@vger.kernel.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com Subject: Re: [linus:master] [file] 0ede61d858: will-it-scale.per_thread_ops -2.9% regression Message-ID: <20231127-kirschen-dissens-b511900fa85a@brauner> References: <202311201406.2022ca3f-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 02:28:05 -0800 (PST) > So that nobody else would waste any time on this, attached is a new > attempt. This time actually tested *after* the changes. So I've picked up your patch (vfs.misc). It's clever alright so thanks for the comments in there otherwise I would've stared at this for far too long. It's a little unpleasant because of the cast-orama going on before we check the file pointer but I don't see that it's in any way wrong. And given how focussed people are with __fget_* performance I think it might even be the right thing to do. But the cleverness means we have the same logic slightly differently twice. Not too bad ofc but not too nice either especially because that rcu lookup is pretty complicated already. A few days ago I did just write a long explanatory off-list email to someone who had questions about this and who is fairly experienced so we're not making it easy on people. But performance or simplicity; one can't necessarily always have both.