Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp325422ybl; Thu, 5 Dec 2019 21:11:25 -0800 (PST) X-Google-Smtp-Source: APXvYqydbW9z+0oL03fMQNRKEAMbw7Wd2xyFBPZw+jrFhssqY+wN1+pbtoyXZd+aVE9xtLZYyJ6M X-Received: by 2002:a54:4807:: with SMTP id j7mr11060636oij.179.1575609085168; Thu, 05 Dec 2019 21:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575609085; cv=none; d=google.com; s=arc-20160816; b=HxVinPt/wMKz2lKJA99vihGRqGip0ubhKgskGJRLnGziaJzkwrwiaftU/TpdCjfNmG K35RMzfcYUa5zPhMyM0bzuXSc5BUJZixDHaO8keJ6uxtYkOmBGVeD5TVsXQxpF8WkzRo v4UjSdNmgSNBi/4Iy+vnwoTMRCOma3S7wJ6Y0zSQp3BmuWmIpLuT9LyGsQ9gSRdyPHve Bt+f257rFofsYn9UTLoVkQpahKyJ4RCI1694n+4JdGjr9uihujQRZaIqAH1NpP24LhJM T8M8hj5N8xml1u3fLvYbG/mPe/8xCQO60WVA1wGmRQxF+/15D7eZipQYJxgiswGY/F8j a5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=x8/QTpvfCf7vhg7yqi137YnCZ8hmf2PQftPlhlJKb04=; b=gplj3xE4uT6Jq3CL5mV3pEMrV0OZBtELTjdG7Wx0/amUTdlKFg1IGq3LfUk0rbL1JI 3yAcU2BcgDTzEZpXeLqw03UccaZL7TEREaHdXTJytA9qfF2cy0VkUKEtimNFehUo2OnY MrYt64UuxyJmB2738at52tikdUtVKvmJe7944ZABiMjDafizz1HAOZeoVyFScWWK9ZJP MucpVWEBvyxvcJaFiuK++owHRaR5N6Vb6vPjlG347dlcVjVKrtALn7ZNIMFLu9qF9K8a f+uNzwAZZFzREL6y8mG2AXnUxUpy/gHSNPqp104rO+Ggmo+Cw4BYcN/GoV/1YBDIY4ER DVyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si6986712otp.289.2019.12.05.21.10.46; Thu, 05 Dec 2019 21:11:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbfLFFJc (ORCPT + 99 others); Fri, 6 Dec 2019 00:09:32 -0500 Received: from mail.phunq.net ([66.183.183.73]:50290 "EHLO phunq.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfLFFJc (ORCPT ); Fri, 6 Dec 2019 00:09:32 -0500 Received: from [172.16.1.14] by phunq.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.92.3) (envelope-from ) id 1id5rt-000825-1z; Thu, 05 Dec 2019 21:09:29 -0800 Subject: Re: [RFC] Thing 1: Shardmap for Ext4 To: Dave Chinner , "Theodore Y. Ts'o" Cc: Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, OGAWA Hirofumi References: <176a1773-f5ea-e686-ec7b-5f0a46c6f731@phunq.net> <20191127142508.GB5143@mit.edu> <20191128022817.GE22921@mit.edu> <3b5f28e5-2b88-47bb-1b32-5c2fed989f0b@phunq.net> <20191130175046.GA6655@mit.edu> <76ddbdba-55ba-3426-2e29-0fa17db9b6d8@phunq.net> <23F33101-065E-445A-AE5C-D05E35E2B78B@dilger.ca> <20191204234106.GC5641@mit.edu> <20191206011640.GQ2695@dread.disaster.area> From: Daniel Phillips Message-ID: <1dd1f9f6-89a4-e73a-d7b9-94a12412876c@phunq.net> Date: Thu, 5 Dec 2019 21:09:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191206011640.GQ2695@dread.disaster.area> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2019-12-05 5:16 p.m., Dave Chinner wrote: > On Wed, Dec 04, 2019 at 06:41:06PM -0500, Theodore Y. Ts'o wrote: >> On Wed, Dec 04, 2019 at 11:31:50AM -0700, Andreas Dilger wrote: >>> One important use case that we have for Lustre that is not yet in the >>> upstream ext4[*] is the ability to do parallel directory operations. >>> This means we can create, lookup, and/or unlink entries in the same >>> directory concurrently, to increase parallelism for large directories. >>> >>> [*] we've tried to submit the pdirops patch a couple of times, but the >>> main blocker is that the VFS has a single directory mutex and couldn't >>> use the added functionality without significant VFS changes. >>> Patch at https://git.whamcloud.com/?p=fs/lustre-release.git;f=ldiskfs/kernel_patches/patches/rhel8/ext4-pdirop.patch;hb=HEAD >>> >> >> The XFS folks recently added support for parallel directory operations >> into the VFS, for the benefit of XFS has this feature. > > The use of shared i_rwsem locking on the directory inode during > lookup/pathwalk allows for concurrent lookup/readdir operations on > a single directory. However, the parent dir i_rwsem is still held > exclusive for directory modifications like create, unlink, etc. > > IOWs, the VFS doesn't allow for concurrent directory modification > right now, and that's going to be the limiting factor no matter what > you do with internal filesystem locking. On a scale of 0 to 10, how hard do you think that would be to relax in VFS, given the restriction of no concurrent inter-directory moves?