presentación linux en tiempo real
DESCRIPTION
Presentación que acompaña a un pequeño análisis sobre Linux en Tiempo Real que realicé hace algunos años. Se puede encontrar el trabajo en: http://www.lodemenos.net/Linux-en-Tiempo-Real.htmlTRANSCRIPT
![Page 1: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/1.jpg)
Linux en Tiempo Real
Carlos M. Camara MoraEstudiante de ingeniería de telecomunicaciones
Mayo 2004
![Page 2: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/2.jpg)
Indice
![Page 3: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/3.jpg)
I nt roduccion
Cont rol de sist emas de f orma precisa y aut omát ica
I nt erconexión de dist int os sist emas
Soluciones basadas en ordenadores y sof t ware
Respuest as rápidas y en el moment o adecuado
![Page 4: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/4.jpg)
Definición SO en Tiem po Real ( I )
“No importa que los relojes sean duros o blandos, lo
que importa es que den la hora exacta”
S. Dal i
![Page 5: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/5.jpg)
Definición SO en Tiem po Real ( I I )
“Un sistema de tiempo real es aquel en el que para que las operaciones computacionales sean correctas no depende sólo de que la lógica e implementación de los programas computacionales sea correcto, sino también en el tiempo en el que dicha operación entregó su resultado.”
D. GilliesCaracterist ícas de un sistem a operat ivo en t iem po real
Det erminismo
Tiempo de respuest a
Cont rol de los procesos sobre el sist ema
Conf iabilidad
Operación a prueba de f allos
![Page 6: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/6.jpg)
Opciones de Tiem po Real
Mult ipr ocesador , mult it ar ea, mult iplat af or ma
Ópt imo ent or no de desar r ollo y pr ogr amación
Sopor t e y compat ibilidad con ot r os sist emas
SOFTWARE LI BRE
![Page 7: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/7.jpg)
Determ inism o y Planificacion
I nt er r upciones y r ut inas impr evisibles
Necesidad de planif icador es específ icos
2 planif icador es: Cíclicos y por Pr ior idades
Planif icador por pr ior idades:
Fijos: Rat e Monot onic
Dinámicos: Ear liest Deadline Fir st (I . Ripoll)
![Page 8: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/8.jpg)
Opciones para Linux RT
Dos f or mas de implement ar el t iempo r eal:
i) Modif icación complet a del nucleo
ii) Par cheado del ker nel y módulos adicionales
RTLinux f ue pioner a en t iempo r eal
Las mej or es soluciones son ii) ej : RTAI
![Page 9: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/9.jpg)
Descripcion de RTLinux
Fue desar r ollado por V.Yodaiken yM.Bar avanov
Planif icador expulsivo de pr ior idades f ij as
Se int r oduce como módulo en el ker nel
Act úa como un micr oker nel
Ej ecución en modo super visor de la CPU
Se comunica con Linux mediant e FI FOs
![Page 10: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/10.jpg)
Arquitectura RTLinux
![Page 11: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/11.jpg)
Tareas de Tiem po Real
Las t ar eas se car gan en f or ma de módulos
Se ej ecut an en f or ma de módulos
Er r or es de pr ogr amación pueden bloquear
el sist ema
Cuidar planif icación par a no dej ar f uer a de
ej ecucion al núcleo de Linux
![Page 12: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/12.jpg)
Planificación en RTLinux
Posibilidad de elegir planif icador
Rat e Monot onic: Pr ior idades f ij as
Ear liest Deadline Fir st : Pr ior idades
dinámicas
![Page 13: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/13.jpg)
Precisión Tem poral
I mpr ecisión del sist ema pr ovoca J it t er
Nor malment e se usa r eloj de baj a
pr ecisión
RTLinux ut iliza el t empor izador I NTEL
8354
Mej or amos la pr ecisión de 1 ms a 10 us
![Page 14: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/14.jpg)
Com unicación ent re procesos
Hay que comunicar Linux con RTLinux
Usar emos colas FI FO (RT-FI FO)
Tendr emos desde 64 hast a 255 colas
Posibilidad de colas de mensaj es per o aun
en desar r ollo
![Page 15: Presentación Linux en Tiempo Real](https://reader038.vdocumento.com/reader038/viewer/2022100507/559e95fd1a28ab113d8b4896/html5/thumbnails/15.jpg)
Experiencia práct ica
C