Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp699847pxb; Wed, 29 Sep 2021 07:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE/10AGjg8GEbfGJnbjBERittvnYozxVDI3Lvrqm+8t0ismcCV4ntjW8etXXOVw0cZvSjb X-Received: by 2002:a50:e089:: with SMTP id f9mr410669edl.290.1632927520107; Wed, 29 Sep 2021 07:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632927520; cv=none; d=google.com; s=arc-20160816; b=z46eRJfVjnRS026oTFKnZa11T4Rjt8Ov2vvUFAryqVHFNC2Crwt8Y5Imwd8TYJHmej pmgDg6HqYEyE1v8n+MpPtvgQmekpHuL5j3jHtbf/sIdxh4Gpb7/6AeiFqGJskyTJFcZM lnL2jfMb20OUpxvJGKplIyPCKhM8gXOQkdDmv2FOExeIctrxG/PCmwXgnXZRSVM3lzi1 X8142fFs/KRXmVxt0dbRApXKBD03Gl9DCXnzVaPDxfU0lFSso1tkP8pmNQ+NnjeEiO0q jIVwMw+DNbO4kpFnxQPK/32rsI7/C/P07O19zKrL6PPDXofGkfhWW/9iPT/3H3nheIHq 5dlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JWTa7QrPgfGKVGWtPtI90NbmGY06wVpTfT1EeOiXArk=; b=zbWCkFWe2+O8uKad2ypS8S33pk3y2xoQMiCFVrQuOuTyKNLHZ0dq/I4SoOHVgwO8r7 fVDMA9ntFEwMqD2R1SWGgDbsb/8kkJEzdx2x4AkDGNYE58E9K+2LSeqW+uUEhKBbqfmz +DMcFDjAdyqnROrxM6uYn1ppqLRlZCvUVfW98WSBTSXPS+A6AnwTZE7Oh53buRADlR2T P3nTUo7aT0Xd8yVxtixtZgjHf9SSyKEIgvG9lGcp1WHLnjDATOYS5phd0BOv+cW4HBjo Q4C1M1iXwl/eWgf7Pqs2Ksjm1exVpxX5doRVyHTdO8U4/ElDBa2DzG9Ohp5fYPm5SsMb wc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MkkKhJrZ; 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 w6si179202edc.219.2021.09.29.07.58.08; Wed, 29 Sep 2021 07:58:40 -0700 (PDT) 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=MkkKhJrZ; 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 S1344858AbhI2O62 (ORCPT + 99 others); Wed, 29 Sep 2021 10:58:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32652 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344752AbhI2O61 (ORCPT ); Wed, 29 Sep 2021 10:58:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632927405; 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=JWTa7QrPgfGKVGWtPtI90NbmGY06wVpTfT1EeOiXArk=; b=MkkKhJrZXxLLXP0ruzuXYwDMf0dfai6XclwZ5ylP+wxtbOt2G4sozDFnfZCW2bl1iWuqv+ cyBG7bTayflRKuiY43jF2mZ+FBHSI4MYQIEdeq+DRJaVM6VYV5fRr6C4esjRqlcRXcNtBX 0ImP1sayuEQHTGLsVmsZ5kkP/tl56Og= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-259-IYxMmSs6M1mIvC0h985jGQ-1; Wed, 29 Sep 2021 10:56:43 -0400 X-MC-Unique: IYxMmSs6M1mIvC0h985jGQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3389918125C2; Wed, 29 Sep 2021 14:56:42 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB666102488A; Wed, 29 Sep 2021 14:56:41 +0000 (UTC) From: "Benjamin Coddington" To: trondmy@kernel.org Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH 4/5] NFS: Further optimisations for 'ls -l' Date: Wed, 29 Sep 2021 10:56:40 -0400 Message-ID: In-Reply-To: <20210929134944.632844-4-trondmy@kernel.org> References: <20210929134944.632844-1-trondmy@kernel.org> <20210929134944.632844-2-trondmy@kernel.org> <20210929134944.632844-3-trondmy@kernel.org> <20210929134944.632844-4-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 29 Sep 2021, at 9:49, trondmy@kernel.org wrote: > From: Trond Myklebust > > If a user is doing 'ls -l', we have a heuristic in GETATTR that tells > the readdir code to try to use READDIRPLUS in order to refresh the inode > attributes. In certain cirumstances, we also try to invalidate the > remaining directory entries in order to ensure this refresh. > > If there are multiple readers of the directory, we probably should avoid > invalidating the page cache, since the heuristic breaks down in that > situation anyway. Hi Trond, I'm curious about the motivation for this work because we're often managing expectations about performance between various workloads. What does the workload look like that prompted you to make this optimization? I'm also interested because I have some work that improves readdir performance for multiple readers on large directories, but is rotting because things have been "good enough" for folks over here. Ben