mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Nigel Gamble <nigel@nrg.org>
Cc: Andi Kleen <ak@suse.de>, Daniel Phillips <phillips@innominate.de>,
	ludovic fernandez <ludovic.fernandez@sun.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.4.0-prerelease: preemptive kernel.
Date: Thu, 4 Jan 2001 23:09:30 +0100	[thread overview]
Message-ID: <20010104230930.A4219@gruyere.muc.suse.de> (raw)
In-Reply-To: <20010104091118.A18973@gruyere.muc.suse.de> <Pine.LNX.4.05.10101041329410.4778-100000@cosmic.nrg.org>
In-Reply-To: <Pine.LNX.4.05.10101041329410.4778-100000@cosmic.nrg.org>; from nigel@nrg.org on Thu, Jan 04, 2001 at 01:39:57PM -0800

On Thu, Jan 04, 2001 at 01:39:57PM -0800, Nigel Gamble wrote:
> Experience has shown that adaptive spinlocks are not worth the extra
> overhead (if you mean the type that spin for a short time
> and then decide to sleep).  It is better to use spin_lock_irqsave()
> (which, by definition, disables kernel preemption without the need
> to set a no-preempt flag) to protect regions where the lock is held
> for a maximum of around 100us, and to use a sleeping mutex lock for
> longer regions.  This is what I'm working towards.

What experience ?  Only real-time latency testing or SMP scalability 
testing? 

The case I was thinking about is a heavily contended lock like the
inode semaphore of a file that is used by several threads on several
CPUs in parallel or the mm semaphore of a often faulted shared mm. 

It's not an option to convert them to a spinlock, but often the delays
are short enough that a short spin could make sense. 

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-04 22:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-04  1:56 ludovic fernandez
2001-01-04  7:35 ` Daniel Phillips
2001-01-04  8:11   ` Andi Kleen
2001-01-04 12:32     ` Anton Blanchard
2001-01-04 12:44       ` Andi Kleen
2001-01-04 21:54         ` Nigel Gamble
2001-01-04 21:39     ` Nigel Gamble
2001-01-04 22:09       ` Andi Kleen [this message]
2001-01-04 22:28         ` Nigel Gamble
2001-01-04  8:43   ` ludovic fernandez
2001-01-04 22:10     ` Roger Larsson
2001-01-04 23:16       ` ludovic fernandez
2001-01-05  0:10         ` Nigel Gamble
2001-01-05  0:36           ` ludovic fernandez
2001-01-05  0:45             ` Andi Kleen
2001-01-05  1:13               ` Alan Olsen
2001-01-05  5:29       ` george anzinger
2001-01-05  6:45         ` ludovic fernandez
2001-01-05  8:10           ` george anzinger
2001-01-04 21:28   ` Nigel Gamble
2001-01-04  9:00 ` David Woodhouse
2001-01-04 16:17 ` Rik van Riel
2001-01-04 20:06 ` Nigel Gamble
2001-01-04 20:36   ` ludovic fernandez
2001-01-05  0:56     ` Daniel Phillips

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=20010104230930.A4219@gruyere.muc.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ludovic.fernandez@sun.com \
    --cc=nigel@nrg.org \
    --cc=phillips@innominate.de \
    /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®