From: "Manfred Spraul" <manfred@colorfullife.com>
To: "Sebastian Heidl" <heidl@zib.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: doing a callback from the kernel to userspace
Date: Mon, 12 Nov 2001 19:27:14 +0100 [thread overview]
Message-ID: <001a01c16ba7$ab5242d0$010411ac@local> (raw)
>
> PS: Yes, I really do need this as signals form the kernel to userspace
> add to much latency (10 to 20 usecs) and I want to avoid waiting
> in a system call.
The latency you talk about is the time required to schedule - there is nothing
you driver can do to reduce that - syscall, signal or your own code must wait
until schedule() decides to run your process.
I'd try to
a) switch your process to realtime priority, mlockall your app.
b) use the low-latency patches. They were regularly discussed on
linux-kernel, search through the archives.
c) give up and implement everything in kernel.
d) switch to rtlinux.
Are you sure you need 10 to 20 usec? Then a hard realtime with everything
in kernel is your only option, i.e. rtlinux.
--
Manfred
next reply other threads:[~2001-11-12 18:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-12 18:27 Manfred Spraul [this message]
2001-11-13 9:47 ` Sebastian Heidl
-- strict thread matches above, loose matches on Subject: below --
2001-11-12 17:05 Sebastian Heidl
2001-11-12 18:39 ` Richard B. Johnson
2001-11-13 9:47 ` Sebastian Heidl
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='001a01c16ba7$ab5242d0$010411ac@local' \
--to=manfred@colorfullife.com \
--cc=heidl@zib.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®