Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3200424pxb; Mon, 9 Nov 2020 05:27:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOF47WQ4hkGMKWHIf0/fe/rbJM0zZmFvXz+8PN+Kpxc//vxj5vKJZdv7RqR+FiKoU+YVIk X-Received: by 2002:a17:906:c1d4:: with SMTP id bw20mr14767713ejb.91.1604928428238; Mon, 09 Nov 2020 05:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928428; cv=none; d=google.com; s=arc-20160816; b=tWn530lRLe1HfJ7q2Krnw3UJhgwt14iv+XpXSTRv8OvveqJzB1cIMft1OlI3t0VVvx ytsUqwLXa3U10IJwIIZpagGfOEtqZqU7rCMvn8UKlBgUTu/3H535CZulfS7Cq4vKxugA n0A2W1lt1AGPZnbgxFTXGvNXaKF1t5bDdjRmgrKBww2ktKhOQdw3x2In1OjJLzoUsipv qDVJCMZzRsPF1oarE6IAFy3j2cdi9Na7Kh+Lw3ScZ8u1md41buPB8EEZaTq0i01w2R6m B+p0V+dcny1cdCDXqBI8QVEC6Os5Xi13xW+QkL8VMbzGt4r0otUSblIdmr0f/Tk20RUD Gxgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zq8ORpf5b367SGyFYJJFJlR91r7aoSyG9EF+t6agL2w=; b=NCDEZfZE5yJsNashh0b93CJHH0Qw/F6h89on109eprvofLVv2mm0rT3DfON7O2iCI4 Ftk/15tPMWJ3QovAq/mre01XkapSdPNsco/rozedY728motgvr0uo/cXhT/W7Y4LEi+A q+l0Q4Wdlq5vgDwKo7d9EWjO8qz9sg1BFRr2AvCyUKtUeeTlwP64qAXs/hVvrPCy7O0G qoznVgVjfzIt/KK7OXCmAcVP0AOE676/PbzW8FoZCseZrzeDL9ViS8ab23Sz/V3mYxKx hFXMmSycqbWMtQYF0Ww48riCHKbzIMkPlXEhmKwAgCs9JJl1MOZaTeulAKzrjm7D2vQ/ C3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AnCgMwNY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v16si7023455ejf.28.2020.11.09.05.26.32; Mon, 09 Nov 2020 05:27:08 -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=@redhat.com header.s=mimecast20190719 header.b=AnCgMwNY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731186AbgKIN03 (ORCPT + 99 others); Mon, 9 Nov 2020 08:26:29 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:21839 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387470AbgKINQX (ORCPT ); Mon, 9 Nov 2020 08:16:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604927782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zq8ORpf5b367SGyFYJJFJlR91r7aoSyG9EF+t6agL2w=; b=AnCgMwNYxE42YvFFIIDk5nQnf/DYynYfO5EqJ4BbIiRQomiKkPwKa2ziR/234QIPtttP9k Gp2zT6lSBOiuj2yP/J+OYqA0gEE0wHBVvKay1+rkAQUH+7KMp42Cp5VPmFrEbYEDOU18Ju iDk+0MCqwad4nQJQKfE1C2PJqldXLB0= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-O68-2ZN7Mjq1-U310Y0OvA-1; Mon, 09 Nov 2020 08:16:17 -0500 X-MC-Unique: O68-2ZN7Mjq1-U310Y0OvA-1 Received: by mail-ed1-f69.google.com with SMTP id t4so2689185edv.7 for ; Mon, 09 Nov 2020 05:16:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zq8ORpf5b367SGyFYJJFJlR91r7aoSyG9EF+t6agL2w=; b=roGGT/RoXvjm56mfaqZr2n8nJrTLYQuAUNGMul+bVvG+9yEGxZzDMRiXAUd9yXGEnB +DeC0LVzcR5Ud3FtKsAVzZG0905FopbTGIG2UG56mlcj2ZsnhmtQjvVfcyTQlYh5AkZl dwsNmJq4X179PufEZDTL1jpGynvTAC2/sYgPWZgH5JRftuoXdiGSQcIerpNpPBDIrz+S NdHWc/prXpxeu+LQcEQP77Tz072KT4JiWAi/deIgTcgOBDpIJrzPOWoVd4Inu7VQ0gkI 66qLMjdsJ9hV+F8UaAc1oYhgm4u48W2fRfh/T2irzmZ4XlDZwmbp5PZWjxmexG8dugjS q2ZA== X-Gm-Message-State: AOAM533tLipW3xC/Q0qgbihaJp4pZpwHvQgGAsY5+TS0xTMC15z23voZ +muf/6yM+skoigkJQM5kqtwiECrXotZ73IoVAL9JDO8XrDFmExjMNpqnrS0BqAZVtIpYH9hc53A bvkbvc47bvsly2i1v1pcKHnhTyxBNxosKfRf4 X-Received: by 2002:a17:906:3547:: with SMTP id s7mr7052441eja.70.1604927775710; Mon, 09 Nov 2020 05:16:15 -0800 (PST) X-Received: by 2002:a17:906:3547:: with SMTP id s7mr7052430eja.70.1604927775511; Mon, 09 Nov 2020 05:16:15 -0800 (PST) MIME-Version: 1.0 References: <20201107140325.281678-1-trondmy@kernel.org> In-Reply-To: <20201107140325.281678-1-trondmy@kernel.org> From: David Wysochanski Date: Mon, 9 Nov 2020 08:15:39 -0500 Message-ID: Subject: Re: [PATCH v4 00/21] Readdir enhancements To: trondmy@kernel.org Cc: linux-nfs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sat, Nov 7, 2020 at 9:13 AM wrote: > > From: Trond Myklebust > > The following patch series performs a number of cleanups on the readdir > code. > It also adds support for 1MB readdir RPC calls on-the-wire, and modifies > the caching code to ensure that we cache the entire contents of that > 1MB call (instead of discarding the data that doesn't fit into a single > page). > For filesystems that use ordered readdir cookie schemes (e.g. XFS), it > optimises searching for cookies in the client's page cache by skipping > over pages that contain cookie values that are not in the range we are > searching for. > Finally, it improves scalability when dealing with very large > directories by turning off caching when those directories are changing, > so as to avoid the need for a linear search on the client of the entire > directory when looking for the first entry pointed to by the current > file descriptor offset. > > v2: Fix the handling of the NFSv3/v4 directory verifier. > v3: Optimise searching when the readdir cookies are seen to be ordered. > v4: Optimise performance for large directories that are changing. > Add in llseek dependency patches. > > Trond Myklebust (21): > NFS: Remove unnecessary inode locking in nfs_llseek_dir() > NFS: Remove unnecessary inode lock in nfs_fsync_dir() > NFS: Ensure contents of struct nfs_open_dir_context are consistent > NFS: Clean up readdir struct nfs_cache_array > NFS: Clean up nfs_readdir_page_filler() > NFS: Clean up directory array handling > NFS: Don't discard readdir results > NFS: Remove unnecessary kmap in nfs_readdir_xdr_to_array() > NFS: Replace kmap() with kmap_atomic() in nfs_readdir_search_array() > NFS: Simplify struct nfs_cache_array_entry > NFS: Support larger readdir buffers > NFS: More readdir cleanups > NFS: nfs_do_filldir() does not return a value > NFS: Reduce readdir stack usage > NFS: Cleanup to remove nfs_readdir_descriptor_t typedef > NFS: Allow the NFS generic code to pass in a verifier to readdir > NFS: Handle NFS4ERR_NOT_SAME and NFSERR_BADCOOKIE from readdir calls > NFS: Improve handling of directory verifiers > NFS: Optimisations for monotonically increasing readdir cookies > NFS: Reduce number of RPC calls when doing uncached readdir > NFS: Do uncached readdir when we're seeking a cookie in an empty page > cache > Thanks for these last couple patches to handle changing directories / uncached scenario better. I'm testing with this set now and should have results later today.