public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Bird <tim.bird@am.sony.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
	tony.luck@intel.com, linux-kernel@vger.kernel.org,
	jasonuhl@sgi.com
Subject: Re: CONFIG_PRINTK_TIME woes
Date: Tue, 23 Aug 2005 17:04:33 -0700	[thread overview]
Message-ID: <430BB991.9010204@am.sony.com> (raw)
In-Reply-To: <20050821110127.3b601268.akpm@osdl.org>

Andrew Morton wrote:
> Nick Piggin <nickpiggin@yahoo.com.au> wrote:
>>
>>What about just using jiffies, then?
>>
>>Really, sched_clock() is very broken for this (I know you're
>>not arguing against that).
>>
>>It can go backwards when called twice from the same CPU, and the
>>number returned by one CPU need have no correlation with that
>>returned by another.
> 
> jiffies wouldn't have sufficient resolution for this application.  Bear
> in
> mind that this is just a debugging thing - it's better to have good
> resolution with occasional theoretical weirdness than to have poor
> resolution plus super-consistency, IMO.

Andrew's assessment is correct for my usage.

I use this for detailed info on bootup times, for tuning embedded
configurations.  Someone has already noted that the current code
truncates the value to microseconds (so a nanosecond-capable clock
interface is overkill for the current code).  Microseconds seems
to be a pretty useful precision for the work I'm doing.

Note that on many embedded platforms, a jiffy is 10 milliseconds,
which is far too low resolution for my purposes.  Also, not
to be totally egocentric, but most embedded platforms don't
have SMP (currently), so the SMP weirdness has never bothered
me. Even on SMP systems, the bootup code, which is what
I'm measuring, is mostly UP.

Just my 2 cents.

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================


  reply	other threads:[~2005-08-24  0:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 18:47 CONFIG_PRINTK_TIME woes Luck, Tony
2005-08-21  9:13 ` Andrew Morton
2005-08-21  9:16   ` Andrew Morton
2005-08-21  9:27     ` Nick Piggin
2005-08-21  9:32       ` Andrew Morton
2005-08-21 11:25         ` Nick Piggin
2005-08-21 18:01           ` Andrew Morton
2005-08-24  0:04             ` Tim Bird [this message]
2005-08-22 17:42     ` tony.luck
2005-08-22 17:50       ` Andrew Morton
2005-08-22 20:52         ` tony.luck
2005-08-22 20:20       ` David S. Miller
2005-08-22 20:33         ` Jason Uhlenkott
2005-08-22 20:42           ` David S. Miller
2005-08-22 21:15             ` Andrew Morton
2005-08-22 22:33               ` tony.luck
2005-08-22 22:38                 ` Andrew Morton
2005-08-22 23:27                   ` tony.luck
2005-08-23  1:52                     ` Paul Mackerras
2005-08-23 15:01             ` Nick Piggin
2005-08-22 21:10           ` tony.luck
2005-08-24  0:36     ` Tim Bird
2005-08-23  7:18   ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2005-08-23 14:07 Luck, Tony

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=430BB991.9010204@am.sony.com \
    --to=tim.bird@am.sony.com \
    --cc=akpm@osdl.org \
    --cc=jasonuhl@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=tony.luck@intel.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