RLIMIT_RTTIME
CPU time a real-time scheduled process may use without making a blocking system call.
- Resource number
- 15
- Row in /proc/PID/limits
- Max realtime timeout
- bash ulimit flag
- ulimit -R
- Unit in /proc/PID/limits
- microseconds
- Added in Linux
- 2.6.25
- Group
- CPU time and scheduling
What happens at the limit
SIGXCPU at the soft limit, then every second until the hard limit, which gets SIGKILL. The count resets when the process blocks in a system call.
This is the watchdog for a SCHED_FIFO or SCHED_RR task that spins and starves the machine. The count is only for real-time tasks; a normal-priority process is never charged against it.
Check a running process with grep -i "Max realtime timeout" /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).
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.