public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Denys Fedoryshchenko" <denys@visp.net.lb>, linux-kernel@vger.kernel.org
Subject: Re: strange timestamp in dmesg
Date: Fri, 06 Jun 2008 15:49:26 +0200	[thread overview]
Message-ID: <87hcc6u109.fsf@basil.nowhere.org> (raw)
In-Reply-To: <20080606031939.285679c9.akpm@linux-foundation.org> (Andrew Morton's message of "Fri, 6 Jun 2008 03:19:39 -0700")

Andrew Morton <akpm@linux-foundation.org> writes:

>> supports DPO and FUA
>> [    9.801761] sd 1:0:1:0: [sdc] 143374744 512-byte hardware sectors (73408 MB)
>> [    9.673388] sd 1:0:1:0: [sdc] Write Protect is off
>> [    9.673395] sd 1:0:1:0: [sdc] Mode Sense: ab 00 10 08
>> [    9.806210] sd 1:0:1:0: [sdc] Write cache: enabled, read cache: enabled,
>> supports DPO and FUA
>> [    9.806220]  sdc: sdc1
>> [    9.682136] sd 1:0:1:0: [sdc] Attached SCSI disk
>> [   13.786405] SGI XFS with large block numbers, no debug enabled
>> [   13.633457] XFS mounting filesystem sdb2
>> [   13.724345] Starting XFS recovery on filesystem: sdb2 (logdev: internal)
>> [   14.251356] Ending XFS recovery on filesystem: sdb2 (logdev: internal)
>> [   15.379298] XFS mounting filesystem sdc1
>> [   15.468255] Starting XFS recovery on filesystem: sdc1 (logdev: internal)
>> [   14.514314] Ending XFS recovery on filesystem: sdc1 (logdev: internal)
>> [   14.767260] warning: `squid' uses 32-bit capabilities (legacy support in use)
>> [   17.589751] e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps Full
>> Duplex, Flow Control: RX/TX
>> 
>
> whoa, that's weird.  We've seen timestamps jump forward a single hop of
> ~100000 seconds, but that's all over the place.

No it's expected since printk uses sched_clock() and sched clock is not synchronous
between CPUs on systems without synchronized/invariant TSC (like Opteron)
All sched_clock() users are expected to handle it.

I always advocated just always using jiffies for printk. The only drawback would
be that it won't increase in interrupt off sections, but if you have
one that is longer than a jiffie then you have enough other problems.

-Andi

  reply	other threads:[~2008-06-06 13:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 11:54 strange timestamp in dmesg Denys Fedoryshchenko
2008-06-06 10:19 ` Andrew Morton
2008-06-06 13:49   ` Andi Kleen [this message]
2008-06-06 18:25     ` Andrew Morton
2008-06-06 18:40       ` Andi Kleen

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=87hcc6u109.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=akpm@linux-foundation.org \
    --cc=denys@visp.net.lb \
    --cc=linux-kernel@vger.kernel.org \
    /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