Huge number for N struct vbe_conn

Poul-Henning Kamp phk at phk.freebsd.dk
Wed May 20 18:23:36 CEST 2009


In message <4a05e1020905200849s3c79f8e3n498b659341e2f328 at mail.gmail.com>, Cloud
e Porteus writes:

>The vbe_conn is flickering between 0-2 and 18446744073709551615. See
>varnishstat below.
>
>Any ideas what might cause this?

Yes, it is an unlocked counter, and you had a race updating it:

18446744073709551615 - 2^64 = -1

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list