Linux has been used more and more in the field of industrial control and robot control, the non-real-time nature of the final human-computer interaction program may cause system performance impact in industrial production. Interrupt response time is an important indicator to measure the real-time performance of real-time operating systems. Accurate test data can be used as an evaluation index for selecting the real-time performance of the operating system. In order to improve the real-time performance of Linux, analyze real-time problems, and solve possible real-time bottlenecks, this paper designs a probe-type tool that can measure the interrupt response time, output the interrupt call stack, and analyze the reasons for high interrupts. By optimizing specific limited and high-latency paths, Linux can still maintain an acceptable range of latency for a long time under various high-load scenarios. After testing, the tool has good measurement accuracy, which provides a basis for developing real-time tasks and solving real-time problems.
Read full abstract