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

From: Saurabh Agarwal <Saurabh.Agarwal_at_citrix.com>
Date: Tue, 29 Mar 2011 11:24:50 +0530

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?
>>
>>Regards,
>>Saurabh
Received on Tue Mar 29 2011 - 05:55:02 MDT

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