mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "arun4linux" <arun4linux@indiatimes.com>
To: "Roger Larsson" <roger.larsson@norran.net>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Re: Lowering Latency
Date: Thu, 26 Dec 2002 03:39:53 +0530	[thread overview]
Message-ID: <200212252214.DAA26705@WS0005.indiatimes.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2246 bytes --]

<<Your driver latency should not be a problem. It should be interrupt latency and not much more. 

>>I need to process a minimum of 3000 interrupts per minute generated by a PCI based controller.
And my development environment is RedHat 8.0. I can't change both of these. And the application is tightly coupled with the driver. Driver exports the PCI base addresses to the application using mmap and application accesses the card directly.

Arun

"Roger Larsson" wrote:



On Tuesday 24 December 2002 16:55, arun4linux wrote:
&gt; Hello,
&gt; 
&gt; I'm writing a module device driver on RH 8.0 (2.4.18-14 kernel).
&gt; I'd like to know is there any way I can give maximum priority to my module.
&gt; Or can I make my module a non-preemptable one?
&gt; I could see from drivers/char/oprofile/compat.h that preempt_disable() 
doesn't do anything. (Mine is an uniprocessor machine.)

It does in 2.5 kernels. That is why it is a compat in 2.4 :-)
[2.4 does not have kernel preemption unless you add the specific patches]

&gt; I don't want to touch the rest of the kernel. I dont want to apply any 
patch.
&gt; All I want to do is get the maximum time from the CPU and lower my driver's 
latency.

Your driver latency should not be a problem. It should be interrupt latency 
and not much more. Are you sure that it is the drivers latency that is the
problem? How have you come to that conclusion?
(if it is in the milliseconds range then it is not the driver, but driver to 
application - and you need a low latency patch)

&gt; Is it possible?

Yes, if that really is the problem. There are two hard RT approaches.
RTLinux and RTAI/Adeos (but it is important to read their respective 
licenses...) It it is driver to application those are overkills...

&gt; If it's possible, please do let me know, how to achieve this.
&gt; 
&gt; Wishing you all a merry christmas and a prosperous new year.
&gt; 
&gt; Arun
&gt; 

/RogerL

-- 
Roger Larsson
Skellefteå
Sweden




Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy the best in Movies at http://www.videos.indiatimes.com

Now bid just 7 Days in Advance and get Huge Discounts on Indian Airlines Flights. So log on to http://indianairlines.indiatimes.com and Bid Now!


             reply	other threads:[~2002-12-25 22:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-25 22:09 arun4linux [this message]
2002-12-30 17:24 arun4linux

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=200212252214.DAA26705@WS0005.indiatimes.com \
    --to=arun4linux@indiatimes.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roger.larsson@norran.net \
    /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®