Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5273579pxb; Wed, 26 Jan 2022 08:22:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuBhidDcwMOLQFTYcIMrlgE9aJ/EdzO6ZgacUH1eXPY1RUmV2YaMtY1bS2L3Oci1nmFhDL X-Received: by 2002:a17:906:c0d6:: with SMTP id bn22mr21263525ejb.740.1643214164592; Wed, 26 Jan 2022 08:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643214164; cv=none; d=google.com; s=arc-20160816; b=e4/IlYL5WhmXDBb142Tg081/VTS5Ge7FaM3kqaE1/8Z+Ysri7B2Lb5Mlu8mSKytO4r ZULqJNDN+R1/BAXmoq76z727+Rvmy4vqRCcnDYpjXrcBtz8RC+DM+ZiSO1FkCal1QQli DiS72LByCNPfbDpWxClq7XZp9faJk0L9dGevyGuQvgcvtIuv/6I6hEVLqYYPhOBwOhVa 25YcPEe0WzSqa9ef7/iI7SaUp42vxkYH1VJbc+SXWI/cTujfMqX1/ukrZr+KglQ8ILk/ 87hXlJs/rWfi0ptgfiKr9BUII1WhLyC3LrWZrmvM1OfGKL+pcMJTod/r8jxm8v/lrHao p07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=yQxykpIcn5lXlPsOCORKn9GHNSVKsEdV/Eh4gIJFXhM=; b=qnwCqDSasrAJsvLbD3vLoKXhssQHSuLDgyAz+bKvS1dV3xiZ3/EL1E5Z8MN/6ghH04 3GgukKLGDkZavZFOuljCouo5o5FNpwVXz7f/kTMXlm6t/FSfCqQnab9lgxBLY/g/6iPH teuIyASlnSZpgQ0N891lyl4JTXJ76nfFn04LMy4am1JZ9D0GoCcZsNlxACOlmQjRgRxu esRIuyxjFxwntQT8qRqrUEG+E6uIiR26PjoLhBfy1WywrD9tu5j9+iXZI58dsvOd0zD5 5Tvuvql+WXg4T4EKRpfdtJhZDWvwZyUS5EzckQidfudsGjHPWLRyClhU2O/7AYiymVmw uX6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=eO0C1pkV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si2502243edd.246.2022.01.26.08.21.52; Wed, 26 Jan 2022 08:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=eO0C1pkV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236677AbiAZC5Y (ORCPT + 99 others); Tue, 25 Jan 2022 21:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbiAZC5X (ORCPT ); Tue, 25 Jan 2022 21:57:23 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F8B1C06161C for ; Tue, 25 Jan 2022 18:57:23 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 78FACAA2; Tue, 25 Jan 2022 21:57:22 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 78FACAA2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1643165842; bh=yQxykpIcn5lXlPsOCORKn9GHNSVKsEdV/Eh4gIJFXhM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eO0C1pkVUuE0dkE+jFHInMXf9T2792sRj843RNm/0yH1f/sqt1vrHEAD6wI3BtAnS gT4CqXnu3UemV8PzvGCDfdDoanPBAa9xg+jv7R9Uj7YqMC3PtLmk4Lh8WwNtJUdClm 6R2LlLBb2FqOUy4mU5w46L3VytYDfZ0GmhwtFX30= Date: Tue, 25 Jan 2022 21:57:22 -0500 From: "J. Bruce Fields" To: NeilBrown Cc: Patrick Goetz , Daire Byrne , linux-nfs Subject: Re: parallel file create rates (+high latency) Message-ID: <20220126025722.GD17638@fieldses.org> References: <20220124193759.GA4975@fieldses.org> <20220125212055.GB17638@fieldses.org> <164315533676.5493.13243313269022942124@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <164315533676.5493.13243313269022942124@noble.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jan 26, 2022 at 11:02:16AM +1100, NeilBrown wrote: > On Wed, 26 Jan 2022, J. Bruce Fields wrote: > > On Tue, Jan 25, 2022 at 03:15:42PM -0600, Patrick Goetz wrote: > > > So the directory is locked while the inode is created, or something > > > like this, which makes sense. > > > > It accomplishes a number of things, details in > > https://www.kernel.org/doc/html/latest/filesystems/directory-locking.html > > Just in case anyone is interested, I wrote this a while back: > > http://lists.lustre.org/pipermail/lustre-devel-lustre.org/2018-November/008177.html > > it includes a patch to allow parallel creates/deletes over NFS (and any > other filesystem which adds support). > I doubt it still applies, but it wouldn't be hard to make it work if > anyone was willing to make a strong case that we would benefit from > this. Neato. Removing the need to hold an exclusive lock on the directory across server round trips seems compelling to me.... I also wonder: why couldn't you fire off the RPC without any locks, then wait till you get a reply to take locks and update your local cache? OK, for one thing, calls and replies and server processing could all get reordered. We'd need to know what order the server processed operations in, so we could process replies in the same order. --b.