| 查看 | ulimit -r |
|---|---|
| 配置 | /etc/security/limits.conf 的 rtprio 项 |
| systemd | LimitRTPRIO= / AmbientCapabilities=CAP_SYS_NICE |
查询与验证
查询与验证
ulimit -r
systemctl show myservice -p LimitRTPRIO
chrt -f -p 10 $$ 2>&1 | head -2普通用户设置实时策略需要 rtprio 资源限制(ulimit -r);权限不足时 sched_setscheduler 返回 EPERM,systemd 服务用 LimitRTPRIO 放行。
| 查看 | ulimit -r |
|---|---|
| 配置 | /etc/security/limits.conf 的 rtprio 项 |
| systemd | LimitRTPRIO= / AmbientCapabilities=CAP_SYS_NICE |
ulimit -r
systemctl show myservice -p LimitRTPRIO
chrt -f -p 10 $$ 2>&1 | head -2