Re: pthread_setschedparam returns 1 (Operation Not Permitted) after including docker in yocto build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux