public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Ingo Molnar <mingo@elte.hu>
Cc: "Luck, Tony" <tony.luck@intel.com>,
	akpm@osdl.org, linux-arch@vger.kernel.org
Subject: Re: [patch 1/1] Fix spinlock debugging delays to not time out too early
Date: Tue, 7 Feb 2006 20:37:45 +0100	[thread overview]
Message-ID: <200602072037.46079.ak@muc.de> (raw)
In-Reply-To: <20060207191418.GA28414@elte.hu>

On Tuesday 07 February 2006 20:14, Ingo Molnar wrote:
> 
> * Luck, Tony <tony.luck@intel.com> wrote:
> 
> > On Tue, Feb 07, 2006 at 07:29:24PM +0100, Andi Kleen wrote:
> > > For this case that would be ok, as long as it isn't a hour or so,
> > > but let's say < 1 minute.
> > 
> > About 9.7 seconds on ia64 for:
> > 
> > 	for (i = 0; i < loops_per_jiffy * HZ; i++) {
> > 		__delay(1);
> > 	}
> > 
> > so yes, well under a minute.
> 
> yeah, that's good enough. We want to have a minimum delay of 1 second, 
> because otherwise we'd be getting false positives under high load (and 
> under some bad drivers). Having a larger delay is not an issue, as long 
> as it's below the average hit-reset latency of users ;)

This reminds me - if we can find a cheaper way than __delay(1) it 
would be actually quite reasonable to do a timeout in the non debug
spinlock. Since it's always out of line it doesn't matter if the code
is bigger and spinning cycles are free anyways, so some checks there
wouldn't matter.

Maybe go through a 32bit counter to overflow a few times? A

It's probably better longer than a second by default.

-Andi


  reply	other threads:[~2006-02-07 19:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 18:20 [patch 1/1] Fix spinlock debugging delays to not time out too early Luck, Tony
2006-02-07 18:29 ` Andi Kleen
2006-02-07 18:44   ` Luck, Tony
2006-02-07 19:14     ` Ingo Molnar
2006-02-07 19:37       ` Andi Kleen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-07 17:41 akpm

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=200602072037.46079.ak@muc.de \
    --to=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=mingo@elte.hu \
    --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