From: "Mihai Donțu" <mihai.dontu@gmail.com>
To: Tim Ricketts <tr@earth.li>
Cc: Michael Smith <msmith@xiph.org>,
LKML <linux-kernel@vger.kernel.org>,
Andy Wingo <wingo@fluendo.com>
Subject: Re: gettimeofday() jumping into the future
Date: Wed, 2 Apr 2008 07:26:11 +0300 [thread overview]
Message-ID: <200804020726.11300.mihai.dontu@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0803302210060.3056@falcon.foo>
On Monday 31 March 2008, Tim Ricketts wrote:
> On Thu, 23 Aug 2007, Michael Smith wrote:
>
> > We've been seeing some strange behaviour on some of our applications
> > recently. I've tracked this down to gettimeofday() returning spurious
> > values occasionally.
> >
> > Specifically, gettimeofday() will suddenly, for a single call, return
> > a value about 4398 seconds (~1 hour 13 minutes) in the future. The
> > following call goes back to a normal value.
>
> I have also seen this.
I don't know if gettimeofday() and dmesg's logging facility use the same
time source, but I'm seeing jumps into the past:
[ 11.010300] ACPI: SSDT 3F6D3F27, 01C6 (r1 PmRef Cpu0Cst 3001 INTL 20050624)
[ 9.344283] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
[ 9.344528] ACPI: Processor [CPU0] (supports 8 throttling states)
[ 9.344989] ACPI: SSDT 3F6D4374, 00C4 (r1 PmRef Cpu1Ist 3000 INTL 20050624)
[ 9.345458] ACPI: SSDT 3F6D40ED, 0085 (r1 PmRef Cpu1Cst 3000 INTL 20050624)
[ 11.013089] ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
and the future:
[ 11.081332] usb 1-2: new high speed USB device using ehci_hcd and address 2
[ 12.748489] usb usb4: configuration #1 chosen from 1 choice
[ 12.748653] hub 4-0:1.0: USB hub found
[ 12.748772] hub 4-0:1.0: 2 ports detected
[ 12.849090] ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 23 (level, low) -> IRQ 23
[ 12.849338] PCI: Setting latency timer of device 0000:00:1d.3 to 64
[ 12.849341] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[ 12.849505] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[ 12.849734] uhci_hcd 0000:00:1d.3: irq 23, io base 0x0000bf20
[ 12.850020] usb usb5: configuration #1 chosen from 1 choice
[ 12.850185] hub 5-0:1.0: USB hub found
[ 12.850311] hub 5-0:1.0: 2 ports detected
[ 11.194688] usb 1-2: configuration #1 chosen from 1 choice
I have a 2.6.24, 64bit, SMP kernel (Intel Core 2 Duo).
--
Mihai Donțu
next prev parent reply other threads:[~2008-04-02 4:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 11:08 gettimeofday() jumping into the future Michael Smith
2007-08-23 11:36 ` Gerald Britton
2007-08-23 13:03 ` Avi Kivity
2007-08-23 20:09 ` H. Peter Anvin
2007-08-23 20:07 ` H. Peter Anvin
2007-08-23 11:47 ` Peter Zijlstra
2007-08-23 12:20 ` Michael Smith
2007-08-23 18:47 ` john stultz
2007-08-25 16:44 ` Michael Smith
2008-03-30 21:17 ` Tim Ricketts
2008-03-31 7:18 ` Andi Kleen
2008-04-03 11:47 ` James Courtier-Dutton
2008-04-03 12:22 ` James Courtier-Dutton
2008-04-03 12:44 ` James Courtier-Dutton
2008-04-11 23:11 ` john stultz
2008-03-31 8:55 ` Thomas Gleixner
2008-03-31 16:03 ` John Stultz
2008-04-02 11:22 ` Thomas Gleixner
2008-04-02 23:57 ` Karsten Wiese
2008-04-03 6:28 ` Thomas Gleixner
2008-04-02 4:26 ` Mihai Donțu [this message]
2008-04-02 4:27 ` Mihai Donțu
[not found] <47F3F313.7030803@vmware.com>
2008-04-02 22:40 ` Tim Mann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804020726.11300.mihai.dontu@gmail.com \
--to=mihai.dontu@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=msmith@xiph.org \
--cc=tr@earth.li \
--cc=wingo@fluendo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox