public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Scalability enhancements for gettimeofday
Date: Tue, 08 Jun 2004 22:13:26 +0000	[thread overview]
Message-ID: <16582.14854.924570.718924@napali.hpl.hp.com> (raw)
In-Reply-To: <200405201205.57930.clameter@sgi.com>

>>>>> On Tue, 8 Jun 2004 14:48:20 -0700 (PDT), Christoph Lameter <christoph@lameter.com> said:

  Christoph> Please show me how last_itc can *receive* a bogus
  Christoph> value. What you are saying cannot happen because last_itc
  Christoph> does not depend in any way on variables modified by the
  Christoph> timer interrupt. Last_itc is updated using a cmpxchg
  Christoph> which will deal with the problem of multiple CPUs
  Christoph> updating the value.

Ah, I see now what you mean.  Yes, tracking the maximum ITC rather
than a relative offsets is a nice trick that solves the problem of the
ITC-based getoffset not being "restartable".

What threw me off is that you continue to read jiffies and
wall_jiffies in the do/while-loop for the cmpxchg.  I don't see why
that's necessary/helpful.  If you get a tick, you'll throw away the
result of the routine anyhow so you might just as well move it out of
the loop.

So I think your patch does work.  I'd only ask that you replace the
explicit "check-for-earlier while allowing for wraparound" with a call
to the time_before() macro (or at least the equivalent open-code, if
you're nervous about using jiffies-related macros for non-jiffy
values).

Thanks,

	--david

      parent reply	other threads:[~2004-06-08 22:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 19:05 Scalability enhancements for gettimeofday Christoph Lameter
2004-06-02 17:33 ` David Mosberger
2004-06-02 20:58 ` John Hesterberg
2004-06-03  2:38 ` Jack Steiner
2004-06-03  4:56 ` Christoph Lameter
2004-06-03 16:28 ` Christoph Lameter
2004-06-03 20:04 ` Chris Wedgwood
2004-06-04  6:29 ` David Mosberger
2004-06-04 14:26 ` Christoph Lameter
2004-06-05  5:12 ` David Mosberger
2004-06-07 17:46 ` Christoph Lameter
2004-06-07 18:14 ` David Mosberger
2004-06-07 20:24 ` Christoph Lameter
2004-06-07 20:55 ` David Mosberger
2004-06-07 22:48 ` Christoph Lameter
2004-06-07 23:02 ` David Mosberger
2004-06-08  4:08 ` Christoph Lameter
2004-06-08  4:33 ` David Mosberger
2004-06-08  5:59 ` Christoph Lameter
2004-06-08  6:06 ` David Mosberger
2004-06-08  7:11 ` Christoph Lameter
2004-06-08 18:02 ` David Mosberger
2004-06-08 18:32 ` Christoph Lameter
2004-06-08 21:38 ` David Mosberger
2004-06-08 21:48 ` Christoph Lameter
2004-06-08 22:13 ` David Mosberger [this message]

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=16582.14854.924570.718924@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@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