systemd and SysV legacy services, even those with root privileges, are no longer permitted to acquire realtime scheduling
Issue
-
Revision 0.2-80 of “Red Hat Enterprise Linux 7 Migration Planning Guide” in section 2.2.3.1 it states the following. I’m unable to find any information about this limitation on the internet and upstream documentation does not list this same limitation.
SysV services, even those with root privileges, are no longer permitted to acquire realtime scheduling. -
3rd party services trying to acquire realtime scheduling fail to start,
straceon the service executable shows aEPERM (Operation not permitted)error when calling thesched_setschedulersyscall withSCHED_RRparameter:# strace <program> 2>&1 >/dev/null | grep sched_setscheduler sched_setscheduler(0, SCHED_RR, { 99 }) = -1 EPERM (Operation not permitted)
Environment
- Red Hat Enterprise Linux (RHEL) 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
