sched_setscheduler()) real-time priorities for application threads.
To enable this capability, create a group with these special privileges and add the required users to this
group. Typical values for this privileged group can be set in a configuration file as follows:
TIMEOUT=unlimited # in minutes
RT_PRIORITY=100
NICE=-20
MEMLOCK=unlimited
cat >>/etc/security/limits.conf <<EOF
@realtime soft cpu $TIMEOUT
@realtime - rtprio $RT_PRIORITY
@realtime - nice $NICE
@realtime - memlock $MEMLOCK
EOF
User profiles can then be added to the realtime group with usermod:
For more information about the limits.conf file, see the limits.conf man page.
No comments:
Post a Comment