From: Michael Raymond <mraymond@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: user-mode interrupt handling
Date: Wed, 02 Mar 2005 22:03:20 +0000 [thread overview]
Message-ID: <20050302160317.A79696@goliath.americas.sgi.com> (raw)
In-Reply-To: <16924.63777.712927.18129@berry.gelato.unsw.EDU.AU>
I've done some better quality benchmarking to compare the two approaches
and here are my results. This was done on an idle 1Ghz system with kernel
preemption.
Total Cost of Empty Handler Time to First User Instruction
ULI 2.9us 1.34us
UMIH 3.4us 7.98us
Total Cost was measured as the slow down per interrupt of an application
doing other work and periodically being interrupted. First Instruction was
measured as the time from the IRQ code to the first user space instruction.
For my purposes, Mr Amdahl says that the Total Cost difference is
irrelevant. In the application space that I'm targetting, I can expect code
running at 50+ kHz and needing to respond to every interrupt before the next
one. For those kind of applications, the latency issue becomes a problem.
Prof Chubb, our code bases share a good deal of common infrastructure
and I imagine at a user API level we could produce library code that allows
the user to not care about the underlying methods. ULI users need really
low latency while UMIH appears to target environments that can batch work.
With the goal of getting something checked in, would it make sense to
merge our code that affects common Linux C code?
Thanks,
Michael
On Thu, Feb 24, 2005 at 08:44:01AM +1100, Peter Chubb wrote:
>
>
> For your delectation --- here's the stuff to be able to handle
> interrupts from user space, for all architectures that use
> GENERIC_HARDIRQS (which of course includes IA64).
>
> I'm not expecting this to be included; it's just for comparison with the
> ULI patch that Michael Raymond posted a pointer to.
--
Michael A. Raymond Office: (651) 683-3434
Core OS Group Real-Time System Software
prev parent reply other threads:[~2005-03-02 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 21:44 user-mode interrupt handling Peter Chubb
2005-02-23 23:39 ` Christoph Hellwig
2005-03-02 22:03 ` Michael Raymond [this message]
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=20050302160317.A79696@goliath.americas.sgi.com \
--to=mraymond@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