From: Christoph Lameter <clameter@engr.sgi.com>
To: Alex Williamson <alex.williamson@hp.com>
Cc: tony.luck@intel.com, linux-kernel@vger.kernel.org
Subject: Re: long delays (possibly infinite) in time_interpolator_get_counter
Date: Sun, 31 Jul 2005 13:00:12 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.62.0507311256440.32674@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1122829379.6946.11.camel@localhost.localdomain>
On Sun, 31 Jul 2005, Alex Williamson wrote:
> Ok, here's an optimization that should help reduce contention on the
> cmpxchg, has zero impact on the nojitter path, and doesn't require any
> changes to fsys. When a caller already had the xtime_lock write lock
> there's no need to fight with other CPUs for the cmpxchg. The other
Yup correct.
> "reader" CPUs will have to fetch it again since a seqlock write is in
> progress. Therefore we can simplify this path as shown below. The
> write is atomic, and we don't care if another CPU has changed last_cycle
> since it can't return the value until the write lock is released. This
> has only been compile tested, but I'm interested to hear your opinion.
time_interpolator_get_counter is static inline. So you may modify the
existing function and pass a constant parameter without a
performance reduction. Two different versions will then be generated for
time_interpolator_get_counter at compile time.
Maybe call the parameter "writelock"?
next prev parent reply other threads:[~2005-07-31 20:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-29 22:06 tony.luck
2005-07-29 23:31 ` Christoph Lameter
2005-07-30 16:47 ` Alex Williamson
2005-07-30 18:10 ` Christoph Lameter
2005-07-31 17:02 ` Alex Williamson
2005-07-31 20:00 ` Christoph Lameter [this message]
2005-08-01 16:57 ` Bjorn Helgaas
2005-08-01 17:04 ` Christoph Lameter
2005-07-30 0:32 ` Christoph Lameter
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=Pine.LNX.4.62.0507311256440.32674@schroedinger.engr.sgi.com \
--to=clameter@engr.sgi.com \
--cc=alex.williamson@hp.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®