[PATCH v6 1/1] eal/unix: allow creating thread with real-time priority

Stephen Hemminger stephen at networkplumber.org
Fri Oct 27 20:15:58 CEST 2023


On Fri, 27 Oct 2023 10:45:03 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:

> Is it 100 % certain that the system becomes unstable if not sleeping or using blocking system calls from a real-time thread?
> And technically, it's not the thread itself that becomes unstable.

My experience is that the goal of real time threads is "do not let kernel have higher priority than this thread".
That means that if/when a kernel worker is needed on this core, instability happens.
It is very hard but possible to ensure that a kernel worker thread never runs on that core.
But if you are able to do configure that, then there is no point in using RT threads.
The best design is to avoid the kernel needing to run, and if it does then let it run.


More information about the stable mailing list