1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
\documentclass[11pt]{beamer}
%\usepackage{ngerman}
\usepackage{times}
\usepackage{graphicx}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps}
\usepackage{amsmath,amssymb}
\usepackage[latin1]{inputenc}
\usepackage{listings,color}
\definecolor{lbcolor}{RGB}{255,210,150}
\lstset{
language=C++,
numbers=left,
stepnumber=1,
numbersep=5pt,
numberstyle=\tiny,
breaklines=true,
breakautoindent=true,
postbreak=\space,
tabsize=2,
basicstyle=\ttfamily\footnotesize,
showspaces=false,
showstringspaces=false,
extendedchars=true,
backgroundcolor=\color{lbcolor},
keywordstyle=\bf ,
commentstyle=\color{green},
stringstyle=\color{red}
}
\mode<presentation>
{
\usetheme{linutronix}
% \usetheme{Warsaw}
% \usecolortheme{default}
% \setbeamercovered{transparent}
}
\title{Real-Time CORBA performance on Linux-RT\_PREEMPT}
\subtitle{9th Real-time Linux Conference Linz - Austria}
\author{Manuel Traut}
\institute{Linutronix GmbH}
%\logo{\includegraphics[width=\textwidth]{img/linutronix.jpg}}
\begin{document}
\frame{ \titlepage }
%\AtBeginSection[]
%{
% \begin{frame}<beamer>
% \tableofcontents[currentsection,currentsubsection]
% \end{frame}
%}
\AtBeginSubsection[]
{
\begin{frame}<beamer>
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\begin{frame}
\tableofcontents
\end{frame}
\section{Introduction}
\subsection{Industrial automation}
\begin{frame}
\frametitle{State-of-the-art}
\begin{block}{Communication}
\begin{itemize}
\item broad variety of industrial fieldbusses
\begin{itemize}
\item CAN
\item Interbus
\item Profibus
\item \dots
\end{itemize}
\item ethernet gains popularity
\begin{itemize}
\item EtherCAT
\item profiNET
\item DeviceNet
\item \dots
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{State-of-the-art}
\begin{block}{Controls}
\begin{itemize}
\item PLCs
\begin{itemize}
\item Siemens Simatic, \dots
\item Rockwell PLC-5, \dots
\item \dots
\end{itemize}
\item PC-based controls with real-time operating systems are gaining popularity
\begin{itemize}
\item from the IT world known interfaces (USB, Ethernet, \dots)
\item specialized software for machine control
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{PC-based controls and ethernet communications}
allow to use IT middleware solutions in automation
\begin{block}{Advantages of middleware}
\begin{itemize}
\item flexible reusability of software modules
\item ease of maintenance
\item fast development cycles
\item abstraction (operating system, programming language)
\item often repeated complex tasks can be done in middleware
\begin{itemize}
\item connection handling
\item object alocation
\item quality of services
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Contemplated configuration}
\begin{block}{Linux 2.6 with RT\_PREEMPT}
\begin{itemize}
\item successive vanilla integration
\item real-time in userspace
\item available for most recently used architectures
\begin{itemize}
\item x86 and x86\_64
\item arm
\item mips
\item powerpc
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Contemplated configuration}
\begin{block}{TAO, real-time CORBA distribution}
\begin{itemize}
\item c++ implementation
\item based on ACE (operating system independent)
\item RTCORBA specification implemented
\item open source software
\item commercial support
\item widely used
\end{itemize}
\end{block}
\end{frame}
\subsection{CORBA}
\begin{frame}
\frametitle{Common Object Request Broker Architecture}
\begin{block}{abstracts}
\begin{itemize}
\item operating systems
\item programming language
\item transport protocol
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Functional principle}
\begin{center}
\includegraphics[height=0.8\textheight]{img/orb.jpg}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Functional principle}
\begin{block}{CORBA Services}
\begin{itemize}
\item Naming Service
\begin{itemize}
\item Task A: bind object ior with name to Naming Service
\item Task B: resolve object ior by name from Naming Service
\end{itemize}
\item Messaging Service
\begin{itemize}
\item Task A: send messages to Messaging Service (Publisher)
\item Task B: subscribe for messages, e.g. filtered by topic, from the Messaging Service
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Real-time CORBA extensions}
\begin{center}
\includegraphics[height=0.7\textheight]{img/rtcorbaext.jpg}
\end{center}
\begin{raggedright}
%\scriptsize OMG Real-time CORBA speccification
\end{raggedright}
\end{frame}
\subsection{ACE/TAO framework}
\begin{frame}
\frametitle{Software architecture}
\begin{center}
\includegraphics[height=0.7\textheight]{./img/ace.jpg}
\end{center}
\begin{raggedright}
\scriptsize http://cs.wustl.edu/schmidt/ACE
\end{raggedright}
\end{frame}
\section{Performance measurements}
\begin{frame}
\begin{quote}
One of the problems of taking things apart and seeing how they work,
supposing you're trying to find out how a cat works,
you take that cat apart to see how it works, what you've got in your hands is a non-working cat.
The cat wasn't a sort of clunky mechanism that was susceptible to our available tools of analysis.
\end{quote}
\begin{raggedright}
\scriptsize Douglas Adams, Hitchhiker's Guide tot the Galaxy
\end{raggedright}
\end{frame}
\begin{frame}
\frametitle{Measurement environment}
\begin{center}
\includegraphics[height=0.8\textheight]{img/versuch4.jpg}
\end{center}
\end{frame}
\subsection{Remote Procedure Calls}
\begin{frame}
\frametitle{Sequence diagram}
\begin{center}
\includegraphics[width=\textwidth]{img/sequenzV1.jpg}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/v1Last.jpg}
\end{center}
\begin{raggedright}
\scriptsize RT\_PREEMPT, with system load
\end{raggedright}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/vanilla-ohne-last.jpg}
\end{center}
\begin{raggedright}
\scriptsize vanilla, without system load
\end{raggedright}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/vanilla-mit-last.jpg}
\end{center}
\begin{raggedright}
\scriptsize vanilla, with system load
\end{raggedright}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/v3Last.jpg}
\end{center}
\begin{raggedright}
\scriptsize RT\_PREEMPT, two prioizations, with system load
\end{raggedright}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/v4plot.jpg}
\end{center}
\begin{raggedright}
\scriptsize RT\_PREEMPT, dependency between data package size and latency
\end{raggedright}
\end{frame}
\subsection{Event-channel}
\begin{frame}
\frametitle{Sequence diagram}
\begin{center}
\includegraphics[width=\textwidth]{img/sequenzV2.jpg}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Latency histogram}
\begin{center}
\includegraphics[height=0.7\textheight]{img/v2Last.jpg}
\end{center}
\begin{raggedright}
\scriptsize RT\_PREEMPT, TAO RT Event-Channel, with system load
\end{raggedright}
\end{frame}
\section{Status: ACE/TAO on RT\_PREEMPT}
\subsection{Needed operating system functionalities}
\begin{frame}
\frametitle{End to end real-time guarantee}
\begin{block}{Real-time scheduling}
\begin{itemize}
\item deterministic scheduling latency
\item RTCORBA expects priorization based scheduling
\item interrupts shouldn't destroy deterministic scheduling
\end{itemize}
\end{block}
\pause
\begin{block}{Real-time I/O}
\begin{itemize}
\item hardware device priorization is required
\begin{itemize}
\item IO hardware, used for machine control (measurements)
\item Network device, used for RTCORBA communication
\end{itemize}
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{End to end real-time guarantee}
\begin{block}{real-time networking}
\begin{itemize}
\item measurements were made with IIOP using diffserv priorization in the IP header
\item diffserv has to be supported by all attendees
\begin{itemize}
\item operating systems network stack
\item nic driver
\item switches
\end{itemize}
\item in most cases real-time is lost, if the packages has to pass routers
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Used RT\_PREEMPT features}
\begin{block}{Scheduling}
\begin{itemize}
\item PI-Mutexes
\item priorization based scheduler (same as in vanilla)
\item interrupt handling in kernel threads
\end{itemize}
\end{block}
\pause
\begin{block}{Real-time IO}
\begin{itemize}
\item priorization of interrupts (kernel threads)
\item problems with interrupt sharing
\end{itemize}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Used RT\_PREEMPT features}
\begin{block}{Real-time networking}
\begin{itemize}
\item priorization of network interrupts
\item problems with different priorized nics:
\begin{itemize}
\item all ethernet traffic is handled in two common softirqs
\end{itemize}
\item kernel community has already discussed solutions
\end{itemize}
\end{block}
\end{frame}
\section{Conclusion}
\begin{frame}
\begin{block}{Promising solution}
\begin{itemize}
\item acceptable measurement results
\item improvements can be made in the networking layer
\end{itemize}
\end{block}
\begin{block}{not only automation industry}
also other application areas, eg.
\begin{itemize}
\item telecommunication
\item stock market
\item \dots
\end{itemize}
need deterministic networking.
\end{block}
\end{frame}
\begin{frame}
\frametitle{ACE/TAO and RT\_PREEMPT enabled Linux}
\begin{itemize}
\item is already a useful and solid environment
\item further improvements in foreseeable future
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Thank you for your attention}
\begin{block}{Contact}
\vskip3pt
Linutronix GmbH\\
Manuel Traut\\
\vskip3pt
Auf dem Berg 3\\
88690 Uhldingen\\
Germany\\
\vskip3pt
eMail manuel.traut@linutronix.de\\
fon +49 7556 919 891
\end{block}
\end{frame}
\end{document}
|