Re: Operation not permitted / pthread_setschedparam

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

 



Hi,

pthread_setschedparam seems to be broken in my PREEMPT_RT version !!
The pthread_attr_ interface is working ...

Any comments ??

cheers

--Armin

Armin Steinhoff schrieb:
> Harry,
>
> I'm running as root. The same code works w/o problem with the normal
> (non RT) kernel.
> "chrt -m" shows  1/99 for SCHED_FIFO. I did also add @root - rtprio 99
> to limits.conf ... no success, as expected. 
>
> --Armin
>
> Harry van Haaren schrieb:
>> On Tue, Sep 30, 2014 at 11:40 AM, Armin Steinhoff <armin@xxxxxxxxxxxx> wrote:
>>> a "pthread_setschedparam" call of the code below terminates with an
>>> errno == 1  ... means "Operation not permitted"
>> At risk of asking the obvious: are you running as root, or does the
>> user running this code have RT priorities?
>>
>> User priorities controlled by /etc/security/limits.conf : you can set
>> a groups max-rtprio like so:
>> @audio          -       rtprio          65
>>
>>> KERNEL_EVENT_THREAD_PRIORITY is 55!
>>> How to solve that problem ?
>> Anything above 50 requrires changing limits.conf  or root IIRC.
>>
>> HTH, -Harry
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux