From mboxrd@z Thu Jan 1 00:00:00 1970 From: Armin Steinhoff Subject: Re: Operation not permitted / pthread_setschedparam Date: Tue, 30 Sep 2014 14:32:37 +0200 Message-ID: <542AA2E5.1050507@steinhoff.de> References: <542A88A8.7060800@steinhoff.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Cc: rt-users To: Harry van Haaren Return-path: Received: from mout.kundenserver.de ([212.227.17.10]:58144 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750833AbaI3Mck convert rfc822-to-8bit (ORCPT ); Tue, 30 Sep 2014 08:32:40 -0400 In-Reply-To: Sender: linux-rt-users-owner@vger.kernel.org List-ID: 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 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 >