实时进程CPU利用率限制

通过设置/proc/sys/kernel/sched_rt_runtime_us 和/proc/sys/kernel/sched_rt_period_us配合实现;sched_rt_period_us默认值是1s(1000000us),sched_rt_runtime_us默认是0.95s(950000us);如果内核配置使能了CONFIG_PART_SCHED,则sched_rt_runtime_us会在内核代码里写死是-1;即不生效(cpu占用率可以达100%)

猜你喜欢

转载自www.cnblogs.com/lichenyangyixin/p/11050207.html