Mailing List Archive

#1778: Varnishstat oddity
#1778: Varnishstat oddity
-------------------------+-------------------
Reporter: phk | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishstat | Version: trunk
Severity: normal | Keywords:
-------------------------+-------------------
On a machine with very low load, and only return(pass) processing:

{{{
MAIN.threads_created 200 0.00 .
0.00
MAIN.n_object 0 0.00 .
0.08
MAIN.n_objectcore 0 0.00 .
2868040561934
MAIN.n_backend 6 0.00 .
6.00
MAIN.s_sess 3906 0.99 .
0.12
}}}

There is *no* way that number can ever have been real, and I suspect we're
doing a divide by zero or something similarly troubling.

I have not seen it for any other counter.

Restarting varnishstat returns the number to 0.0

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1778>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1778: Varnishstat oddity [ In reply to ]
#1778: Varnishstat oddity
-------------------------+--------------------
Reporter: phk | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishstat | Version: trunk
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------

Comment (by aondio):

Can't reproduce.
Phk, do you, by any chance, remember if the numbers in the two non-
reported columns(AVG_100 an AVG_1000) were real?

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1778#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1778: Varnishstat oddity [ In reply to ]
#1778: Varnishstat oddity
-------------------------+-----------------------------------------------
Reporter: phk | Owner: Martin Blix Grydeland <martin@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishstat | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
-------------------------+-----------------------------------------------
Changes (by Martin Blix Grydeland <martin@…>):

* owner: => Martin Blix Grydeland <martin@…>
* status: new => closed
* resolution: => fixed


Comment:

In [399aab778dec87bae5212e1ef65c9f48bf692c23]:
{{{
#!CommitTicketReference repository=""
revision="399aab778dec87bae5212e1ef65c9f48bf692c23"
Cast to integer to prevent negative values messing the statistics

Negative values can occur intermittently due to per worker caching of
changes to counters.

Fixes: #1778
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1778#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs