SPRADH0 August 2024 AM625 , AM6442 , AM69 , TDA4VM
The Linux kernel places a global limit on how much time threads with a real-time scheduling policy can use. The remaining time is used to schedule SCHED_OTHER processes. Increasing the allocated real-time scheduling time can help to prevent real-time threads from missing deadlines including the EtherCAT task thread and the ksoftirq threads. By default on RT-Linux, the real-time allocated runtime can be read from /proc/sys/kernel/sched_rt_runtime _us to be 950000 or 0.95 seconds. The entire measurement period can be read from /proc/sys/kernel/sched_rt_period_us to be 1000000 or 1 second. Based on these runtimes, by default, 0.05 seconds is reserved for SCHED_OTHER threads. Completely setting real-time runtime to be 1 second is not recommended; however, increasing the real-time runtime to 0.98 or 0.99 seconds can be helpful.