Hello. On Sat, Sep 25, 2021 at 10:45:43PM +0200, Hans-Jacob Enemark <hjenemark@xxxxxxxxx> wrote: > For some reason it is no longer possible to set the priority and the > scheduling policy of a running pthread inside the thread function > itself - even with the app running as root.. > #define POLICY SCHED_FIFO You use an RT scheduling policy. It's not in your diff dump but my bet is on CONFIG_RT_GROUP_SCHED. The non-root RT groups have zero RT runtime allocation by default, therefore sched_setpriority would fail in such a cgroup. (The changes in your setup might have modified whether any CPU cgroups are created or only root cpu cgroup is present.) HTH, Michal