mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: limp <johnkyr83@hotmail.com>
Cc: "'Dario Faggioli'" <raistlin@linux.it>, linux-kernel@vger.kernel.org
Subject: RE: Minimum time slice for relaible Linux execution
Date: Fri, 01 Apr 2011 09:32:04 -0400	[thread overview]
Message-ID: <1301664724.2160.5.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <SNT111-DS223A836C90F9E0C2A8AB07A7BE0@phx.gbl>

On Fri, 2011-04-01 at 13:39 +0100, limp wrote:
> Thank you guys for your responses,
> 
> To be honest I haven’t looked in detail how RTAI and Xenomai does it but
> AFAIK, they don't give a fixed time slice to Linux either (i.e. they switch
> To Linux only when they have finished with their RT tasks).

Perhaps you should look into more detail, maybe they do more than you
expect. Honestly, I haven't looked into detail of what they do either,
so I can not comment on how they work.

> 
> A difference between their implementation and mine is that I don't acknowledge
> any Linux interrupt while the RT domain is executed so maybe, if Linux code
> is not smart enough to re-issue a lost interrupt, and if the RT domain takes most
> of CPU time starving Linux, this can cause Linux to crash at some point. 

What exactly do you mean by not acknowledging Linux interrupts? If an
interrupt takes place while an RT domain is running, you simply drop it?
Yes that will break things. How will Linux know to reissue an interrupt
for a network packet coming in if it never knew it happened?

If your microkernel stores off the interrupt and reissues it to Linux
when Linux gets a chance to run again, then everything would work.
That's pretty much what the virtualization code does.

> 
> The idea of not acknowledging Linux interrupts on RT domain is that I don't
> want to add *random* overhead into RT tasks execution.

Or do you simply mask the interrupts that the RT domain does not care
about when the RT domain runs? This should work as when you unmask them
they should trigger, and then you can pass it to the Linux irq handlers.

-- Steve



  reply	other threads:[~2011-04-01 13:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-31 12:13 limp
2011-03-31 15:12 ` Steven Rostedt
2011-04-01  8:05   ` Dario Faggioli
2011-04-01 12:39     ` limp
2011-04-01 13:32       ` Steven Rostedt [this message]
2011-04-01 14:19 ` Rafael Fernandez
2011-04-01 14:57   ` Rafael Fernandez

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=1301664724.2160.5.camel@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=johnkyr83@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raistlin@linux.it \
    /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®