Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1262002pxk; Fri, 25 Sep 2020 10:06:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaux5cepKqZyWikTbVWllP4BstqWEVqyekVtjxMrTfUmxLWcvhpYpkRDihGEJ0JaK3Uja5 X-Received: by 2002:a17:906:b1d7:: with SMTP id bv23mr3507219ejb.464.1601053580321; Fri, 25 Sep 2020 10:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601053580; cv=none; d=google.com; s=arc-20160816; b=ecrcxw+AJKEN1j5+JBS99VsmF13K7SpRzDva4HwYExNhxxGsMLF4OFWTyWeINHw6Cj 1I6Kr+aK74xKcYWFfiyvTdToWyr1HJnE8J9wjwxF0TtTztrGaDC+w8x+8lqppEadLF6s ewU7TkFJzWQGtqjEZa/itFoZgQktp1bJZHqcIoujyQUiwLUKrXhXhxIyXLIDeHf3pjLb GjeEaWEYs5Q90+0Lp41WXkf49Tu8mciTkn4/RZH//YeeZR7G8eJXSHloTjOcARKpXf91 lCJd2Qg/EC5Qb5JSevTRGIWJlc8B5BVrkVfks1G9uGNe1Df/x81l8CoDQdCLEHqWMs/Z 8A9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=VOYMSgF5AFNOKJrux52N9rmpg22qkzLXEY38VlpxfX4=; b=Azhvu4NdV1GDz2d6lEDBSbE7ZEeF/o7Ht5WplmL8U2qoY2eo8jxyBQ5DxIJi2HIvBM GLGa4X/mkqnpBqitfxE650f4lsr2PYe59Obj2dUo9zgQe/xVkEwyb3wBBEn52tg4WFno 16nW72hpYtP17omn54F3hcecyFBdeHz4iXnzQrGn1xEGY16FujPxgaPtQ0TCQA/sl7z9 nHOk4WAQwagMu8Gfe4uB03rfJDKlr2uovqigciA46Bgwba91EM/OlI12kutQkp/wsPGC rJZUU7cM7+Nlxqnsbm1EQ8iEXRX6o9fs8u64uLKWOC4Lx2gW6mdSwCV0nDlT7EYiI8bW hIjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=k6zDKDev; 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 f19si2233624ejx.348.2020.09.25.10.05.55; Fri, 25 Sep 2020 10:06:20 -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=k6zDKDev; 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 S1728353AbgIYRFE (ORCPT + 99 others); Fri, 25 Sep 2020 13:05:04 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:46028 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728038AbgIYRFE (ORCPT ); Fri, 25 Sep 2020 13:05:04 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08PH1Yb9183523; Fri, 25 Sep 2020 17:05:00 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=VOYMSgF5AFNOKJrux52N9rmpg22qkzLXEY38VlpxfX4=; b=k6zDKDevpKU4OFu4aDeB7AcS0otAg1EKzE4WR+t8CjxShU+CECd9oALZvBZzNE6qXgYU LVs5WUYxtcLfJ2Xi4b1PRA45GChXND2YkqtffDsgc3/D7zJeGe0nIOHs3J3wr20uusrs puFTUoWgqh4Gniq+4tdkNlKAe1k1lodcEWErfKZNqrdF4Pr3puG+Aa7VKro5rDTnztz8 bnztJv60cs1pA8IHrPbfMjNkk5Xs5QpoRIPG3/4huddZi0FwmScpcYsZNoT0MHde3rAO XJ6MsJJTRStCnI/vVhj3p5jAXtD1UpJNn+qZ8Whb75nJbKQWb7gZ7IGYVw4cfro6488b JA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33q5rgw523-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 25 Sep 2020 17:05:00 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08PGtXv4148320; Fri, 25 Sep 2020 17:04:59 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 33nux4ruk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Sep 2020 17:04:59 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08PH4ufe001335; Fri, 25 Sep 2020 17:04:58 GMT Received: from anon-dhcp-152.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Sep 2020 10:04:56 -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: [PATCH v2 00/27] NFSD operation monitoring tracepoints From: Chuck Lever In-Reply-To: Date: Fri, 25 Sep 2020 13:04:55 -0400 Cc: Bill Baker , Linux NFS Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <551339D6-2109-487D-8279-746BCA106893@oracle.com> References: <160071167664.1468.1365570508917640511.stgit@klimt.1015granger.net> <20200924213617.GA12407@fieldses.org> <945A7DE6-909D-4177-852F-F80EF7DFE6B3@oracle.com> <20200925143218.GD1096@fieldses.org> <23DF63F3-44AC-4DDE-AAB9-E178F4B68103@oracle.com> <20200925150038.GF1096@fieldses.org> To: Bruce Fields X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9755 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 mlxlogscore=762 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009250117 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9755 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=765 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009250117 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Sep 25, 2020, at 11:05 AM, Chuck Lever = wrote: >=20 >=20 >=20 >> On Sep 25, 2020, at 11:00 AM, Bruce Fields = wrote: >>=20 >> On Fri, Sep 25, 2020 at 10:36:42AM -0400, Chuck Lever wrote: >>>=20 >>>=20 >>>> On Sep 25, 2020, at 10:32 AM, Bruce Fields = wrote: >>>>=20 >>>> On Fri, Sep 25, 2020 at 09:59:51AM -0400, Chuck Lever wrote: >>>>> Thanks Bruce, for your time, attention, and comments! >>>>>=20 >>>>>> On Sep 24, 2020, at 5:36 PM, J. Bruce Fields = wrote: >>>>>>=20 >>>>>> On Mon, Sep 21, 2020 at 02:10:49PM -0400, Chuck Lever wrote: >>>>>>> As I've been working on various server bugs, I've been adding >>>>>>> tracepoints that record NFS operation arguments. Here's an = updated >>>>>>> snapshot of this work for your review and comment. >>>>>>>=20 >>>>>>> The idea here is to provide a degree of NFS traffic = observability >>>>>>> without needing network capture. Tracepoints are generally = lighter- >>>>>>> weight than full network capture, allowing effective = capture-time >>>>>>> data reduction: >>>>>>=20 >>>>>> I do wonder when tracepoints seem to duplicate information you = could get >>>>>> from network traces, so thanks for taking the time to explain = this. It >>>>>> makes sense to me. >>>>>>=20 >>>>>> The patches look fine. The only one I'm I'm on the fence about = is the >>>>>> last with the split up of the dispatch functions. I'll ask some >>>>>> questions there.... >>>>>=20 >>>>> To be clear to everyone, this series is still "preview". I expect >>>>> more churn in these patches, thus I don't consider the series = ready >>>>> to be merged by any stretch. >>>>=20 >>>> OK! >>>>=20 >>>> One thing I was wondering about: how would you limit tracing to a = single >>>> client, say if you wanted to see all DELEGRETURNs from a single = client? >>>> I guess you'd probably turn on a tracepoint in the receive code, = look >>>> for your client's IP address, then mask the task id to match later >>>> nfs-level tracepoints. Is there enough information in those = tracepoints >>>> (including network namespace) to uniquely identify a client? >>>=20 >>> Client IP address information is in the RPC layer trace data. The >>> DELEGRETURN trace record includes client ID. So maybe not as >>> straightforward as it could be. >>=20 >> I guess what I meant was "limit tracing to a single network = endpoint", >> not exactly limt to a single NFSv4 client.... So, we can do that as >> long as all the relevant information is in rpc-layer tracepoints, and = as >> long as task id is a reliable way to match up trace points. >>=20 >> Is the network namespace in there anywhere? It looks like there'd be = no >> way to distinguish clients in different namespaces if they had the = same >> address. >=20 > The client ID has the boot verifier for the net namespace. >=20 > None of this helps NFSv3, though. It probably wouldn't be difficult to stuff the client IP address and the boot verifier in the trace record for each procedure. Do you think that would be sufficient? -- Chuck Lever