From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 502C3C433DF for ; Tue, 18 Aug 2020 21:49:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 103D52075E for ; Tue, 18 Aug 2020 21:49:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=fieldses.org header.i=@fieldses.org header.b="tgFxzDf9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbgHRVtw (ORCPT ); Tue, 18 Aug 2020 17:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbgHRVtv (ORCPT ); Tue, 18 Aug 2020 17:49:51 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0899C061389 for ; Tue, 18 Aug 2020 14:49:51 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 00267ABC; Tue, 18 Aug 2020 17:49:50 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 00267ABC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1597787391; bh=OB5LPVt3vi+RxFuPItReycY9sUW0Zx3WhIpYim4eJEY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tgFxzDf9DYI/bRbF9WZVFvuhc6nmXNyqJ6jBQTlblL0wWGSiXu2xgJPQx41q5H9Cm YDTiDAd9tcj7f19uhVIHR4d/8Hl0q90LoG1hKmiZd1d9JSeXAC7dHgTcl+JArJOg/F EGsy8hFOSMX9RAK2Ao4GHeQJWD6p0x46LWr9s9gg= Date: Tue, 18 Aug 2020 17:49:50 -0400 From: Bruce Fields To: Chuck Lever Cc: Linux NFS Mailing List Subject: Re: still seeing single client NFS4ERR_DELAY / CB_RECALL Message-ID: <20200818214950.GA8811@fieldses.org> References: <20200809202739.GA29574@fieldses.org> <20200809212531.GB29574@fieldses.org> <227E18E8-5A45-47E3-981C-549042AFB391@oracle.com> <20200810190729.GB13266@fieldses.org> <00CAA5B7-418E-4AB5-AE08-FE2F87B06795@oracle.com> <20200810201001.GC13266@fieldses.org> <20200817222034.GA6390@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Aug 18, 2020 at 05:26:26PM -0400, Chuck Lever wrote: > > > On Aug 17, 2020, at 6:20 PM, Bruce Fields wrote: > > > > On Sun, Aug 16, 2020 at 04:46:00PM -0400, Chuck Lever wrote: > > > >> In order of application: > >> > >> 5920afa3c85f ("nfsd: hook nfsd_commit up to the nfsd_file cache") > >> 961.68user 5252.40system 20:12.30elapsed 512%CPU, 2541 DELAY errors > >> These results are similar to v5.3. > >> > >> fd4f83fd7dfb ("nfsd: convert nfs4_file->fi_fds array to use nfsd_files") > >> Does not build > >> > >> eb82dd393744 ("nfsd: convert fi_deleg_file and ls_file fields to nfsd_file") > >> 966.92user 5425.47system 33:52.79elapsed 314%CPU, 1330 DELAY errors > >> > >> Can you take a look and see if there's anything obvious? > > > > Unfortunately nothing about the file cache code is very obvious to me. > > I'm looking at it.... > > > > It adds some new nfserr_jukebox returns in nfsd_file_acquire. Those > > mostly look like kmalloc failures, the one I'm not sure about is the > > NFSD_FILE_HASHED check. > > > > Or maybe it's the lease break there. > > nfsd_file_acquire() always calls fh_verify() before it invokes nfsd_open(). > Replacing nfs4_get_vfs_file's nfsd_open() call with nfsd_file_acquire() adds > almost 10 million fh_verify() calls to my test run. > > On my server, fh_verify() is quite expensive. Most of the cost is in the > prepare_creds() call. Huh, interesting. So you no longer think there's a difference in NFS4ERR_DELAY returns before and after? --b.