Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2347238pxm; Sun, 27 Feb 2022 18:58:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXAmsgg3m+MNlXarn9Tfqq//f7Pq2HADXEgqAE3DclrtTSGyPWImG5hPVqZZ6epp+XgrGk X-Received: by 2002:a17:90a:fe4:b0:1bc:1db6:c77f with SMTP id 91-20020a17090a0fe400b001bc1db6c77fmr14451569pjz.184.1646017106088; Sun, 27 Feb 2022 18:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646017106; cv=none; d=google.com; s=arc-20160816; b=r7OvLnJl20ZJszWMp/VHibBJzc+pLlgYcwH/UEUTAh8A1fMPqw4JJStL2SFbp/fAbB OF6z2Jo0QjBEAasm6m6OJpFG0Kc9Vpn6ksvHdjzJQCJ/jqlbQGlK3MnMobH0gMJ4Oxh7 EiOVQd+sUKDmK6tRmL16l3pFMV63GFNQR5YQhfMfOCMQWjUJcCzy/yQAO7qplIPXaa6D 09C9iSx/9GribpxKG0HFl+wkzfyGsixlWASPjot98A3ip4YEzTHrpNjX0Q3MDTG50rle JG4/y464pQEKmdCfslA8OHvDEgczb7qF7rDFgQMiZJNpGNlcpxaYAPZf3HhQ8IHcyE/X QZxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=6BMX+ZTu71y6pW6n3w8F+LKPlpMD1xGyNzpWEriNEMU=; b=HpN5Zi7WgPvnAsYy9ckbUbnqerNF/UqeX9sU9MpTYFlYRVPKfsGwd1InFTx63MNxb2 9V9qBP+14G+i2yLItKOZtfP2jhNPLkpBRY0ir0aRlRZaOvW2j2UFeEYFJysP6pQjNU5L SkSF2avxnQ6wTjDJ1R9lcDjJsdRwE72Y8baeB1z7ECyq0WFsbdReH+m4ImCEl0WNGoWi Y/bZ385Iz9HJVbcDqP1fBabaoh0XhfbB7eAs+a+m8DskqseTMR7vi/09dKQ48kS7341Q OLwSVLFq9Rd4IHSvWYX5GYBzvLzL4uSAUxWV65s57fqxBfg1GPaajnR3D4o+lXOEQRiw mALA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1oVF7UvW; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902edca00b0014d2f713544si7756756plk.418.2022.02.27.18.58.04; Sun, 27 Feb 2022 18:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=1oVF7UvW; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbiB1A4r (ORCPT + 99 others); Sun, 27 Feb 2022 19:56:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbiB1A4q (ORCPT ); Sun, 27 Feb 2022 19:56:46 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A317F6E4CA; Sun, 27 Feb 2022 16:56:08 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 44DA8218CE; Mon, 28 Feb 2022 00:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646009767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6BMX+ZTu71y6pW6n3w8F+LKPlpMD1xGyNzpWEriNEMU=; b=1oVF7UvWyYQbKC/xLf9MsPR8L3YFujQtqWjDHI94j3Y6llbbBEk2LfEWhVw1RKXMvC0qBD AkIvIvUtlcpZCbTCf0+sxGGDUkQ+B9NLXEnYiMmkxnLDvm4StN1h694Ps83kJCvBCZAZj8 EqUfKBdZeCUe1bXwMeZou2fTb0WkjDQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646009767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6BMX+ZTu71y6pW6n3w8F+LKPlpMD1xGyNzpWEriNEMU=; b=ZqAexWszEd97yVO/gMY1fUsKeCbC0z3zIfR0iYIdzKVOYZJIVYUn/GzIx+edrJvq14rJuV x5NUKrQjCITcUmBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 852F2139BD; Mon, 28 Feb 2022 00:56:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LCeyD6QdHGLqPAAAMHmgww (envelope-from ); Mon, 28 Feb 2022 00:56:04 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Darrick J. Wong" Cc: "Andreas Dilger" , "Dave Chinner" , "Al Viro" , "Linux NFS Mailing List" , linux-fsdevel@vger.kernel.org, "LKML" , "Daire Byrne" , "Andreas Dilger" Subject: Re: [PATCH/RFC] VFS: support parallel updates in the one directory. In-reply-to: <20220224233848.GC8269@magnolia> References: <164568221518.25116.18139840533197037520@noble.neil.brown.name>, <893053D7-E5DD-43DB-941A-05C10FF5F396@dilger.ca>, <20220224233848.GC8269@magnolia> Date: Mon, 28 Feb 2022 11:55:47 +1100 Message-id: <164600974741.15631.8678502963654197325@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-nfs@vger.kernel.org On Fri, 25 Feb 2022, Darrick J. Wong wrote: > On Thu, Feb 24, 2022 at 09:31:28AM -0700, Andreas Dilger wrote: > > On Feb 23, 2022, at 22:57, NeilBrown wrote: > > >=20 > > > for i in {1..70}; do ( for j in {1000..8000}; do touch $j; rm -f $j ; d= one ) & done >=20 > I think you want something faster here, like ln to hardlink an existing > file into the directory. >=20 And probably written in C too.. =20 > (I am also not a fan of "PAR_UPDATE", since 'par' is already an English > word that doesn't mean 'parallel'.) :-) We already have DCACHE_PAR_LOOKUP for parallel lookups in a directory (though it is really a lock bit and I think should be named as soch). So it made sense to use DCACHE_PAR_UPDATE for parallel updates. And then S_PAR_UPDATE for the inode flag to enable this seemed logical. But I agree that these names are sub-par :-) NeilBrown