systemd and SysV legacy services, even those with root privileges, are no longer permitted to acquire realtime scheduling

Solution Verified - Updated -

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, strace on the service executable shows a EPERM (Operation not permitted) error when calling the sched_setscheduler syscall with SCHED_RR parameter:

    # 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.