From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] [patch] 2.4.20-ia64-021210 new spinlock code
Date: Fri, 28 Mar 2003 01:39:14 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590723705349@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590709805543@msgid-missing>
On Thu, 27 Mar 2003 15:32:52 -0800,
David Mosberger <davidm@napali.hpl.hp.com> wrote:
>>>>>> On Fri, 28 Mar 2003 10:15:02 +1100, Keith Owens <kaos@sgi.com> said:
>
> Keith> The code does not rely on any implementation specific
> Keith> behaviour. Stating that ar.pfs is zero is well defined, it
> Keith> means that the caller (rp in r28) of this code has no frame.
>
>No, an unwinder might check whether a stacked register is out of the
>current frame and complain if so. Ergo, it's implementation-dependent
>behavior.
The only unwinder I care about is in the kernel and that handles this
condition. libunwind also accepts this condition. Both unwinders
check that the stacked register is within the current backing store,
not within the current frame. You are rejecting working, faster and
better debugging code because some hypothetical unwinder might detect
an error one day. Even if this hypothetical unwinder did detect an
error, it would simply stop the unwind.
>Want to guess why the NEW_LOCK code was never enabled? If you want to
>add the code with an #if 0, that's fine with me.
The new spinlock code is faster, shrinks the kernel, allows for
exponential backoff and better debugging. It should be the default in
all kernels, with an option to disable it for people with strange
unwinders.
Disable out of line spinlock code
CONFIG_IA64_DISABLE_OOL_SPINLOCK
By default, IA64 uses out of line code for the spinlock contention
path. This shrinks the size of the kernel, makes uncontended locks
faster and allows for exponential backoff and debugging on contended
locks.
It uses an unusual unwind mechanism that may not work if you use an
unwinder other than the one in the kernel. Even if your unwinder
does not work, the only effect will be an incomplete unwind for code
that is stuck in the spinlock contention path, this has no effect on
the kernel itself.
If you know that you have an IA64 unwinder that cannot cope with the
out of line spinlock code, say Y and live with a kernel that is
larger, slower and cannot debug hung spinlocks. Otherwise say N.
Acceptable?
next prev parent reply other threads:[~2003-03-28 1:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-11 12:48 [Linux-ia64] [patch] 2.4.20-ia64-021210 prevent loop on zero instruction Keith Owens
2003-03-14 4:39 ` [Linux-ia64] [patch] 2.4.20-ia64-021210 unwind.c - allow unw_access_gr(r0) Keith Owens
2003-03-15 0:01 ` Bjorn Helgaas
2003-03-15 1:10 ` [Linux-ia64] [patch] 2.4.20-ia64-021210 new spinlock code Keith Owens
2003-03-15 1:30 ` David Mosberger
2003-03-15 2:36 ` Keith Owens
2003-03-15 2:40 ` Keith Owens
2003-03-15 6:46 ` David Mosberger
2003-03-15 10:31 ` Keith Owens
2003-03-27 20:29 ` David Mosberger
2003-03-27 23:15 ` Keith Owens
2003-03-27 23:32 ` David Mosberger
2003-03-28 1:39 ` Keith Owens [this message]
2003-03-28 1:45 ` David Mosberger
2003-03-28 1:49 ` Keith Owens
2003-03-28 1:53 ` David Mosberger
2003-03-28 2:10 ` Keith Owens
2003-03-28 2:14 ` David Mosberger
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=marc-linux-ia64-105590723705349@msgid-missing \
--to=kaos@sgi.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