Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2023 11:06:48 +0000
From:      Alastair Hogge <agh@riseup.net>
To:        Rick Macklem <rick.macklem@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, Garrett Wollman <wollman@bimajority.org>
Subject:   Re: RFC: NFS over TLS stats
Message-ID:  <cd0635702cd613c6385fca96b7dfbcce@riseup.net>
In-Reply-To: <CAM5tNy4=ioUd3gRqwEr5-ss7jek1N7DWc-b4_c4xWWEe-5uQyg@mail.gmail.com>
References:  <CAM5tNy4=ioUd3gRqwEr5-ss7jek1N7DWc-b4_c4xWWEe-5uQyg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2023-10-25 10:50, Rick Macklem wrote:
> 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.)

This is very cool.

> 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.

Is there a preference of snd, and rcv, over rx, and tx? snd is also used
by sound(4), tho not for statistics.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cd0635702cd613c6385fca96b7dfbcce>