[squid-users] RE: Squid Up Time is shown as negative

From: Keith Chadwick <chadwick_at_fnal.gov>
Date: Tue, 29 Mar 2011 00:15:08 -0500

For example, here is the information from one of my systems:

$ cat /proc/stat | grep btime | awk -F ' ' '{print $2}'
1299272744

$ date +"%s"
1301375522

$ date -d "1970-01-01 1299272744 sec UTC"
Fri Mar 4 15:05:44 CST 2011

$ date -d "1970-01-01 1301375522 sec UTC"
Tue Mar 29 00:12:02 CDT 2011

-Keith.

At 12:09 AM -0500 3/29/11, Keith Chadwick wrote:
>From the looks of your output, it appears to be a counter wrapping issue.
>
>If you are using RHEL or RHEL compatible distribution, what do the
>following commands return?
>
> cat /proc/stat | grep btime | awk -F ' ' '{print $2}'
>and
> date +"%s"
>
>The first should list the system boottime in seconds from the UNIX epoch,
>the second should list the current epoch time.
>
>-Keith.
>
>At 10:28 AM +0530 3/29/11, Saurabh Agarwal wrote:
>>Resending since earlier mail text got poorly mixed.
>>
>>Hi All
>>
>>I am using Squid-2.7.Stable7. The cachemgr info using "squidclient
>>-h ip mgr:info" is showing uptime as negative. Below is the output
>>from cachemgr. All other output is right and is being shown as +ve.
>>
>>Resource usage for squid:
>> UP Time: -49193.139 seconds
>> CPU Time: 0.525 seconds
>> CPU Usage: -0.00%
>> CPU Usage, 5 minute avg: 0.00%
>> CPU Usage, 60 minute avg: 0.00%
>> Process Data Segment Size via sbrk(): 2372 KB
>> Maximum Resident Size: 0 KB
>>
>>
>>Can someone tell what could be the issue here?
>>
>>Regards,
>>Saurabh
>>
>>-----Original Message-----
>>From: Saurabh Agarwal
>>Sent: Tuesday, March 29, 2011 10:27 AM
>>To: squid-users_at_squid-cache.org
>>Subject: Squid Up Time is shown as negative
>>
>>Hi All
>>
>>I am using and using Squid-2.7.Stable7. squidclient -h ip mgr:info
>>shown uptime as negative. Below is the output from cachemgr. All
>>other output is right and is being shown as +ve.
>>
>>Resource usage for squid:
>> UP Time: -49193.139 seconds
>> CPU Time: 0.525 seconds
>> CPU Usage: -0.00%
>> CPU Usage, 5 minute avg: 0.00%
>> CPU Usage, 60 minute avg: 0.00%
>> Process Data Segment Size via sbrk(): 2372 KB
>> Maximum Resident Size: 0 KB
>>
>>
>>Can someone tell what could be the issue here?
>>
>>Regards,
>>Saurabh
Received on Tue Mar 29 2011 - 05:15:14 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 29 2011 - 12:00:02 MDT