Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2001 12:14:35 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: bogus microuptime() warnings? 
Message-ID:  <15658.979038875@critter>
In-Reply-To: Your message of "09 Jan 2001 12:10:32 %2B0100." <xzp66jpgevr.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzp66jpgevr.fsf@flood.ping.uio.no>, Dag-Erling Smorgrav writes:
>I regularly get "microuptime() went backwards" warnings on my desktop
>box. The funny thing about them is that the reported timevals have the
>same seconds part, but the microseconds part of the second timeval is
>so large that it's wrapped around to a negative number (causing the
>signed comparison to report that it went backwards). This suggests
>that the current process has been running uninterrupted for several
>seconds, which seems unlikely - or that the timecounter was adjusted
>upwards while the process was running (could ntp cause that?)

No, this is either a problem reading the i8254 timecounter reliably
or an interrupt latency problem.

If you sysctl's indicate that you are running on the TSC timecounter
and you can reproduce this there is some chance we can create a workaround.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15658.979038875>