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

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 29 Mar 2011 19:50:01 +1300

On 29/03/11 19:25, Saurabh Agarwal wrote:
> I started the box and for a minute didn't see the negative up time but one minute later I again saw that Squid cachemgr is again reporting the negative uptime. Can you suggest what is going wrong?
>
> Regards,
> Saurabh
>
> -----Original Message-----
> From: Saurabh Agarwal
> Sent: Tuesday, March 29, 2011 11:25 AM
> To: Keith Chadwick; squid-users_at_squid-cache.org
> Subject: RE: [squid-users] RE: Squid Up Time is shown as negative
>
> I am checking if someone tried changing the system time. Thank You Keith.
>
> Regards,
> Saurabh
>
> -----Original Message-----
> From: Keith Chadwick [mailto:chadwick_at_fnal.gov]
> Sent: Tuesday, March 29, 2011 10:54 AM
> To: Saurabh Agarwal; squid-users_at_squid-cache.org
> Subject: RE: [squid-users] RE: Squid Up Time is shown as negative
>
> Another possibility is that when your system booted, it started with
> a initial system boot time "in the future", and the boot time was later
> "corrected" in the system startup by ntp synchronization.
>
> -Keith.
>
> At 10:44 AM +0530 3/29/11, Saurabh Agarwal wrote:
>> > From the first I get "1301274733" and from the second I get "1301299358"
>>
>> Regards,
>> Saurabh
>>
>> -----Original Message-----
>> From: Keith Chadwick [mailto:chadwick_at_fnal.gov]
>> Sent: Tuesday, March 29, 2011 10:39 AM
>> To: Saurabh Agarwal; squid-users_at_squid-cache.org
>> Subject: [squid-users] RE: Squid Up Time is shown as negative
>>
>> 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?

If 2.7 has them what do the Start Time and Current Time fields at the
top of the info display show?

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.5
Received on Tue Mar 29 2011 - 06:50:08 MDT

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