Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5922616ioo; Wed, 1 Jun 2022 16:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwviubcS0SpPam0s9Q2BIDUDNVI7Ghm86dJg0FhG+7KiFKQ5pAedv0/fAdv67dFSdFpzAbn X-Received: by 2002:a17:902:db11:b0:163:53b3:493a with SMTP id m17-20020a170902db1100b0016353b3493amr1773707plx.96.1654124756605; Wed, 01 Jun 2022 16:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654124756; cv=none; d=google.com; s=arc-20160816; b=pJcJ6yOHppMLKcgq7cHJsZW70ROjKm1yBVevP/9zQoGlp7Txq/rP5R+GbWzNbHUQX0 y0FGi6Ir/WEy33187vRCIIOSNoR5mQxkQPnzD0Cio5hSTGJ8FF7quiSlWvQL9xF3tot2 vgIcIv2GAEtaxL5SS4hKte28jELUk+NrvAQB072lJn+KZamPv/q5LT6D7k8eg9mXI67y W6Cx8sPl8kjYWzrImRkQs1GvtfeKcxdFtzSL6HqaveP4vBKSWp6VVaO/Gf4WyoBhYwoi AK2amPgr4JoOcY9jKqp7QkQ6sz6j7r/Emn6xsIvYAjimu3od+VhikC7x7xXqMqRt2qND VqvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=FTNH/dsInWr8ygYNbfSpLcJ4QS6cXg3VlAUwqJWbcRw=; b=w8cLDIlHss2ik9ppWU/49zQBVc5Agf0uNvHbL59qJxlwu6blhLLgsSLggah2BkPFjr kxcCFttto+kvzU7DFQ9wNwTw468kR/512fLEYMmwV/KnnL2WCWU6qtF+VFoUMXIoaCUy Trps+Pgc3YRnKpZUQdDXjjT5frOg7dva/6XN/nm4casN4DCBA5xmfHy7IO3orHFchEsh dLuRSaJoxBRBZp3Of/H7HRsipmPxTMZHlngQOzW0rp5GRwVW8O8ReeA3NI7Ja/CwxDd9 KrW9cFQZTO4NUCJ3LySv+0lRa9MnbVSRGlUxjhN8m2Uw2yTUPXLXrpmW3VClqdYB4+YK 0aUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=qPY99xAp; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q18-20020a639812000000b003c6270fced1si3418912pgd.265.2022.06.01.16.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 16:05:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=qPY99xAp; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D03C72985AC; Wed, 1 Jun 2022 16:05:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbiFAXFv (ORCPT + 99 others); Wed, 1 Jun 2022 19:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbiFAXFv (ORCPT ); Wed, 1 Jun 2022 19:05:51 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C74929979B for ; Wed, 1 Jun 2022 16:05:49 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id D0A3D26A1; Wed, 1 Jun 2022 19:05:48 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org D0A3D26A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1654124748; bh=FTNH/dsInWr8ygYNbfSpLcJ4QS6cXg3VlAUwqJWbcRw=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=qPY99xApi3PD+onSoHeKSl/1tNv8kcfkfz3EWEYn4LcmvgxHNUvFCh4GO7AEAgkHL 6zZP/ko7JCJA2LdoULuNzZRHg0T/8gNViYjoLahQJYHa9eGR53Ki4iiqDtJ36TPMqx lIbMd0JkwGNICGQ/kuUhAq6I10OGROfO631v0eeA= Date: Wed, 1 Jun 2022 19:05:48 -0400 To: Frank van der Linden Cc: Chuck Lever III , Wang Yugui , Linux NFS Mailing List , Matthew Wilcox , Liam Howlett Subject: Re: filecache LRU performance regression Message-ID: <20220601230548.GA29667@fieldses.org> References: <5C7024DA-A792-4091-BFDE-CEED59BC1B69@oracle.com> <20220527203721.GA10628@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> <20220601161003.GA20483@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> <4C14DB3A-A5C1-41A9-8293-DF4FC2459600@oracle.com> <20220601211827.GA11605@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220601211827.GA11605@dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jun 01, 2022 at 09:18:27PM +0000, Frank van der Linden wrote: > A related issue: there is currently no upper limit that I can see > on the number of active OPENs for a client. So essentially, a > client can run a server out of resources by doing a very large > number of OPENs. > > Should there be an upper limit, above which requests are either > denied, or old state is invalidated? Could be, if only to prevent abuse. It doesn't seem to be a problem people hit in practice, though. Delegations add a bit of a wrinkle, as they allow the client do do opens and locks locally without limit, and denying them during recovery from a delegation break is ugly. --b.