Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a daemon that calls pthread_setschedparam() to set the thread priority. On a system using systemd (OpenSuse 12.1), this fails, because sched_setscheduler() returns EPERM.

From what I understand systemd doesn't use the permissions set in /etc/security/limits.conf any more where I used to be able to allow this.

How can I allow a deamon to change RT priorities when using systemd ?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Read systemd.exec(5), then experiment with LimitRTPRIO and LimitRTTIME or CPUSchedulingPolicy, CPUSchedulingPriority, CPUSchedulingResetOnFork in daemon service file.

share|improve this answer

Now, I'm porting siproxd to systemd on Fedora, and have the same issue:

rtpproxy_relay.c:172 ERROR:pthread_setschedparam failed: Operation not permitted

Could you provide more details on possible solution? I've set all Limit* parameters to infinity trying to get it working, but there is no luck. CPUSchedulingPolicy also fails with:

Failed at step SETSCHEDULER spawning /usr/sbin/siproxd: Operation not permitted 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.