Raspberry Pi Performance Analysis in Real-Time Applications with the RT-Preempt Patch

  • Alan Carvalho IFSUL
  • Cláudio Machado IFSUL
  • Fabiano Moraes IFSUL

Resumo


This paper presents an analysis of the real-time performance of the Raspberry Pi 3 Model B. Raspberry Pi is a small and low-cost computing device with features that suggest its application as embedded control hardware in mobile robots, aiming the implementation of computer vision and motion control, for example. However, the default operating system of the Raspberry Pi limits its performance in real time. In order to enable it to work in real time, the RT-Preempt patch was installed, which incorporates features of a real-time operating system into Linux. Installing the RT-Preempt patch generates changes to the Linux kernel that reduce its limitations and consequently improve the system's temporal performance. Several system performance tests were performed, measuring the latencies obtained in different situations, such as: polling, timed loop, hardware interrupt and software interrupt. The experimental results confirm a significant improvement in the temporal performance of the system and show the limitations found regarding the use of the Raspberry Pi with the RT-Preempt patch in real-time applications. Based on these results, it can be concluded that it can be used as a low cost solution in non-critical real-time applications.
Palavras-chave: Real-time systems, Linux, Kernel, Task analysis, Random access memory, Hardware
Publicado
23/10/2019
CARVALHO, Alan; MACHADO, Cláudio; MORAES, Fabiano. Raspberry Pi Performance Analysis in Real-Time Applications with the RT-Preempt Patch. In: SIMPÓSIO BRASILEIRO DE ROBÓTICA E SIMPÓSIO LATINO AMERICANO DE ROBÓTICA (SBR/LARS), 16. , 2019, Rio Grande. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2019 . p. 161-166.