Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4070306rwd; Tue, 23 May 2023 02:39:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5TFdi9CdFRIEVjIwL+QmoLHq9Om3zB16y2faduUeboYv+096+WbWpgqzNBA7hdO3ddrqnU X-Received: by 2002:a05:6a00:248a:b0:64e:6862:8553 with SMTP id c10-20020a056a00248a00b0064e68628553mr5946620pfv.32.1684834793956; Tue, 23 May 2023 02:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684834793; cv=none; d=google.com; s=arc-20160816; b=ZeRQnti8DrVkQ1y1ljX63I3u6UJjrNUXNPj7v9UxrX/TV2vZH9WZDZlBtcKNBHG+lK QH8k3yjstardYcJ8QooMtvliiSxHO91EDsFXcryeqXVV+Wx4mSPkodTVe0SxDuSY2fe9 gi69tvi8OJBZ5OtE+OkmTAtNAY9cXRzph/lNDUPPKxhQ9m7YA/bh9CVYFnh5aUZG1wLM RBfP/zWkEZFGLjCO3umhMO3leARpFfqrX1aMiv0FD6yrZjGyzy2Oj84KQqYpAf1C8zKc e5DA5dDIjJA33C6A6/gY0x3+A5Ot/fZ3z+9xINAb602YXFzI4CK15NNeoN4+Ff2ZWvu7 AVqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g05j00q2tU7gnk/FwJiSZjsdsKMskRH51hFZE/YXDmw=; b=e/kloFhOxbtZWWbuGYVY2E1/5bJFxJq34O1fYmAgC/VQLEvOwjSnq4ZK97hn7QVBzB 3u4EAhZIb9emUASDTkxtA+S4yL0VQ9juQeyp/lyVSSDuvQxbVznyGG0ICKYSdJTYyJPw BURnch3s0Iu84jhu4qfWdNAjFlwUwNTB7mDZbnJbhX6ZtJurlcBmk+vzgXjZLk5WicJM /ZTs7BfkQbBExgkymA/MWbZYNIIicy8cQC6nxUM+oqlQPtkU+MHQjo6ovC32LEHW8qRe lYrkVbqfVaRxABHlBjMUNZz9SaA8YqJSGwbZ57PuJvmf7Z3etTDiOiKuBabH/fVRthWE xWVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HM298nrM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a189-20020a624dc6000000b0064d5e97d4acsi4347706pfb.346.2023.05.23.02.39.39; Tue, 23 May 2023 02:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HM298nrM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235489AbjEWJ2s (ORCPT + 99 others); Tue, 23 May 2023 05:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbjEWJ2q (ORCPT ); Tue, 23 May 2023 05:28:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D864E6; Tue, 23 May 2023 02:28:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A195614B2; Tue, 23 May 2023 09:28:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABA2EC433D2; Tue, 23 May 2023 09:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684834124; bh=l6zlO3zrfqNyX7yFpEx6BRzK5yGcYjeoYtH9xlr+994=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HM298nrMQgJkZY147EZroy4PK7mr5PO1OKvTSfI9+RY+oAzcPrhBfxJGv+QtFPmed 48Lr8wvAVWllrJRyoY2o/ZZfRNzZma++cSt5/0sb+JoPMoODU5cXuAgxqcA9+xzQPM 6BndpH3IdRP5EWrIVVQr7fNn5YalW3kbs5xeLYY0C6BmP2AvrUPSZlrablsQPSfaUj 7bwdhbsDaSYMtzxjpOAeNbvemmcDYY/IG4MAG8eBMAb25UBVHzPQsStvWPxUj1cHYJ AdLNaaj9d3KFvldgtPGwAL3TJH3hTm9ocKGCxBLySPlWIifNbTU3OvSXjoV9P92dPb rfzr060cwMPoQ== From: Christian Brauner To: Dave Chinner Cc: Christian Brauner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Kent Overstreet , Alexander Viro Subject: Re: (subset) [PATCH 22/32] vfs: inode cache conversion to hash-bl Date: Tue, 23 May 2023 11:28:38 +0200 Message-Id: <20230523-zujubeln-heizsysteme-f756eefe663e@brauner> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230509165657.1735798-23-kent.overstreet@linux.dev> References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-23-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1340; i=brauner@kernel.org; h=from:subject:message-id; bh=l6zlO3zrfqNyX7yFpEx6BRzK5yGcYjeoYtH9xlr+994=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaTktNsoO3+5lbI+eNuhP803wtzbZnrxf9y8/bFq4ZNA78kT IqbadpSyMIhxMciKKbI4tJuEyy3nqdhslKkBM4eVCWQIAxenAEzE+CDDf79WZo+Q06qzlzYUXg+KPp VnzWx90LlJXYfJSXuprtKhhQz/M6ILLaZlzozr23v4144mneiNcbWfluy+Eui1+bddz4R2NgA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 09 May 2023 12:56:47 -0400, Kent Overstreet wrote: > Because scalability of the global inode_hash_lock really, really > sucks. > > 32-way concurrent create on a couple of different filesystems > before: > > - 52.13% 0.04% [kernel] [k] ext4_create > - 52.09% ext4_create > - 41.03% __ext4_new_inode > - 29.92% insert_inode_locked > - 25.35% _raw_spin_lock > - do_raw_spin_lock > - 24.97% __pv_queued_spin_lock_slowpath > > [...] This is interesting completely independent of bcachefs so we should give it some testing. I updated a few places that had outdated comments. --- Applied to the vfs.unstable.inode-hash branch of the vfs/vfs.git tree. Patches in the vfs.unstable.inode-hash branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.unstable.inode-hash [22/32] vfs: inode cache conversion to hash-bl https://git.kernel.org/vfs/vfs/c/e3e92d47e6b1