From: Steven Rostedt <rostedt@goodmis.org>
To: limp <johnkyr83@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Minimum time slice for relaible Linux execution
Date: Thu, 31 Mar 2011 11:12:14 -0400 [thread overview]
Message-ID: <20110331151214.GB14441@home.goodmis.org> (raw)
In-Reply-To: <SNT111-DS16E628E3B6501DBCF9E19CA7BF0@phx.gbl>
On Thu, Mar 31, 2011 at 01:13:55PM +0100, limp wrote:
> Dear all,
>
> I have developed a framework similar to a hypervisor that switches between
> Linux and a RT domain.
> As RT priority is of highest importance, I want to give more time to the RT
> domain *but* I also want to give Linux adequate time for being able to
> operate.
>
> Could anyone advise me on how to determine the minimum possible time slice
> that I can give to Linux so that it doesn't crash?
>
> That is, if I periodically execute my RT domain every ms and then I switch
> to Linux, what's the minimum time that should be given to Linux, until the
> next RT domain execution?
>
I'm not sure there is any requirement. The only problem I guess that can
happen is if you give such little time that the timer interrupt can't
finish, or that every time you schedule Linux back in, the timer
interrupt goes off and nothing else gets done.
Probably want to take a look at how virtualization works, as it has the
same issue. Linux guests get scheduled in periodically, and there's no
guarantee that they will run for a long time either, as real-time tasks
on the host may starve them.
Outside the live lock that I explained above, I doubt anything will
actually cause Linux to crash due to this.
-- Steve
next prev parent reply other threads:[~2011-03-31 15:12 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 [this message]
2011-04-01 8:05 ` Dario Faggioli
2011-04-01 12:39 ` limp
2011-04-01 13:32 ` Steven Rostedt
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=20110331151214.GB14441@home.goodmis.org \
--to=rostedt@goodmis.org \
--cc=johnkyr83@hotmail.com \
--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®