Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4973664rwd; Tue, 23 May 2023 15:58:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4S+HvbE8U4/4v5jkf3u7retsooZnMEMfV+6SmdWO2ldOlT/fYGCS0+4wn3oq6HKG/2Zu6K X-Received: by 2002:a17:90b:124e:b0:24d:ebf8:b228 with SMTP id gx14-20020a17090b124e00b0024debf8b228mr15124061pjb.19.1684882690520; Tue, 23 May 2023 15:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684882690; cv=none; d=google.com; s=arc-20160816; b=YOr6BhYCSOaBjahunmb+4MNaFRjw9I4EJA0qs3hYW9HS8SM9UAzrt6qap6Am+ldCUl SDD69juDDLl5dYSXHatrfnzibKn1rNc5V/9dfbij2ehwGIifbBwwzCW7RkjhP4QidOcm 1k3a0dznJC0adL7yLZA5fYsf+V//kW7lUk/xvDeBiqJiitfyREbMe0PJQRhnUSllyf+K 1CGw4LEwr/nCnpu6Y6OjVvBpfzWUA5wnMP1TVEJABiciL4L0+TdZuMkbVfxxGaBlIOL0 SMy6yGn/Ka5SQmIayqC/iQlAogdnW7EfWGL8eHnI8mdH92I59RtPFUixCHwSNUCqgAHg Xv0g== 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=D4PhmKVouafwl2lkI37bc+Y4HJ74bZ8XIgMqc4mDI8U=; b=vX6ORt3jmvCuQt9JvqwtovyPkxxyVvGwagEkWodwbhoChM2Fqkxe6L9IHkC4I+8GEp wMVaQdcHW5NgN0Y2b1HMj4N3/sPnVm7ckWPQnDWPBONgCwZL3AVvkB8ytyW7n4jeeYfC SymFw/TdtZavWlTY5RXNtBQ5XEVD6ZRGWdLHNZMl8cFRwR712Ecp9nO1U5Vy1sd0ZCv0 1JTxxjhyev27jBt5t1730QjFbAGU52jntuFH1yS8KZQExVa2HZ2OB82JmitQ3t+vrfE9 IJ27UCWuvTMFYmBn8Lpjr/kQ/NKseMlV/V2g7f3Bc/KkXTirDUsc9rktLbNlNwyg5Czp GLXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=ydqarSiJ; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a17090a018700b00247ad6e4188si159388pjc.51.2023.05.23.15.57.58; Tue, 23 May 2023 15:58:10 -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=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=ydqarSiJ; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238562AbjEWWxa (ORCPT + 99 others); Tue, 23 May 2023 18:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjEWWx2 (ORCPT ); Tue, 23 May 2023 18:53:28 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D2EDA for ; Tue, 23 May 2023 15:53:27 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ae6dce19f7so1718095ad.3 for ; Tue, 23 May 2023 15:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20221208.gappssmtp.com; s=20221208; t=1684882407; x=1687474407; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D4PhmKVouafwl2lkI37bc+Y4HJ74bZ8XIgMqc4mDI8U=; b=ydqarSiJJg8/qlfiybY04O3RO4ik8W1MGJy8LAFW2WWKhnJjVg/kliO9Csr6ezjTxQ CCr+qRpaopVTGsAn0f3l5dbMCo+p2W+aPNeaBhEtfP5bJ9Mjgnc5fTAqVn4RIB2q1YN9 T4tabZcuFaOoU/7IsAEwcXQPtLoiHvECcuXyTIfNzB2W2sq5mFSLbAYLnz/KQMv1ljoG wZuSL7Bbl0DjHi49APaxTV/JWMjZM3CCRFDqQhqEu4zJlEZBtHCtHARwqCzUqKDFWYgN xW1Z5cvUGTnV+ZYWY/MRBI4erUVV8hNCo5i56rdI6V8+qX0d2IZFSvvBWq9u+nWEMdhO Wyig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684882407; x=1687474407; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D4PhmKVouafwl2lkI37bc+Y4HJ74bZ8XIgMqc4mDI8U=; b=XewcIuEV0UYX0yebQ50tsiuNzXs+ZmbkDlqoHT0u8XoJSFgVXSfCLaO3zyt2mhfRDS mQpCFHieVc1p4SH+OhWRzy68ULrqA2IhUEuKQEZN1N8YoQZrsTJ0+/4i5QTE4gCFpgfc oJ2FPPJrPu+lNlhJLhDJbKNdlRxpto9kZs38qN+YIQTQOQw5EziV2g61m2nmx5WoZsTR YGBm41samqYM9mshBc7jpJbFbSdC4LaiXuONeFIAqNAz/Gk/PWmNNoKx6+vY4BLPNlA0 0x6Zms7j4KjyuAspk9EXOW2J6YpFMQD9yriNZK5Knviml0Xuix+A/2sr/8OtKacMjt0M nFog== X-Gm-Message-State: AC+VfDy8bwbXxZfLNWnfw0nS0ipw2ld5Q+iovE5mo9jH2HezJywxXcAl gkex5V8T9gUBI1/BsGzbcucDuQ== X-Received: by 2002:a17:902:d50e:b0:1ae:6720:8e01 with SMTP id b14-20020a170902d50e00b001ae67208e01mr17699251plg.20.1684882407345; Tue, 23 May 2023 15:53:27 -0700 (PDT) Received: from dread.disaster.area (pa49-179-0-188.pa.nsw.optusnet.com.au. [49.179.0.188]) by smtp.gmail.com with ESMTPSA id u3-20020a170902e80300b001a682a195basm7284710plg.28.2023.05.23.15.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 15:53:26 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1q1asc-0036XB-37; Wed, 24 May 2023 08:53:22 +1000 Date: Wed, 24 May 2023 08:53:22 +1000 From: Dave Chinner To: Christian Brauner Cc: Dave Chinner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Kent Overstreet , Alexander Viro Subject: Re: (subset) [PATCH 20/32] vfs: factor out inode hash head calculation Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-21-kent.overstreet@linux.dev> <20230523-plakat-kleeblatt-007077ebabb6@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523-plakat-kleeblatt-007077ebabb6@brauner> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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, May 23, 2023 at 11:27:06AM +0200, Christian Brauner wrote: > On Tue, 09 May 2023 12:56:45 -0400, Kent Overstreet wrote: > > In preparation for changing the inode hash table implementation. > > > > > > This is interesting completely independent of bcachefs so we should give > it some testing. > > --- > > 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 > > [20/32] vfs: factor out inode hash head calculation > https://git.kernel.org/vfs/vfs/c/b54a4516146d Hi Christian - I suspect you should pull the latest version of these patches from: git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git vfs-scale The commit messages are more recent and complete, and I've been testing the branch in all my test kernels since 6.4-rc1 without issues. There's also the dlist-lock stuff for avoiding s_inode_list_lock contention in that branch. Once the global hash lock is removed, the s_inode_list_lock is the only global lock in the inode instantiation and reclaim paths. It nests inside the hash locks, so all the contention is currently taken on the hash locks - remove the global hash locks and we just contend on the next global cache line and the workload doesn't go any faster. i.e. to see the full benefit of the inode hash lock contention reduction, we also need the sb->s_inode_list_lock contention to be fixed.... Cheers, Dave. -- Dave Chinner david@fromorbit.com