Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4982109pxb; Wed, 26 Jan 2022 02:04:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy54gMpuYKeKhM2BWswbY1Dg1dhhEgQaMEda+y+npxADiHshc9ctALgabrsQe5NH6yf4sVG X-Received: by 2002:a17:902:be0e:b0:149:512a:c2b3 with SMTP id r14-20020a170902be0e00b00149512ac2b3mr22793961pls.71.1643191475626; Wed, 26 Jan 2022 02:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643191475; cv=none; d=google.com; s=arc-20160816; b=d19Uv6SQAeuB4HVHjwYWtbdoPXfumWosdXWX0C8KQJKiuzGuNr4zGQ+dTN4q0Qb+c1 LaMPVS7CXWdc0Gkjh9g/CaNZJwXtz1X2yLw4PkRX2Ut7F2LEEMjilUs675wuo8quPj0F Oxq/xhxv4gw7VODOwOJ44nOG92gNpCSUv5rqYfOl6wY859YDTmTiERJykOg2GLoMRrYM ET8xfuKLXUyve1/9Cy2iPvq27S5hiDVKYNW8VOO6jaqjzAioWeUehRjqoGeFQmbe4ZtO iR63AZdAQTI04eCLkGLSKz2/WguGCNykqR11zqIes++3d9QBg1NpRqucqVtiuqzARTxj mZ0w== 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=1I9TpqAeBGz0C0Bmwk7PtPTTwdOHWUyjjOzcBx/pkcs=; b=q2OgvwBFmqd0wSYX0vWgivNg94ONNCFWxbknd/MWURJXHC8WMd/9rEwL4em7ooCS02 7Blc0fVToRMOC7qrM81Lx5Gv9WhjvCdCUFPgP5O09xyaknyqnWpF6YVZfSJ64fJ63jPC DAKMob2rFr1AfXuPLEDUYRJSUJklLLhcgsvmhDVbqM6wMHRwQZg/hP8BQrNHZ0EDyxch 5OIwHkFB2Rx6Id1rXaSZdPV7qOCicORDaSfv3t2YCz2G/iQ3KFZ6WJbVocT2FasvqYBW nneqXDK03XtMKahASBiBHCkorgTbg4l1wKNbMfGMcWGd5FDqwzCPqywBKmisZnT6BDaf u9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=cdxI2zqp; 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 mw17si2805364pjb.135.2022.01.26.02.04.22; Wed, 26 Jan 2022 02:04:35 -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=cdxI2zqp; 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 S233437AbiAYV7o (ORCPT + 99 others); Tue, 25 Jan 2022 16:59:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233434AbiAYV7n (ORCPT ); Tue, 25 Jan 2022 16:59:43 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF35C06173B for ; Tue, 25 Jan 2022 13:59:43 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 995EA7128; Tue, 25 Jan 2022 16:59:42 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 995EA7128 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1643147982; bh=1I9TpqAeBGz0C0Bmwk7PtPTTwdOHWUyjjOzcBx/pkcs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cdxI2zqp1hF8XD4P1kpLRd6Kvk1bXGWl4Xnq/h10uoy3q5fQEJyWe76uc17eOjTMl jlf+JQ2DLy8j9Bx1ZSbH9s4nYnWMlL8Taa2pShntX1BJLjJC9Je/mgvcAzwlDyPDW+ T6bDmSYw7MBSx83L+OiZaxRu+vQSFu+j7gx6Mr9U= Date: Tue, 25 Jan 2022 16:59:42 -0500 From: Bruce Fields To: Patrick Goetz Cc: Chuck Lever III , Daire Byrne , Linux NFS Mailing List Subject: Re: parallel file create rates (+high latency) Message-ID: <20220125215942.GC17638@fieldses.org> References: <20220124193759.GA4975@fieldses.org> <20220124205045.GB4975@fieldses.org> <20220125135959.GA15537@fieldses.org> <42867c2c-1ab3-9bb6-0e5a-57d13d667bc6@math.utexas.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42867c2c-1ab3-9bb6-0e5a-57d13d667bc6@math.utexas.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jan 25, 2022 at 03:50:05PM -0600, Patrick Goetz wrote: > On 1/25/22 09:30, Chuck Lever III wrote: > >>On Jan 25, 2022, at 8:59 AM, J. Bruce Fields wrote: > >>On Tue, Jan 25, 2022 at 12:52:46PM +0000, Daire Byrne wrote: > >>>Yea, it does seem like the server is the ultimate arbitrar and the > >>>fact that multiple clients can achieve much higher rates of > >>>parallelism does suggest that the VFS locking per client is somewhat > >>>redundant and limiting (in this super niche case). > >> > >>It doesn't seem *so* weird to have a server with fast storage a long > >>round-trip time away, in which case the client-side operation could take > >>several orders of magnitude longer than the server. > >> > >>Though even if the client locking wasn't a factor, you might still have > >>to do some work to take advantage of that. (E.g. if your workload is > >>just a single "untar"--it still waits for one create before doing the > >>next one). > > > >Note that this is also an issue for data center area filesystems, where > >back-end replication of metadata updates makes creates and deletes as > >slow as if they were being done on storage hundreds of miles away. > > > >The solution of choice appears to be to replace tar/rsync and such > >tools with versions that are smarter about parallelizing file creation > >and deletion. > > Are these tools available to mere mortals? If so, what are they > called. This is a problem I'm currently dealing with; trying to > back up hundreds of terabytes of image data. How many files, though? Writes of file data *should* be limited mainly just be your network and disk bandwidth. Creation of files is limited by network and disk latency, is more complicated, and is where multiple processes are more likely to help. --b.