[squid-users] Seeking insight into zeros, negative values in log: 2.6.STABLE18 -- SOLVED

Matus UHLAR - fantomas uhlar at fantomas.sk
Sun Aug 7 12:24:38 UTC 2016


>Amos Jeffries writes:
>> So the Squid logs can contain negative duration under exactly four
>> conditions:
>> ...
>>  4) NTP service adjusting the kernel clock backwards.
>>
>> Since you say this is happening noticably often then its #4 and there is
>> something funky going on with NTP. The others are all at rare and
>> predictable times.

On 05.08.16 16:20, Henry S. Thompson wrote:
>On closer investigation, you are exactly right.  Here are the first two
>columns (with the timestamp converted to human-readable form) for the
>negative duration log lines starting at 0900 on the worst day on record,
>3 years ago:

>Tue 25 Jun 09:17:00 BST 2013 -281
[...]
>Tue 25 Jun 11:16:59 BST 2013 -634
[...]
>Tue 25 Jun 11:17:00 BST 2013 -164
>and so it goes on.
>
>There's a cron job on the 4 cache machines that runs every hour, and we
>now know at exactly what time :-).

what cron job, ntpdate? if so, you should run ntpd instead. That one should
be able to manage time more precisely.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
My mind is like a steel trap - rusty and illegal in 37 states. 


More information about the squid-users mailing list