Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp954301ybi; Wed, 19 Jun 2019 10:43:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvT6DuVb4LP+Y+FMqnRTIJseDcvx1ANJWIvSEptIhcOfITWsYtyznDFyJUgikJda6Gv2Pj X-Received: by 2002:a62:3447:: with SMTP id b68mr69288114pfa.67.1560966191649; Wed, 19 Jun 2019 10:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560966191; cv=none; d=google.com; s=arc-20160816; b=w+OPrfqAYvzEOviIIIsvakdN+mq1RlfOW6Tv4/T6oh20m/l/Z2gPo5nNmsE60Hfzi2 qs7vQsIm/XM1vGUHmMVWRsrozQ3uZr9DvoPLjgeY9bMIyQK/lZP/h7NTxbzJP59EWErc +jyWFMga+zBdxZQ8sQqJuebenB58iUgn2Yeu5+ZzeNwWW9Vwk8TUm3omorvG8gCrDaDc VPtZ6S2gFN7SK6rQ/gkJTLIg5jpB9r4JqEPPXEc4anXs0ziwwaO2RqlqHcnort5xSGNe qZvrZzsqQzW4zbuL/DxL+r7ZpciY428/XeB4NoP2YpECMoZjohkAiDjfV0Ginib/VjOT 7m2w== 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=Czk1R7bOtZw0snYCv3C9Y+zhQskAmlaq9BcyWwXFZsI=; b=vDorEj8f+SItU2IYDUZ58W3JUDcxGcEcz+2Q0t85CfPTd6ihr3dxB7PIZt6uaV/m3x sjdmnoIRJyz5laQGo538XS2nYoN/DrtSYjlgpBOtVMtynBFN/hIFzgV2t609RprdxKHD carnFnKmPGRuaVPMdasb/H3Bc2vViJxDhbJWaeXI2UyAsniobRS0XLqwdfWFi4jiIh7k yGlDEZ34aHpCC0R8wWo+LDl5I6g0L9VGAcFKKwc0+fSkFY59/T7SYZR6PzSQTrDOvRbb UP9Y7c48/T2EMWQT0dYUch4pQSLVfdPlDU0hW9pDj49Gu/vkpf8Zd+9XO7B55MgO6P2F I7AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=0dU63Rov; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x24si3572806pgh.393.2019.06.19.10.42.45; Wed, 19 Jun 2019 10:43:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=0dU63Rov; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 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 S1730201AbfFSRmo (ORCPT + 99 others); Wed, 19 Jun 2019 13:42:44 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:33216 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727314AbfFSRmo (ORCPT ); Wed, 19 Jun 2019 13:42:44 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5JHdaXZ100808; Wed, 19 Jun 2019 17:42:20 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-2018-07-02; bh=Czk1R7bOtZw0snYCv3C9Y+zhQskAmlaq9BcyWwXFZsI=; b=0dU63RovTredVBh6jod7xPmyEgLnqW39LeF/592L/RufLmhbjApira1Z0gzZ50C6AN0/ fiNc0e6r5uq2/QfDvv1Ydi6ny91CqASw/jke7qMKocAcrfU0nX0n+UYViO30FNeuGtw/ oDRUhPVA7JYTKLbPXVmpKABoYf7Iv1QOrnvOVm96N3PIG73EuCKfpUZWReMuoUXJ7Jxc M4YWyt4MFF1AVsv3xecJASXswNfwwW2d9q3RnmYxc1XxLtcaw3k3Enx8QNjFGjCGzhF4 whz+4eRHwmr9B72xnVYSzvLSX5oBTffFcwms2mE9oVU2lB29hQBqrQGldnDxEJ7l7LA6 4w== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2t7809ctuh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2019 17:42:19 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5JHeY5h126625; Wed, 19 Jun 2019 17:42:19 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2t77ynywqk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jun 2019 17:42:19 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5JHgI77017368; Wed, 19 Jun 2019 17:42:18 GMT Received: from anon-dhcp-171.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 19 Jun 2019 10:42:17 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH 3/3] mountstats: Check for RPC iostats version >= 1.1 with error counts From: Chuck Lever In-Reply-To: Date: Wed, 19 Jun 2019 13:42:16 -0400 Cc: Steve Dickson , Linux NFS Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <7211D5DF-6923-459D-9B84-2BD264EB9F11@oracle.com> References: <20190612190229.31811-1-dwysocha@redhat.com> <20190613120314.1864-1-dwysocha@redhat.com> <20190613120314.1864-3-dwysocha@redhat.com> To: David Wysochanski X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9293 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906190143 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9293 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906190143 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Jun 19, 2019, at 1:22 PM, David Wysochanski = wrote: >=20 >=20 >=20 > On Wed, Jun 19, 2019 at 12:35 PM Chuck Lever = wrote: >=20 >=20 > > On Jun 13, 2019, at 8:03 AM, Dave Wysochanski = wrote: > >=20 > > Add explicit check for statsvers instead of array based check. >=20 > Hi Dave, >=20 > I don't understand why this change is necessary. The patch description > should explain. >=20 >=20 > Steve had already taken commit 73491ef for mountstats which was an = array based check. This just makes this patch consistent with the = others. Is that what you mean - you want a statement about consistency = and refer to the other commit? How about: >=20 > Commit 73491ef added per-op error counts for mountstats command but = used an array based check rather than checking statsver. Add explicit = check for statsver instead of array based check for consistency with = other tools. This is a better patch description (explains "why" not "what"), but I'm not clear why this change is necessary in either place. > > Signed-off-by: Dave Wysochanski > > --- > > tools/mountstats/mountstats.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/tools/mountstats/mountstats.py = b/tools/mountstats/mountstats.py > > index 5f13bf8e..2ebbf945 100755 > > --- a/tools/mountstats/mountstats.py > > +++ b/tools/mountstats/mountstats.py > > @@ -476,7 +476,7 @@ class DeviceData: > > if retrans !=3D 0: > > print('\t%d retrans (%d%%)' % (retrans, = ((retrans * 100) / count)), end=3D' ') > > print('\t%d major timeouts' % stats[3], end=3D'') > > - if len(stats) >=3D 10 and stats[9] !=3D 0: > > + if self.__rpc_data['statsvers'] >=3D 1.1 and = stats[9] !=3D 0: > > print('\t%d errors (%d%%)' % (stats[9], = ((stats[9] * 100) / count))) > > else: > > print('') > > --=20 > > 2.20.1 > >=20 >=20 > -- > Chuck Lever >=20 >=20 >=20 >=20 >=20 > --=20 > Dave Wysochanski > Principal Software Maintenance Engineer > T: 919-754-4024 =20 -- Chuck Lever