[squid-users] squid counters appear to be wrapping on squid v2.6.18 (old I know)

From: Gavin McCullagh <gavin.mccullagh_at_gcd.ie>
Date: Mon, 5 Oct 2009 17:09:39 +0100

Hi,

we're seeing something odd on squid v2.6.18-1ubuntu3. I know this is an
old version and not recommended but I just thought I'd point it out to make
sure this has been fixed in a more recent version.

After some time running, a couple of squid's pointers appear to be
wrapping, like signed 32-bit integers. In particular:

  client_http.kbytes_out = -2112947050

We noticed this as we use munin, which queries the counters in this way and
ignores negative values. The select_loops value is also negative. If this
is fixed in v2.7 that's fair enough but I thought I'd mention it here in
case it isn't.

Gavin

gavinmc_at_watcher:~$ nc localhost 8080
GET cache_object://localhost/counters HTTP/1.0
Accept: */*

HTTP/1.0 200 OK
Server: squid/2.6.STABLE18
Date: Mon, 05 Oct 2009 15:44:17 GMT
Content-Type: text/plain
Expires: Mon, 05 Oct 2009 15:44:17 GMT
Last-Modified: Mon, 05 Oct 2009 15:44:17 GMT
X-Cache: MISS from watcher.gcd.ie
X-Cache-Lookup: MISS from watcher.gcd.ie:8080
Via: 1.0 watcher.gcd.ie:8080 (squid/2.6.STABLE18)
Proxy-Connection: close

sample_time = 1254757456.12734 (Mon, 05 Oct 2009 15:44:16 GMT)
client_http.requests = 63518961
client_http.hits = 27155728
client_http.errors = 5191
client_http.kbytes_in = 77340031
client_http.kbytes_out = -2112947050
client_http.hit_kbytes_out = 261721929
server.all.requests = 36663719
server.all.errors = 0
server.all.kbytes_in = 1908075341
server.all.kbytes_out = 61829714
server.http.requests = 36233326
server.http.errors = 0
server.http.kbytes_in = 1901156005
server.http.kbytes_out = 59068791
server.ftp.requests = 28
server.ftp.errors = 0
server.ftp.kbytes_in = 941732
server.ftp.kbytes_out = 4
server.other.requests = 430365
server.other.errors = 0
server.other.kbytes_in = 5977603
server.other.kbytes_out = 2760918
icp.pkts_sent = 0
icp.pkts_recv = 0
icp.queries_sent = 0
icp.replies_sent = 0
icp.queries_recv = 0
icp.replies_recv = 0
icp.query_timeouts = 0
icp.replies_queued = 0
icp.kbytes_sent = 0
icp.kbytes_recv = 0
icp.q_kbytes_sent = 0
icp.r_kbytes_sent = 0
icp.q_kbytes_recv = 0
icp.r_kbytes_recv = 0
icp.times_used = 0
cd.times_used = 0
cd.msgs_sent = 36
cd.msgs_recv = 36
cd.memory = 0
cd.local_memory = 6481
cd.kbytes_sent = 3
cd.kbytes_recv = 48
unlink.requests = 0
page_faults = 6
select_loops = -1656175576
cpu_time = 78423.850000
wall_time = 1.478176
swap.outs = 12350417
swap.ins = 39255680
swap.files_cleaned = 1158
aborted_requests = 1300408
Received on Mon Oct 05 2009 - 16:09:43 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 06 2009 - 12:00:02 MDT