Gentoo Archives: gentoo-embedded

From: wireless <wireless@×××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Hard Real Time Systems with Gentoo?
Date: Sat, 13 Jan 2007 18:13:46
Message-Id: 45A8DA47.7020608@tampabay.rr.com
In Reply to: [gentoo-embedded] Hard Real Time Systems with Gentoo? by Bob Paddock
1 Bob Paddock wrote:
2 > Does anyone know of any Hard Real Time Systems,
3 > where deterministic response is required, that work
4 > with Gentoo-Embedded?
5
6
7 Um, the way you posed your question, is sure to solicit
8 'religious wars' on a few issues.
9
10 Soft real time, means that timing constraints are soft
11 or guildlines for process performance metrics.
12
13 Hard real time, means the timing constraints are hard
14 or an absolute requirement. Granted, most often these
15 timing constraints are arbitrarily set, but a system that
16 violates those arbitrary timing constraints is said
17 to not be 'real time'. But think about if a missile,
18 is suppose to change it's rudder in response to an
19 AD input, in 150ns, does it mean that the missile as
20 as system is a failure if the rudder response is
21 151 ns or 150.002 ns? Usually not the case, in fact
22 rarely. The designer settle for the best (lowest latency)
23 response in a particular subsystem that they can get.
24
25 Determinism is another funny character. Real embedded
26 systems use a 'state machine' design where every
27 state or transition is fully characterized and defined.
28
29 ON a large complex system, it is virtually impossible to
30 discover, characterize, define and test all possible states
31 of a complex system. (just look at the behavior of a single
32 female of any given species). Biological systems are but
33 one example of a system that cannot be fully characterized
34 due to many factors but genetic modification being one
35 example.
36
37 A microcontroller that is part of a complex system, can
38 have hard (RT) timing constraints, and be implemented in
39 ansi C or assembler on a state machine. Traditionally, that's
40 been done for years. It's mostly too expensive to do currently,
41 so intelligent people have 'diluted' the methodologies
42 so that other altruisms are commonly promoted, in the
43 name of science.
44
45 Embedded linux anything, currently, can never be fully deterministic.
46 Using languages such as C++ or more reaching OO languages, only
47 exasperates the goal of being fully deterministic. In stead of
48 the educators realizing and admitting that very few things
49 actually need HRT and virtually nothing complex that we build,
50 mimic or model is actually (fully) deterministic, pop-science
51 and pop-mathematics has infected what is traditionally a common
52 sense based standard of acceptable science.
53
54 That said, you can 'embedded gentoo/linux' onto a processor;
55 and this a most wonderful thing to do,
56 and not allow a user to access the cli but only use the
57 fancy touchscreen, as a consumer or operator, and have performance
58 that is embedded and appears 'real time' to the human senses.
59 You cannot actually build a deterministic system using
60 any form of embedded linux or any OO language.
61
62
63 <flames on> Obviously, you'll find lots of vendors and educated
64 folks that will disagree, and they have, and the debate continues.
65 As part of a company that has been building products for companies
66 for decades, most new products do not even have a specification,
67 as it evolves based on what the firmware engineers can accomplish
68 on the newest silicon provided my semiconductor manufactures.
69
70 Only the DOD, Nasa and such even attempt to define an embedded
71 subsystem that is actually HRT, let alone fully deterministic.
72 These are fancy monikers promoted by marketing types, MBA
73 and sales professionals.
74
75 There are lots of white papers around the net on FSM (finite
76 state machines) and determinism. Maybe some tiny portion of what
77 you seek to build needs HRT or determinism? Isolate that, and
78 settle for best/reliable performance in an embedded linux/gentoo
79 processor.
80
81 Here's but one reference of the many confused reference you'll find:
82 http://fsmgenerator.sourceforge.net/
83 If you really want determinism, stay with native assembler and
84 ansi C.
85
86 enjoy!
87
88 <ps, keep the flames focused a technical discussion/opinion>
89
90 James
91
92
93
94
95
96
97
98
99
100 --
101 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] Hard Real Time Systems with Gentoo? "Pongrácz István" <gentoo.macs@××××××××.hu>
Re: [gentoo-embedded] Hard Real Time Systems with Gentoo? momentics <momentics@×××××.com>
Re: [gentoo-embedded] Hard Real Time Systems with Gentoo? Bob Paddock <bob.paddock@×××××.com>
Re: [gentoo-embedded] Hard Real Time Systems with Gentoo? Christopher Friedt <cfriedt@××××××××××××××.com>