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

1 Answer 1

up vote 0 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
    
This is more of a comment than an answer. –  larsks Jan 3 at 15:23

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.