From: Andrew Morton <akpm@zip.com.au>
To: Bob McElrath <mcelrath+linux@draal.physics.wisc.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: low-latency patches
Date: Fri, 05 Oct 2001 23:46:39 -0700 [thread overview]
Message-ID: <3BBEA8CF.D2A4BAA8@zip.com.au> (raw)
In-Reply-To: <20011006010519.A749@draal.physics.wisc.edu>
Bob McElrath wrote:
>
> It seems there are two low-latency projects out there. The one by Robert Love:
> http://tech9.net/rml/linux/
> and the original one:
> http://www.uow.edu.au/~andrewm/linux/schedlat.html
>
> Correct me if I'm wrong, but the former uses spinlocks to know when it can
> preempt the kernel, and the latter just tries to reduce latency by adding
> (un)conditional_schedule and placing it at key places in the kernel?
Pretty much. The second one also reorganises various areas of the
kernel which can traverse very long lists when under spinlocks.
> My questions are:
> 1) Which of these two projects has better latency performance? Has anyone
> benchmarked them against each other?
I haven't seen any rigorous latency measurements on Rob's stuff, and
I haven't seriously measured the reschedule-based patch for months. But
I would expect the preempt patch to perform significantly worse because
it doesn't attempt to break up the abovementioned long-held locks. (It can
do so, though - a straightforward adaptation of the reschedule patch's
changes will fix it).
> 2) Will either of these ever be merged into Linus' kernel (2.5?)
Controversial. My vague feeling is that they shouldn't. Here's
why:
The great majority of users and applications really only need
a mostly-better-than-ten-millisecond latency. This gives good
responsiveness for user interfaces and media streaming. This
can trivially be achieved with the current kernel via a thirty line
patch (which _should_ be applied to 2.4.x. I need to get off my
butt).
But the next rank of applications - instrumentation, control systems,
media production sytems, etc require 500-1000 usec latencies, and
the group of people who require this is considerably smaller. And their
requirements are quite aggressive. And maintaining that performance
with either approach is a fair bit of work and impacts (by definition)
the while kernel. That's all an argument for keeping it offstream.
> 3) Is there a possibility that either of these will make it to non-x86
> platforms? (for me: alpha) The second patch looks like it would
> straightforwardly work on any arch, but the config.in for it is only in
> arch/i386. Robert Love's patches would need some arch-specific asm...
>
The rescheduling patch should work fine on any architecture - just copy
the arch/i386/config.in changes.
-
next prev parent reply other threads:[~2001-10-06 6:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-06 6:05 low-latency patches Bob McElrath
2001-10-06 6:46 ` Andrew Morton [this message]
2001-10-06 16:33 ` Daniel Phillips
2001-10-06 20:42 ` Bob McElrath
2001-10-06 22:00 ` Mike Fedyk
2001-10-06 22:22 ` Robert Love
2001-10-08 12:47 ` Helge Hafting
2001-10-08 17:41 ` george anzinger
2001-10-08 18:24 ` Andrew Morton
2001-10-08 18:36 ` Alan Cox
2001-10-07 1:12 ` Robert Love
2001-10-07 2:38 ` Jeffrey W. Baker
2001-10-07 2:55 ` Robert Love
2001-10-06 22:36 ` Robert Love
2001-10-06 22:46 ` Mike Fedyk
-- strict thread matches above, loose matches on Subject: below --
2001-10-10 15:27 David Balazic
2001-03-08 13:06 Andrew Morton
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=3BBEA8CF.D2A4BAA8@zip.com.au \
--to=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mcelrath+linux@draal.physics.wisc.edu \
/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