Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp22930pxa; Tue, 18 Aug 2020 14:32:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVw1wb6rpzKezr0w4Z545n/wULmRBAVR0pAW2eFCJddHGn9PJqFoqUEtRdoF0+VNXxchvU X-Received: by 2002:a17:906:98c1:: with SMTP id zd1mr23072269ejb.410.1597786326782; Tue, 18 Aug 2020 14:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597786326; cv=none; d=google.com; s=arc-20160816; b=VaK7lAe40kC/3oWySzTvkD6at+3eXN8smFyrCLW6CIDLnB3cUExXsQDXIkn70dykdS Citnst9pnNkhlBLutYWxP5vIPPtJAQHZmHvna8rxj1w9z6MJ30x4KmW1kXD/F9ZC29Jm 0BxmbWI1V2WrI3ntMbTQZg5gOjCipIVo7aiBCyvSqXGLFvud3DyHrSHrV/hsmMEb4+H0 dGBntafHveC7dEDP/HnhLFwMjQ4Y9QpGxIIhUytDUCPaG1fRux4AJinsZUVYVh4XfdB0 EMJjlk34xEbLzbBySn6apEzMWkcICjvkPFJrSGzz1mLJAT2wkuuVZ24UcGaHNqcEyyIW BYmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=mKHXsFqVlwCFuFgEERisU5qAc11ZiZV1c9wyC6uH4hA=; b=Pu/6X8LN7Qd9ATzAdO7WvsosKSyWmjiRVbDOTx7NtcRx/OQF2MO5PqH9xOZgUd1nzr qLklw/a8DxfP3MQt1XNLzxbPH1zYOwEm0ZE3uBpMZ4D63fkI+wj//tYTv4/uQCe/R0KS vdM1REH8peTrpqTgUICd8fFk1ExADB/iDAUTc8P4aK+z4lAZtrxxN9A6GZMRonTJ9pk5 BjD3rZRBMb/qYxR1A40KxG/ZZXav5yl7YJwx/RZRqnM7xLrb3JLEH6orxqtq69YEqVgV rPEQhvn2aTR2UbggInV4rsL8T/PNn9SXrUQhDmpsxaHEXNdmC6oOBLrio5O/BcX41xdG +kkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=PCercC5Z; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si13706361edx.530.2020.08.18.14.31.31; Tue, 18 Aug 2020 14:32:06 -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=@oracle.com header.s=corp-2020-01-29 header.b=PCercC5Z; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbgHRV0g (ORCPT + 99 others); Tue, 18 Aug 2020 17:26:36 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:42890 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgHRV0g (ORCPT ); Tue, 18 Aug 2020 17:26:36 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07ILIUZ2038367; Tue, 18 Aug 2020 21:26:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2020-01-29; bh=mKHXsFqVlwCFuFgEERisU5qAc11ZiZV1c9wyC6uH4hA=; b=PCercC5ZbW5Z5TmFS/gcSg8izDxT8CCq83Cm4E0SjsqcvH0pNGWouvzPDe4d8IvCFS6W /Ce4Z1N2H4aMfTDbewbGC/epcMfWboM9nhLq6yO3jwljV4jMPA5BVCgpmfKJhiE/geHp NR3o9f9KPCTUD98xXNs50owJYSeE7gWDJJWPXdSzfwcGBHerCGiwNLjc//VIVNpMDaAD QLViFaUZ2xwO0yXWuPHKO6rN/ASzS6xLxfqGRK4Tkmn4X79CrR2Eh4W2KXCWFnRJAXn8 w253I/EbU8Wq0zlW/MuH8u/nSS+Kh/vI/aCsZMx5MwOFxoFGVLMGnQmTP7OBkZcKdNjj OQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 32x74r7drw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Aug 2020 21:26:29 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07ILOElP115539; Tue, 18 Aug 2020 21:26:29 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 32xs9neaq8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Aug 2020 21:26:29 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 07ILQRxS025418; Tue, 18 Aug 2020 21:26:28 GMT Received: from anon-dhcp-152.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Aug 2020 14:26:27 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: still seeing single client NFS4ERR_DELAY / CB_RECALL From: Chuck Lever In-Reply-To: <20200817222034.GA6390@fieldses.org> Date: Tue, 18 Aug 2020 17:26:26 -0400 Cc: Linux NFS Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <139C6BD7-4052-4510-B966-214ED3E69D61@oracle.com> <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> To: Bruce Fields X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9717 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008180152 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9717 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 mlxlogscore=999 priorityscore=1501 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008180151 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Aug 17, 2020, at 6:20 PM, Bruce Fields = wrote: >=20 > On Sun, Aug 16, 2020 at 04:46:00PM -0400, Chuck Lever wrote: >=20 >> In order of application: >>=20 >> 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. >>=20 >> fd4f83fd7dfb ("nfsd: convert nfs4_file->fi_fds array to use = nfsd_files") >> Does not build >>=20 >> 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 >>=20 >> Can you take a look and see if there's anything obvious? >=20 > Unfortunately nothing about the file cache code is very obvious to me. > I'm looking at it.... >=20 > 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. >=20 > 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. -- Chuck Lever