RLIMIT_RTPRIO
Ceiling on the real-time priority the process may set with sched_setscheduler or sched_setparam.
- Resource number
- 14
- Row in /proc/PID/limits
- Max realtime priority
- bash ulimit flag
- ulimit -r
- Unit in /proc/PID/limits
- priority
- Added in Linux
- 2.6.12
- Group
- CPU time and scheduling
What happens at the limit
sched_setscheduler(2) and sched_setparam(2) fail with EPERM.
Error names: EPERM.
The default of 0 means an unprivileged process cannot ask for SCHED_FIFO or SCHED_RR at all. Audio stacks that need real-time scheduling raise it for a group with pam_limits rather than running as root. CAP_SYS_NICE overrides it.
Check a running process with grep -i "Max realtime priority" /proc/PID/limits, or paste the whole file into the limits reader. Inspect or change one on a live process with prlimit --pid PID(util-linux).
Syscall cards that mention it
- sched_setattr(2)Linux · Scheduling
Set scheduling policy and attributes for a thread, including SCHED_DEADLINE runtime/deadline/period reservations.
Sources
Resource numbers are from asm-generic/resource.h; a few architectures (Alpha, MIPS, SPARC) number some limits differently. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.