How “real-time” are the FIFO/RR schedulers on non-RT Linux kernel?
问题 Say on a non-RT Linux kernel (4.14, Angstrom distro, running on iMX6) I have a program that receives UDP packets (< 1400 bytes) that come in at a very steady data rate. Basically, the essence of the program is: while (true) { recv( sockFd, ... ); update_loop_interval_histogram(); // O(1) } To minimize the maximally occuring delay time (loop intervals), I started my process with: chrt --fifo 99 ./programName setting the scheduler to a "real-time" mode SCHED_FIFO with highest priority. the CPU