From nobody Wed Oct 25 02:50:22 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SFYMJ2yrLz4xsxk for ; Wed, 25 Oct 2023 02:50:36 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SFYMG5HZMz4FM6 for ; Wed, 25 Oct 2023 02:50:34 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=SvTH9Fyy; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=rick.macklem@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-27d1fa1c787so3511036a91.3 for ; Tue, 24 Oct 2023 19:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698202232; x=1698807032; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yY6k1/Fl8nQCzZ9UonlvvQwygzhi+3w//XTQ38wUhq0=; b=SvTH9FyyIaNNcU9cWV+TcGUPEUI36QCPaX+kQvV1KUbZpj+LepD7/MDOpCKaKIjnpP RwrpHYZM22H1mw/m+OwDZOZFCyHteEfoGigLPKr0yTd3EqdbYmxTFF5t+lbDtSQ3dJWG ixok95k7npgI8ZmYAqS0z5fanLeaagd5jLrhKgZQOHGf3rQ1yUkM5jv/3jT4N9RUVrE8 k8WtKUZMRSRSNNzvEEcEV5Vi81qWvpJaYQg+hrtuuG6nv4/LR2xqQ2+BrTYBppOT/OsM 6xFu4sDFIwXKAXZtsgaNueTtd8uDSPtUDXzTSBZTOkdyOtcm/Uuos9PIb7HML8/TatLe Hcyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698202232; x=1698807032; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yY6k1/Fl8nQCzZ9UonlvvQwygzhi+3w//XTQ38wUhq0=; b=j464Db3bxSSE9LWgw+GOcGlv1KOdJYZKjCx9iOptZFARK+CrOc7HXyYT7x88T2OLHO LkMzmbQYZc/ywqQO9iuyAW+DO6x+1cRiBH4/5MzMRB+AANi1zXCHiKlhcwDFewHmrI+N 8tTdW3RT9+Ws5o7eVmW78iwY0hlzXbc3iyfjAZMsxlY0jSFkoCcxLIja8SyWEAX0+Tsi hIA+1mWoF10oo/bkVLdFlRHP/EYlNnFSum/uluVeQZCuR2tdIbxY8KYnZlr49FE4L0Ud TchvA6kjc0gwCu7IHtspJXa6sEfZ+XUG+KtUSOwMxmZ7pcLQOqByL0T1N62jQE5idYeR Xs8g== X-Gm-Message-State: AOJu0Ywlkg7k9Mmw7qQW4oL9FAr7ap6zSMCyqxNujoeIK/Lg4+QSas2n akaHxc1QBoE47Y/vTDV3PzojZEPlfgvL/s/p3eegSs5nJFmA X-Google-Smtp-Source: AGHT+IFK1AxRu6T9S7pA9emgnJcsD1Fjx+KW/PQ+lVco0KmaPMhnf3HFKDXNMfQmrDWrjO5LFoc2QreSuIfnM2JKElY= X-Received: by 2002:a17:90a:8a12:b0:27d:1af5:3b17 with SMTP id w18-20020a17090a8a1200b0027d1af53b17mr10910152pjn.26.1698202232179; Tue, 24 Oct 2023 19:50:32 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: Rick Macklem Date: Tue, 24 Oct 2023 19:50:22 -0700 Message-ID: Subject: RFC: NFS over TLS stats To: FreeBSD CURRENT , Garrett Wollman Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::102d:server fail]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102d:from]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-Rspamd-Queue-Id: 4SFYMG5HZMz4FM6 Garrett Wollman asked me via email how a server admin could tell what usage NFS over TLS was happening. I admitted that there was nothing. I have come up with a patch that generates the following: kern.rpctls.snd_tls_msgbytes: 21508 kern.rpctls.snd_msgbytes: 20828 kern.rpctls.snd_tls_msgcnt: 57 kern.rpctls.snd_msgcnt: 58 kern.rpctls.rcv_tls_msgbytes: 12336 kern.rpctls.rcv_msgbytes: 12072 kern.rpctls.rcv_tls_msgcnt: 57 kern.rpctls.rcv_msgcnt: 58 Basically counts of number of RPC messages and total number of bytes those messages result in. (Both with/without TLS.) Does this seem reasonable or are there better statistics that could be generated? Obviously any other suggestion might or might not be practical to implement. Thanks, rick