Real-time programming with Linux, part 2: configuring Linux for real-time - Shuhao's Blog
In the last post, I went over the definition of real-time (RT) and listed a few sources of latency. I noted that applications with a latency requirement of less than about 10 milliseconds likely need special handling of the hardware and operating system configurations, as well as the application code. I mentioned that I will write a small program this post to demonstrate this. However, this won't be the case, as a lot more setup is needed before a program can be written. Thus, this post will only cover the setup of a computer running Linux with the real-time patch, as well as showing a quick example of identifying a source of latency via ftrace. The code will come in the next episode. When writing a RT application, the application must let the operating system (OS) know that it needs real-time capabilities by setting configurations such as the process scheduling policy and priority. This must be done through an OS-level API, as the application and OS must cooperate to achieve such low
Real-time programming with Linux, part 2: configuring Linux for real-time - Shuhao's Blog Real-time programming with Linux, part 2: configuring Linux for real-time By Shuhao Wu on 2022-04-11 Real-time programming with Linux : Part 1 - Part 2 - Part 3 - Part 4 In the last post , I went over the definition of real-time (RT) and listed a few sources of latency. I noted that applications with a latency requirement of less than about 10 milliseconds likely need special handling of the hardware and operating system configurations, as well as the application code. I mentioned that I will write a smal
Explore this link on the map →related reading
- Introduction to Real-time Systemsdesign.ros2.org
- Real-time programming with Linux, part 1: What is real-time? - Shuhao's Blogshuhaowu.com
- Measuring Mutexes, Spinlocks and how Bad the Linux Scheduler Really is | Probably Danceprobablydance.com
- Slice Dat Time | Putting the "You" in CPUcpu.land
- Brain Fuck Scheduler - Wikipediaen.wikipedia.org
- All my favorite tracing tools: eBPF, QEMU, Perfetto, new ones I built and more - Tristan Humethume.ca
- The "Basics" | Putting the "You" in CPUcpu.land
- Linux in a Pixel Shader - A RISC-V Emulator for VRChatblog.pimaker.at
- Kubernetes CPU Throttling | Temporaltemporal.io
- It’s Time for a Modern Synthesis Kernel – Embedded in Academiablog.regehr.org
- Writing an OS in Rustos.phil-opp.com
- Concurrency Patterns in Embedded Rust - Ferrous Systemsferrous-systems.com