From: Steven Rostedt <rostedt@goodmis.org>
To: Patrice Kadionik <kadionik@enseirb-matmeca.fr>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: preempt rt in commercial use
Date: Wed, 15 Sep 2010 10:08:25 -0400 [thread overview]
Message-ID: <1284559705.5701.128.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <4C906608.8080906@enseirb-matmeca.fr>
On Wed, 2010-09-15 at 08:22 +0200, Patrice Kadionik wrote:
> Le 15/09/2010 00:09, Nivedita Singhvi a écrit :
> Hi Nivedita;
> > I would go further and say people need to stop using the terms
> > "hard" and "soft". There isn't a binary yes/no answer to the real-time
> > requirements spectrum.
> >
> I don't agree with that.
> We are all OK to say that the application or the process to control
> fixes the timing constraints to the overall HW/SW system.
>
> If the application can NEVER miss an event or a deadline because it will
> be catastrophic, we MUST use a hard RTOS.
And you also need to have a hard RT HW, which x86 is far from that. If
you have a system that can cause a catastrophic disaster on failure, you
better not be running it on a normal x86 processor.
Hence, if you don't have a proven RT HW system, you don't need to worry
about the software either.
> If the application supports to miss (from time to time) an event or a
> deadline without catastrophic consequence, we can use a soft RTOS (or a
> hard RTOS if we want).
> Not thinking hard nor soft realtime can have dramatic consequences.
>
> Until now, PREEMPT-RT is a nice solution as soft RTOS and offers no
> guaranty on an very big latency appeared in a particular case. Thinking
> that PREEMPT-RT is a hard RTOS is false.
Again, it depends on what you think hard is. If a failure wont kill
people but you will lose a million dollars, PREEMPT-RT may be good
enough. (although, if you lose a million dollars, you may still be
killed ;-)
> > Applications can have varying response time requirements, from
> > microseconds to milliseconds to seconds to minutes as Greg says above.
> >
> > Applications might have differing penalties for missed deadlines:
> > * nuclear reactor explodes
> > * I lose a trade and it costs me money
> > * I get a slightly different stock price quoted to me
> > * Justin Bieber sounds a little hoarse
> >
> > If you're discussing Linux real-time, chances are your application
> > does not fall in the first one. Typically a very custom engineered
> > solution (hardware and software) is used for those who have rather
> > severe constraints.
> >
> > The concept of "hard" as being mathematically/logically provable
> > in terms of specs and code examination is nice, but not very practical.
> > As other people have pointed out frequently, given any system, it's
> > possible to break its guaranteed deadlines (catastrophic hw failure,
> > etc.
> You're right.
> In case of possible HW failure, HW design has HW redundancies.
>
> This discussion is very interesting but as I said in my first response,
> it will be the troll for many years...
Here's what I've come up with (and presented this in Brazil last year).
True hard real time is mathematically proven software that has all known
worse case scenarios defined.
True soft real time allows for a missed deadline (as long as it is not
the norm), and the system does not fail.
PREEMPT-RT is neither of the above. What I call PREEMPT-RT is a hard
real time design. That is, we design PREEMPT-RT to be a hard real time
system but we do not mathematically prove that it is (too big to ever do
that).
But if we find a situation that a worse case scenario exists that is
over a threshold for the given hardware, we consider it a bug and it
must be fixed. A soft real time system does not consider that a bug.
So is PREEMPT-RT hard real time? No.
Is it soft real time? No.
It is in between. The design goal of PREEMPT-RT is to be hard real time,
but we will never prove that it is. Hence, when it comes to non life
threatening things but things that are very important (may lose lots of
money, but no one dies), PREEMPT-RT may very well be the product of
choice.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-09-15 14:08 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 8:10 preempt rt in commercial use Raz
2010-09-14 9:04 ` Rolando Martins
2010-09-14 9:10 ` Raz
2010-09-14 9:20 ` Rolando Martins
2010-09-14 9:17 ` Nikita V. Youshchenko
2010-09-14 9:24 ` Raz
2010-09-14 9:44 ` Robert Schwebel
2010-09-14 12:16 ` Armin Steinhoff
2010-09-14 13:04 ` Daniel James
2010-09-14 13:08 ` Pradyumna Sampath
2010-09-14 22:11 ` Nivedita Singhvi
2010-09-14 13:09 ` Klaas van Gend
2010-09-14 13:17 ` David Kastrup
2010-09-14 13:37 ` Darcy Watkins
2010-09-14 13:58 ` Patrice Kadionik
2010-09-14 14:21 ` Jeff Angielski
2010-09-14 14:30 ` Nikita V. Youshchenko
2010-09-14 14:49 ` Jeff Angielski
2010-09-14 22:20 ` Nivedita Singhvi
2010-09-15 7:48 ` Armin Steinhoff
2010-09-15 14:09 ` Nivedita Singhvi
2010-09-15 14:45 ` Pradyumna Sampath
2010-09-16 10:17 ` Daniel James
2010-09-16 10:35 ` Pradyumna Sampath
2010-09-16 15:19 ` Raz
2010-09-15 15:38 ` David Kastrup
2010-09-15 16:02 ` Nivedita Singhvi
2010-09-15 16:20 ` David Kastrup
2010-09-16 0:44 ` Steven Rostedt
2010-09-16 15:27 ` Nivedita Singhvi
2010-09-16 17:30 ` Steven Rostedt
2010-09-16 19:27 ` Armin Steinhoff
2010-09-16 19:38 ` Steven Rostedt
2010-09-15 13:33 ` Thomas Gleixner
2010-09-14 14:44 ` Pradyumna Sampath
2010-09-15 12:48 ` Sergio Ruocco
2010-09-15 12:53 ` Pradyumna Sampath
2010-09-15 14:58 ` Paul E. McKenney
2010-09-15 16:27 ` Sven-Thorsten Dietrich
2010-09-16 0:49 ` Steven Rostedt
2010-09-16 5:06 ` David Kastrup
2010-09-14 14:56 ` Armin Steinhoff
2010-09-14 15:42 ` Patrice Kadionik
2010-09-14 17:38 ` Gregory Haskins
2010-09-14 22:09 ` Nivedita Singhvi
2010-09-15 6:22 ` Patrice Kadionik
[not found] ` <4C90CF71.2050205@us.ibm.com>
2010-09-15 13:56 ` Patrice Kadionik
2010-09-15 14:08 ` Steven Rostedt [this message]
2010-09-14 10:06 ` Klaas van Gend
2010-09-14 11:00 ` David Kastrup
2010-09-14 9:28 ` Pradyumna Sampath
2010-09-14 14:13 ` Reagan Thomas
2010-09-15 7:09 ` AW: " Lukas Redlinger
2010-09-15 3:38 ` jordan
2010-09-15 8:59 ` Klaas van Gend
2010-09-15 11:03 ` TinxCore and PREEMPT_RT Armin Steinhoff
2010-09-16 9:38 ` Armin Steinhoff
2010-09-16 10:18 ` David Kastrup
2010-09-16 11:25 ` Mike Galbraith
2010-09-16 11:51 ` Armin Steinhoff
2010-09-15 14:03 ` preempt rt in commercial use Nivedita Singhvi
2010-09-15 17:29 ` Reagan Thomas
2010-09-16 10:39 ` Daniel James
2010-09-16 20:47 ` jordan
2010-09-16 10:07 ` Daniel James
2010-09-16 20:37 ` jordan
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=1284559705.5701.128.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=kadionik@enseirb-matmeca.fr \
--cc=linux-rt-users@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;
as well as URLs for NNTP newsgroup(s).