[PATCH] Add "locks_latency" to "ctdb -Y statistics"

Martin Schwenke martin at meltin.net
Tue Jan 15 11:00:56 UTC 2019


On Tue, 15 Jan 2019 08:42:24 +0100, Volker Lendecke
<Volker.Lendecke at SerNet.DE> wrote:

> On Tue, Jan 15, 2019 at 10:04:53AM +1100, Martin Schwenke wrote:
> > On Mon, 14 Jan 2019 15:16:39 +0100, Volker Lendecke via samba-technical
> > <samba-technical at lists.samba.org> wrote:
> >   
> > > Review appreciated!  
> > 
> > Oh, wow!  That is (now) obviously missing...
> > 
> > The if-statement above the hunk in your patch prints headers, which
> > includes already *_lockwait_latency.  It is between *_call_latency and
> > *_childwrite_latency.
> > 
> > This means you need to print the s->locks.latency.* values between where
> > the s->call_latency.* and s->childwrite_latency.* are printed.  You've
> > printed them first.  :-)  
> 
> To be honest, I was completely confused about the precise meaning. So
> put it wherever it's required :-)

I think you want the attached patch to make the values consistent with
the header.  Please sanity check because I'm 1/2 asleep.  :-)

Attached patch already has:

Reviewed-by: Martin Schwenke <martin at meltin.net>

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-Print-locks-latency-in-machinereadable-stats.patch
Type: text/x-patch
Size: 1203 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20190115/5d37a761/0001-ctdb-Print-locks-latency-in-machinereadable-stats.bin>


More information about the samba-technical mailing list